… | |
… | |
1188 | void bg_init (); |
1188 | void bg_init (); |
1189 | void bg_destroy (); |
1189 | void bg_destroy (); |
1190 | |
1190 | |
1191 | # if BG_IMAGE_FROM_FILE |
1191 | # if BG_IMAGE_FROM_FILE |
1192 | rxvt_image fimage; |
1192 | rxvt_image fimage; |
1193 | void get_image_geometry (rxvt_image &image, int &w, int &h, int &x, int &y); |
|
|
1194 | bool render_image (rxvt_image &image); |
1193 | bool render_image (rxvt_image &image); |
1195 | # endif |
1194 | # endif |
1196 | |
1195 | |
1197 | # if BG_IMAGE_FROM_ROOT |
1196 | # if BG_IMAGE_FROM_ROOT |
1198 | rxvt_img *root_img; |
1197 | rxvt_img *root_img; |
1199 | image_effects root_effects; |
1198 | image_effects root_effects; |
1200 | |
1199 | |
1201 | void bg_set_root_pixmap (); |
|
|
1202 | bool render_root_image (); |
1200 | bool render_root_image (); |
1203 | # endif |
1201 | # endif |
1204 | |
1202 | |
1205 | void tint_image (rxvt_img *img, rxvt_color &tint, bool tint_set, int shade); |
1203 | void tint_image (rxvt_img *img, rxvt_color &tint, bool tint_set, int shade); |
1206 | |
1204 | |
… | |
… | |
1208 | |
1206 | |
1209 | bool bg_window_size_sensitive (); |
1207 | bool bg_window_size_sensitive (); |
1210 | bool bg_window_position_sensitive (); |
1208 | bool bg_window_position_sensitive (); |
1211 | |
1209 | |
1212 | void bg_render (); |
1210 | void bg_render (); |
1213 | void bg_invalidate () |
|
|
1214 | { |
|
|
1215 | bg_flags &= ~(BG_IS_VALID | BG_IS_TRANSPARENT); |
|
|
1216 | } |
|
|
1217 | #endif |
1211 | #endif |
1218 | |
1212 | |
1219 | #ifdef HAVE_IMG |
1213 | #ifdef HAVE_IMG |
1220 | enum { |
1214 | enum { |
1221 | BG_IS_VALID = 1 << 0, |
|
|
1222 | |
|
|
1223 | BG_IS_TRANSPARENT = 1 << 1, |
1215 | BG_IS_TRANSPARENT = 1 << 1, |
1224 | BG_NEEDS_REFRESH = 1 << 2, |
1216 | BG_NEEDS_REFRESH = 1 << 2, |
1225 | BG_INHIBIT_RENDER = 1 << 3, |
1217 | BG_INHIBIT_RENDER = 1 << 3, |
1226 | }; |
1218 | }; |
1227 | |
1219 | |