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.11 by root, Wed Jan 25 02:42:06 2006 UTC vs.
Revision 1.12 by root, Wed Jan 25 21:03:04 2006 UTC

96 bool ref_init (); 96 bool ref_init ();
97 ~rxvt_xim (); 97 ~rxvt_xim ();
98}; 98};
99#endif 99#endif
100 100
101struct rxvt_screen {
102 rxvt_display *display;
103 Display *xdisp;
104 int depth;
105 Visual *visual;
106 Colormap cmap;
107
108 void set (rxvt_display *disp);
109 void set (rxvt_display *disp, int depth);
110 void clear ();
111};
112
101struct rxvt_display : refcounted { 113struct rxvt_display : refcounted {
102 io_manager_vec<xevent_watcher> xw; 114 io_manager_vec<xevent_watcher> xw;
103 115
104 io_watcher x_ev; void x_cb (io_watcher &w, short revents); 116 io_watcher x_ev; void x_cb (io_watcher &w, short revents);
105 117
111 void im_change_check (); 123 void im_change_check ();
112#endif 124#endif
113 125
114//public 126//public
115 Display *display; 127 Display *display;
116 int depth;
117 int screen; 128 int screen;
118 Visual *visual;
119 Colormap cmap;
120 Window root; 129 Window root;
121 rxvt_term *selection_owner; 130 rxvt_term *selection_owner;
122 Atom xa[NUM_XA]; 131 Atom xa[NUM_XA];
123#ifndef NO_SLOW_LINK_SUPPORT 132#ifndef NO_SLOW_LINK_SUPPORT
124 bool is_local; 133 bool is_local;
202#endif 211#endif
203 212
204 bool operator == (const rxvt_color &b) const { return Pixel (*this) == Pixel (b); } 213 bool operator == (const rxvt_color &b) const { return Pixel (*this) == Pixel (b); }
205 bool operator != (const rxvt_color &b) const { return Pixel (*this) != Pixel (b); } 214 bool operator != (const rxvt_color &b) const { return Pixel (*this) != Pixel (b); }
206 215
207 void get (rxvt_display *display, unsigned short &cr, unsigned short &cg, unsigned short &cb); 216 void get (rxvt_screen *screen, unsigned short &cr, unsigned short &cg, unsigned short &cb);
208 217
209 bool set (rxvt_display *display, Pixel p); 218 bool set (rxvt_screen *screen, Pixel p);
210 bool set (rxvt_display *display, const char *name); 219 bool set (rxvt_screen *screen, const char *name);
211 bool set (rxvt_display *display, unsigned short cr, unsigned short cg, unsigned short cb); 220 bool set (rxvt_screen *screen, unsigned short cr, unsigned short cg, unsigned short cb);
212 221
213 rxvt_color fade (rxvt_display *, int percent); // fades to black 222 rxvt_color fade (rxvt_screen *screen, int percent); // fades to black
214 rxvt_color fade (rxvt_display *, int percent, rxvt_color &fadeto); 223 rxvt_color fade (rxvt_screen *screen, int percent, rxvt_color &fadeto);
215 224
216 void free (rxvt_display *display); 225 void free (rxvt_screen *screen);
217}; 226};
218 227
219#endif 228#endif
220 229

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines