ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvttoolkit.h
(Generate patch)

Comparing rxvt-unicode/src/rxvttoolkit.h (file contents):
Revision 1.4 by root, Sat Dec 11 23:01:36 2004 UTC vs.
Revision 1.8 by root, Thu Aug 11 02:05:07 2005 UTC

34 34
35template<class T> 35template<class T>
36struct refcache : vector<T *> { 36struct refcache : vector<T *> {
37 T *get (const char *id); 37 T *get (const char *id);
38 void put (T *obj); 38 void put (T *obj);
39 void clear ();
40
39 ~refcache (); 41 ~refcache ()
42 {
43 clear ();
44 }
40}; 45};
41 46
42///////////////////////////////////////////////////////////////////////////// 47/////////////////////////////////////////////////////////////////////////////
43 48
44#ifdef USE_XIM 49#ifdef USE_XIM
69 void im_change_cb (); 74 void im_change_cb ();
70 void im_change_check (); 75 void im_change_check ();
71#endif 76#endif
72 77
73//public 78//public
74 Display *display; 79 Display *display;
75 int depth; 80 int depth;
76 int screen; 81 int screen;
77 Visual *visual; 82 Visual *visual;
78 Colormap cmap; 83 Colormap cmap;
79 Window root; 84 Window root;
80 rxvt_term *selection_owner; 85 rxvt_term *selection_owner;
81#ifndef NO_SLOW_LINK_SUPPORT 86#ifndef NO_SLOW_LINK_SUPPORT
82 bool is_local; 87 bool is_local;
88#endif
89#ifdef POINTER_BLANK
90 Cursor blank_cursor;
83#endif 91#endif
84 92
85 rxvt_display (const char *id); 93 rxvt_display (const char *id);
86 bool init (); 94 bool init ();
87 ~rxvt_display (); 95 ~rxvt_display ();
88 96
89 operator Display *() const { return display; } 97 operator Display *() const { return display; }
90 98
91 void flush (); 99 void flush ();
92 100 Atom atom (const char *name);
93 void set_selection_owner (rxvt_term *owner); 101 void set_selection_owner (rxvt_term *owner);
94 102
95 void reg (xevent_watcher *w); 103 void reg (xevent_watcher *w);
96 void unreg (xevent_watcher *w); 104 void unreg (xevent_watcher *w);
97 105
100 void unreg (im_watcher *w); 108 void unreg (im_watcher *w);
101 109
102 rxvt_xim *get_xim (const char *locale, const char *modifiers); 110 rxvt_xim *get_xim (const char *locale, const char *modifiers);
103 void put_xim (rxvt_xim *xim); 111 void put_xim (rxvt_xim *xim);
104#endif 112#endif
105
106 Atom atom (const char *name);
107}; 113};
108 114
109#ifdef USE_XIM 115#ifdef USE_XIM
110struct im_watcher : watcher, callback0<void> { 116struct im_watcher : watcher, callback0<void> {
111 template<class O1, class O2> 117 template<class O1, class O2>
165 171
166 bool set (rxvt_display *display, Pixel p); 172 bool set (rxvt_display *display, Pixel p);
167 bool set (rxvt_display *display, const char *name); 173 bool set (rxvt_display *display, const char *name);
168 bool set (rxvt_display *display, unsigned short cr, unsigned short cg, unsigned short cb); 174 bool set (rxvt_display *display, unsigned short cr, unsigned short cg, unsigned short cb);
169 175
170 rxvt_color fade (rxvt_display *, int percent); 176 rxvt_color fade (rxvt_display *, int percent); // fades to black
177 rxvt_color fade (rxvt_display *, int percent, rxvt_color &fadeto);
171 178
172 void free (rxvt_display *display); 179 void free (rxvt_display *display);
173}; 180};
174 181
175#endif 182#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines