--- rxvt-unicode/src/rxvtcolor.h 2004/02/25 15:06:05 1.9 +++ rxvt-unicode/src/rxvtcolor.h 2004/08/04 03:29:28 1.14 @@ -14,6 +14,17 @@ #include "callback.h" +extern class byteorder { + uint32_t e; +public: + byteorder (); + + bool big_endian () { return e == 0x11223344; }; + bool network () { return e == 0x11223344; }; + bool little_endian () { return e == 0x44332211; }; + bool vax () { return e == 0x44332211; }; +} byteorder; + struct rxvt_term; struct im_watcher; @@ -37,6 +48,7 @@ ///////////////////////////////////////////////////////////////////////////// +#ifdef USE_XIM struct rxvt_xim : refcounted { void destroy (); rxvt_display *display; @@ -48,6 +60,7 @@ bool init (); ~rxvt_xim (); }; +#endif struct rxvt_display : refcounted { Atom xa_xim_servers; @@ -56,10 +69,12 @@ io_watcher x_ev; void x_cb (io_watcher &w, short revents); +#ifdef USE_XIM refcache xims; vector imw; void im_change_cb (); +#endif //public Display *display; @@ -69,6 +84,9 @@ Colormap cmap; Window root; rxvt_term *selection_owner; +#ifndef NO_SLOW_LINK_SUPPORT + bool is_local; +#endif rxvt_display (const char *id); bool init (); @@ -76,17 +94,23 @@ void flush (); + void set_selection_owner (rxvt_term *owner); + void reg (xevent_watcher *w); void unreg (xevent_watcher *w); + +#ifdef USE_XIM void reg (im_watcher *w); void unreg (im_watcher *w); - void set_selection_owner (rxvt_term *owner); - rxvt_xim *get_xim (const char *locale, const char *modifiers); void put_xim (rxvt_xim *xim); +#endif + + Atom atom (const char *name); }; +#ifdef USE_XIM struct im_watcher : watcher, callback0 { template im_watcher (O1 *object, void (O2::*method) ()) @@ -102,6 +126,7 @@ display->unreg (this); } }; +#endif struct xevent_watcher : watcher, callback1 { Window window; @@ -146,6 +171,8 @@ bool set (rxvt_display *display, const char *name); bool set (rxvt_display *display, unsigned short cr, unsigned short cg, unsigned short cb); + rxvt_color fade (rxvt_display *, int percent); + void free (rxvt_display *display); };