… | |
… | |
202 | }; |
202 | }; |
203 | |
203 | |
204 | # endif /* XPM_BACKGROUND */ |
204 | # endif /* XPM_BACKGROUND */ |
205 | |
205 | |
206 | rxvt_term *target; |
206 | rxvt_term *target; |
207 | bool set_target (rxvt_term *new_target) |
207 | bool set_target (rxvt_term *new_target); |
208 | { |
208 | |
209 | if (new_target) |
209 | # ifdef ENABLE_TRANSPARENCY |
210 | if (target != new_target) |
210 | int root_depth; /* obtained when target is set */ |
211 | { |
211 | Pixmap root_pixmap; /* current root pixmap set */ |
212 | target = new_target; |
212 | bool make_transparency_pixmap (); |
213 | return true; |
213 | # endif |
214 | } |
|
|
215 | return false; |
|
|
216 | }; |
|
|
217 | |
214 | |
218 | Pixmap pixmap; |
215 | Pixmap pixmap; |
219 | unsigned int pmap_width, pmap_height; |
216 | unsigned int pmap_width, pmap_height; |
220 | unsigned int pmap_depth; |
217 | unsigned int pmap_depth; |
221 | |
218 | |
222 | bool window_size_sensitive(); |
219 | bool window_size_sensitive (); |
223 | void apply_background(); |
220 | void apply_background (); |
224 | |
221 | |
225 | }; |
222 | }; |
226 | #else |
223 | #else |
227 | # undef HAVE_BG_PIXMAP |
224 | # undef HAVE_BG_PIXMAP |
228 | #endif |
225 | #endif |
… | |
… | |
1480 | void extract_resources (); |
1477 | void extract_resources (); |
1481 | // xpm.C |
1478 | // xpm.C |
1482 | //int scale_pixmap (const char *geom); |
1479 | //int scale_pixmap (const char *geom); |
1483 | void resize_pixmap (); |
1480 | void resize_pixmap (); |
1484 | void set_bgPixmap (const char *file); |
1481 | void set_bgPixmap (const char *file); |
|
|
1482 | void get_window_origin (int &x, int &y); |
|
|
1483 | Pixmap get_pixmap_property (int prop_id); |
1485 | }; |
1484 | }; |
1486 | |
1485 | |
1487 | /* |
1486 | /* |
1488 | ***************************************************************************** |
1487 | ***************************************************************************** |
1489 | * PROTOTYPES |
1488 | * PROTOTYPES |