--- rxvt-unicode/src/rxvttoolkit.h 2004/09/07 12:34:05 1.3 +++ rxvt-unicode/src/rxvttoolkit.h 2006/01/13 04:59:04 1.10 @@ -28,7 +28,8 @@ char *id; refcounted (const char *id); - bool init () { return false; } + bool ref_init () { return false; } + void ref_next () { } ~refcounted (); }; @@ -36,7 +37,12 @@ struct refcache : vector { T *get (const char *id); void put (T *obj); - ~refcache (); + void clear (); + + ~refcache () + { + clear (); + } }; ///////////////////////////////////////////////////////////////////////////// @@ -50,7 +56,7 @@ XIM xim; rxvt_xim (const char *id) : refcounted (id) { } - bool init (); + bool ref_init (); ~rxvt_xim (); }; #endif @@ -71,23 +77,28 @@ #endif //public - Display *display; - int depth; - int screen; - Visual *visual; - Colormap cmap; - Window root; + Display *display; + int depth; + int screen; + Visual *visual; + Colormap cmap; + Window root; rxvt_term *selection_owner; #ifndef NO_SLOW_LINK_SUPPORT - bool is_local; + bool is_local; +#endif +#ifdef POINTER_BLANK + Cursor blank_cursor; #endif rxvt_display (const char *id); - bool init (); + XrmDatabase get_resources (); + bool ref_init (); + void ref_next (); ~rxvt_display (); void flush (); - + Atom atom (const char *name); void set_selection_owner (rxvt_term *owner); void reg (xevent_watcher *w); @@ -100,8 +111,6 @@ 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 @@ -165,7 +174,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); + rxvt_color fade (rxvt_display *, int percent); // fades to black + rxvt_color fade (rxvt_display *, int percent, rxvt_color &fadeto); void free (rxvt_display *display); };