… | |
… | |
121 | }; |
121 | }; |
122 | #endif |
122 | #endif |
123 | |
123 | |
124 | struct rxvt_screen { |
124 | struct rxvt_screen { |
125 | rxvt_display *display; |
125 | rxvt_display *display; |
126 | Display *xdisp; |
126 | Display *dpy; |
127 | int depth; |
127 | int depth; |
128 | Visual *visual; |
128 | Visual *visual; |
129 | Colormap cmap; |
129 | Colormap cmap; |
130 | |
130 | |
131 | void set (rxvt_display *disp); |
131 | void set (rxvt_display *disp); |
… | |
… | |
145 | void im_change_cb (); |
145 | void im_change_cb (); |
146 | void im_change_check (); |
146 | void im_change_check (); |
147 | #endif |
147 | #endif |
148 | |
148 | |
149 | //public |
149 | //public |
150 | Display *display; |
150 | Display *dpy; |
151 | int screen; |
151 | int screen; |
152 | Window root; |
152 | Window root; |
153 | rxvt_term *selection_owner; |
153 | rxvt_term *selection_owner; |
154 | Atom xa[NUM_XA]; |
154 | Atom xa[NUM_XA]; |
155 | #ifndef NO_SLOW_LINK_SUPPORT |
155 | #ifndef NO_SLOW_LINK_SUPPORT |
… | |
… | |
158 | #ifdef POINTER_BLANK |
158 | #ifdef POINTER_BLANK |
159 | Cursor blank_cursor; |
159 | Cursor blank_cursor; |
160 | #endif |
160 | #endif |
161 | |
161 | |
162 | rxvt_display (const char *id); |
162 | rxvt_display (const char *id); |
163 | XrmDatabase get_resources (); |
163 | XrmDatabase get_resources (bool refresh); |
164 | bool ref_init (); |
164 | bool ref_init (); |
165 | void ref_next (); |
165 | void ref_next (); |
166 | ~rxvt_display (); |
166 | ~rxvt_display (); |
167 | |
167 | |
168 | void flush (); |
168 | void flush (); |
… | |
… | |
250 | bool operator != (const rxvt_color &b) const { return Pixel (*this) != Pixel (b); } |
250 | bool operator != (const rxvt_color &b) const { return Pixel (*this) != Pixel (b); } |
251 | |
251 | |
252 | bool alloc (rxvt_screen *screen, const rgba &color); |
252 | bool alloc (rxvt_screen *screen, const rgba &color); |
253 | void free (rxvt_screen *screen); |
253 | void free (rxvt_screen *screen); |
254 | |
254 | |
255 | void get (rxvt_screen *screen, rgba &color); |
255 | void get (rgba &color); |
|
|
256 | void get (XColor &color); |
256 | |
257 | |
257 | bool set (rxvt_screen *screen, const char *name); |
258 | bool set (rxvt_screen *screen, const char *name); |
258 | bool set (rxvt_screen *screen, const rgba &color); |
259 | bool set (rxvt_screen *screen, const rgba &color); |
259 | |
260 | |
260 | void fade (rxvt_screen *screen, int percent, rxvt_color &result, const rgba &to = rgba (0, 0, 0)); |
261 | void fade (rxvt_screen *screen, int percent, rxvt_color &result, const rgba &to = rgba (0, 0, 0)); |