… | |
… | |
1138 | BG_CLIENT_RENDER = 1 << 9, |
1138 | BG_CLIENT_RENDER = 1 << 9, |
1139 | |
1139 | |
1140 | BG_IS_TRANSPARENT = 1 << 10, |
1140 | BG_IS_TRANSPARENT = 1 << 10, |
1141 | BG_NEEDS_REFRESH = 1 << 11, |
1141 | BG_NEEDS_REFRESH = 1 << 11, |
1142 | BG_IS_SIZE_SENSITIVE = 1 << 12, |
1142 | BG_IS_SIZE_SENSITIVE = 1 << 12, |
|
|
1143 | BG_IS_FROM_FILE = 1 << 13, |
1143 | }; |
1144 | }; |
1144 | |
1145 | |
1145 | unsigned int bg_flags; |
1146 | unsigned int bg_flags; |
1146 | |
1147 | |
1147 | # ifdef BG_IMAGE_FROM_FILE |
1148 | # ifdef BG_IMAGE_FROM_FILE |
1148 | void get_image_geometry (int image_width, int image_height, int &w, int &h, int &x, int &y); |
1149 | void get_image_geometry (int image_width, int image_height, int &w, int &h, int &x, int &y); |
1149 | bool render_image (unsigned long tr_flags); |
1150 | bool render_image (unsigned long tr_flags); |
1150 | bool have_image; |
|
|
1151 | |
1151 | |
1152 | enum { |
1152 | enum { |
1153 | noScale = 0, |
1153 | noScale = 0, |
1154 | windowScale = 100, |
1154 | windowScale = 100, |
1155 | defaultScale = windowScale, |
1155 | defaultScale = windowScale, |
… | |
… | |
1177 | int shade; |
1177 | int shade; |
1178 | int h_blurRadius, v_blurRadius; |
1178 | int h_blurRadius, v_blurRadius; |
1179 | |
1179 | |
1180 | bool bg_set_transparent (); |
1180 | bool bg_set_transparent (); |
1181 | void bg_set_root_pixmap (); |
1181 | void bg_set_root_pixmap (); |
|
|
1182 | void set_tint_shade_flags (); |
1182 | bool bg_set_tint (rxvt_color &new_tint); |
1183 | bool bg_set_tint (rxvt_color &new_tint); |
1183 | bool bg_set_shade (const char *shade_str); |
1184 | bool bg_set_shade (const char *shade_str); |
1184 | bool bg_set_blur (const char *geom); |
1185 | bool bg_set_blur (const char *geom); |
1185 | |
1186 | |
1186 | bool blur_pixmap (Pixmap pixmap, Visual *visual, int width, int height); |
1187 | bool blur_pixmap (Pixmap pixmap, Visual *visual, int width, int height); |
1187 | bool tint_pixmap (Pixmap pixmap, Visual *visual, int width, int height); |
1188 | bool tint_pixmap (Pixmap pixmap, Visual *visual, int width, int height); |
1188 | unsigned long make_transparency_pixmap (); |
1189 | unsigned long make_transparency_pixmap (); |
1189 | # endif |
1190 | # endif |
1190 | |
1191 | |
1191 | double bg_valid_since; |
1192 | ev_tstamp bg_valid_since; |
1192 | |
1193 | |
1193 | Pixmap bg_pixmap; |
1194 | Pixmap bg_pixmap; |
1194 | unsigned int bg_pmap_width, bg_pmap_height; |
1195 | unsigned int bg_pmap_width, bg_pmap_height; |
1195 | |
1196 | |
1196 | int target_x; |
1197 | int target_x; |