… | |
… | |
105 | } |
105 | } |
106 | }; |
106 | }; |
107 | |
107 | |
108 | ///////////////////////////////////////////////////////////////////////////// |
108 | ///////////////////////////////////////////////////////////////////////////// |
109 | |
109 | |
|
|
110 | struct rxvt_screen; |
|
|
111 | |
|
|
112 | struct rxvt_drawable { |
|
|
113 | rxvt_screen *screen; |
|
|
114 | Drawable drawable; |
|
|
115 | operator Drawable() { return drawable; } |
|
|
116 | |
|
|
117 | #if XFT |
|
|
118 | XftDraw *xftdrawable; |
|
|
119 | operator XftDraw *(); |
|
|
120 | #endif |
|
|
121 | |
|
|
122 | rxvt_drawable (rxvt_screen *screen, Drawable drawable) |
|
|
123 | : screen(screen), |
|
|
124 | #if XFT |
|
|
125 | xftdrawable(0), |
|
|
126 | #endif |
|
|
127 | drawable(drawable) |
|
|
128 | { } |
|
|
129 | |
|
|
130 | #if XFT |
|
|
131 | ~rxvt_drawable (); |
|
|
132 | #endif |
|
|
133 | }; |
|
|
134 | |
|
|
135 | ///////////////////////////////////////////////////////////////////////////// |
|
|
136 | |
110 | #ifdef USE_XIM |
137 | #ifdef USE_XIM |
111 | struct rxvt_xim : refcounted { |
138 | struct rxvt_xim : refcounted { |
112 | void destroy (); |
139 | void destroy (); |
113 | rxvt_display *display; |
140 | rxvt_display *display; |
114 | |
141 | |
… | |
… | |
125 | rxvt_display *display; |
152 | rxvt_display *display; |
126 | Display *dpy; |
153 | Display *dpy; |
127 | int depth; |
154 | int depth; |
128 | Visual *visual; |
155 | Visual *visual; |
129 | Colormap cmap; |
156 | Colormap cmap; |
|
|
157 | |
|
|
158 | #if XFT |
|
|
159 | // scratch pixmap |
|
|
160 | rxvt_drawable *scratch_area; |
|
|
161 | int scratch_w, scratch_h; |
|
|
162 | |
|
|
163 | rxvt_drawable &scratch_drawable (int w, int h); |
|
|
164 | |
|
|
165 | rxvt_screen (); |
|
|
166 | #endif |
130 | |
167 | |
131 | void set (rxvt_display *disp); |
168 | void set (rxvt_display *disp); |
132 | void set (rxvt_display *disp, int bitdepth); |
169 | void set (rxvt_display *disp, int bitdepth); |
133 | void clear (); |
170 | void clear (); |
134 | }; |
171 | }; |