… | |
… | |
171 | #else |
171 | #else |
172 | # undef KEEP_SCROLLCOLOR |
172 | # undef KEEP_SCROLLCOLOR |
173 | #endif |
173 | #endif |
174 | |
174 | |
175 | #if defined(XPM_BACKGROUND) || defined(ENABLE_TRANSPARENCY) |
175 | #if defined(XPM_BACKGROUND) || defined(ENABLE_TRANSPARENCY) |
176 | typedef struct { |
176 | # define HAVE_BG_PIXMAP 1/* to simplify further usage */ |
|
|
177 | struct bgPixmap_t { |
177 | #ifdef XPM_BACKGROUND |
178 | # ifdef XPM_BACKGROUND |
|
|
179 | |
|
|
180 | # ifdef HAVE_AFTERIMAGE |
178 | ASImage *original_asim; |
181 | ASImage *original_asim; |
179 | short w, h, x, y; |
182 | # endif |
180 | bool auto_resize; |
183 | |
|
|
184 | unsigned int h_scale, v_scale;/* percents of the window size */ |
|
|
185 | int h_align, v_align; /* percents of the window size: |
|
|
186 | 0 - left align, 50 - center, 100 - right */ |
|
|
187 | |
|
|
188 | bool handle_geometry (const char *geom); |
|
|
189 | |
181 | #endif |
190 | # endif |
|
|
191 | |
|
|
192 | # define bgPmap_geometrySet (1UL<<0) |
|
|
193 | # define bgPmap_hScale (1UL<<1) |
|
|
194 | # define bgPmap_vScale (1UL<<2) |
|
|
195 | # define bgPmap_Scale (bgPmap_hScale|bgPmap_vScale) |
|
|
196 | # define bgPmap_propScale (1UL<<3) |
|
|
197 | # define bgPmap_geometryFlags (bgPmap_geometrySet|bgPmap_Scale|bgPmap_propScale) |
|
|
198 | |
|
|
199 | # define bgPmap_Transparent (1UL<<16) |
|
|
200 | unsigned long flags; |
|
|
201 | |
182 | Pixmap pixmap; |
202 | Pixmap pixmap; |
183 | unsigned int pmap_width, pmap_height; |
203 | unsigned int pmap_width, pmap_height; |
184 | unsigned int pmap_depth; |
204 | unsigned int pmap_depth; |
185 | } bgPixmap_t; |
205 | |
|
|
206 | bool window_size_sensitive(); |
|
|
207 | |
|
|
208 | }; |
|
|
209 | #else |
|
|
210 | # undef HAVE_BG_PIXMAP |
186 | #endif |
211 | #endif |
187 | |
212 | |
188 | /* |
213 | /* |
189 | * the 'essential' information for reporting Mouse Events |
214 | * the 'essential' information for reporting Mouse Events |
190 | * pared down from XButtonEvent |
215 | * pared down from XButtonEvent |
… | |
… | |
1009 | #endif |
1034 | #endif |
1010 | struct mouse_event MEvent; |
1035 | struct mouse_event MEvent; |
1011 | XComposeStatus compose; |
1036 | XComposeStatus compose; |
1012 | ttymode_t tio; |
1037 | ttymode_t tio; |
1013 | row_col_t oldcursor; |
1038 | row_col_t oldcursor; |
1014 | #if defined(XPM_BACKGROUND) || defined(ENABLE_TRANSPARENCY) |
1039 | #ifdef HAVE_BG_PIXMAP |
1015 | bgPixmap_t bgPixmap; |
1040 | bgPixmap_t bgPixmap; |
1016 | #endif |
1041 | #endif |
1017 | #ifdef XPM_BACKGROUND |
1042 | #ifdef HAVE_AFTERIMAGE |
1018 | struct ASVisual *asv; |
1043 | ASVisual *asv; |
1019 | ASImageManager *asimman; |
1044 | ASImageManager *asimman; |
1020 | #endif |
1045 | #endif |
1021 | |
1046 | |
1022 | #if ENABLE_OVERLAY |
1047 | #if ENABLE_OVERLAY |
1023 | int ov_x, ov_y, ov_w, ov_h; // overlay dimensions |
1048 | int ov_x, ov_y, ov_w, ov_h; // overlay dimensions |
… | |
… | |
1435 | void get_options (int argc, const char *const *argv); |
1460 | void get_options (int argc, const char *const *argv); |
1436 | int parse_keysym (const char *str, const char *arg); |
1461 | int parse_keysym (const char *str, const char *arg); |
1437 | void get_xdefaults (FILE *stream, const char *name); |
1462 | void get_xdefaults (FILE *stream, const char *name); |
1438 | void extract_resources (); |
1463 | void extract_resources (); |
1439 | // xpm.C |
1464 | // xpm.C |
1440 | int scale_pixmap (const char *geom); |
1465 | //int scale_pixmap (const char *geom); |
1441 | void resize_pixmap (); |
1466 | void resize_pixmap (); |
1442 | void set_bgPixmap (const char *file); |
1467 | void set_bgPixmap (const char *file); |
1443 | }; |
1468 | }; |
1444 | |
1469 | |
1445 | /* |
1470 | /* |