… | |
… | |
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 | void 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 | void render_root_image (); |
1203 | # endif |
1201 | # endif |
1204 | |
|
|
1205 | void tint_image (rxvt_img *img, rxvt_color &tint, bool tint_set, int shade); |
|
|
1206 | |
1202 | |
1207 | ev_tstamp bg_valid_since; |
1203 | ev_tstamp bg_valid_since; |
1208 | |
1204 | |
1209 | bool bg_window_size_sensitive (); |
1205 | bool bg_window_size_sensitive (); |
1210 | bool bg_window_position_sensitive (); |
1206 | bool bg_window_position_sensitive (); |
1211 | |
1207 | |
1212 | void bg_render (); |
1208 | void bg_render (); |
1213 | void bg_invalidate () |
|
|
1214 | { |
|
|
1215 | bg_flags &= ~(BG_IS_VALID | BG_IS_TRANSPARENT); |
|
|
1216 | } |
|
|
1217 | #endif |
1209 | #endif |
1218 | |
1210 | |
1219 | #ifdef HAVE_IMG |
1211 | #ifdef HAVE_IMG |
1220 | enum { |
1212 | enum { |
1221 | BG_IS_VALID = 1 << 0, |
|
|
1222 | |
|
|
1223 | BG_IS_TRANSPARENT = 1 << 1, |
1213 | BG_IS_TRANSPARENT = 1 << 1, |
1224 | BG_NEEDS_REFRESH = 1 << 2, |
1214 | BG_NEEDS_REFRESH = 1 << 2, |
1225 | BG_INHIBIT_RENDER = 1 << 3, |
1215 | BG_INHIBIT_RENDER = 1 << 3, |
1226 | }; |
1216 | }; |
1227 | |
1217 | |
… | |
… | |
1494 | void scr_alloc () NOTHROW; |
1484 | void scr_alloc () NOTHROW; |
1495 | void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; |
1485 | void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; |
1496 | void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW; |
1486 | void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW; |
1497 | void scr_kill_char (line_t &l, int col) const NOTHROW; |
1487 | void scr_kill_char (line_t &l, int col) const NOTHROW; |
1498 | int scr_scroll_text (int row1, int row2, int count) NOTHROW; |
1488 | int scr_scroll_text (int row1, int row2, int count) NOTHROW; |
|
|
1489 | void copy_line (line_t &dst, line_t &src); |
1499 | void scr_reset (); |
1490 | void scr_reset (); |
1500 | void scr_release () NOTHROW; |
1491 | void scr_release () NOTHROW; |
1501 | void scr_clear (bool really = false) NOTHROW; |
1492 | void scr_clear (bool really = false) NOTHROW; |
1502 | void scr_refresh () NOTHROW; |
1493 | void scr_refresh () NOTHROW; |
1503 | bool scr_refresh_rend (rend_t mask, rend_t value) NOTHROW; |
1494 | bool scr_refresh_rend (rend_t mask, rend_t value) NOTHROW; |