… | |
… | |
10 | # undef min |
10 | # undef min |
11 | # undef max |
11 | # undef max |
12 | #endif |
12 | #endif |
13 | |
13 | |
14 | #ifdef HAVE_PIXBUF |
14 | #ifdef HAVE_PIXBUF |
15 | #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h> |
15 | #include <gdk-pixbuf/gdk-pixbuf.h> |
16 | #endif |
16 | #endif |
17 | |
17 | |
18 | #if defined(BG_IMAGE_FROM_FILE) || defined(ENABLE_TRANSPARENCY) |
18 | #if defined(BG_IMAGE_FROM_FILE) || defined(ENABLE_TRANSPARENCY) |
19 | # define HAVE_BG_PIXMAP 1 /* to simplify further usage */ |
19 | # define HAVE_BG_PIXMAP 1 /* to simplify further usage */ |
20 | struct bgPixmap_t |
20 | struct bgPixmap_t |
… | |
… | |
57 | ASImage *original_asim; |
57 | ASImage *original_asim; |
58 | # endif |
58 | # endif |
59 | |
59 | |
60 | # ifdef HAVE_PIXBUF |
60 | # ifdef HAVE_PIXBUF |
61 | GdkPixbuf *pixbuf; |
61 | GdkPixbuf *pixbuf; |
|
|
62 | bool pixbuf_to_pixmap (GdkPixbuf *pixbuf, Pixmap pixmap, GC gc, |
|
|
63 | int src_x, int src_y, int dst_x, int dst_y, |
|
|
64 | unsigned int width, unsigned int height); |
62 | # endif |
65 | # endif |
63 | |
66 | |
64 | void get_image_geometry (int image_width, int image_height, int &w, int &h, int &x, int &y); |
67 | void get_image_geometry (int image_width, int image_height, int &w, int &h, int &x, int &y); |
65 | bool render_image (unsigned long background_flags); |
68 | bool render_image (unsigned long background_flags); |
66 | bool have_image; |
69 | bool have_image; |
… | |
… | |
110 | |
113 | |
111 | Pixmap pixmap; |
114 | Pixmap pixmap; |
112 | unsigned int pmap_width, pmap_height; |
115 | unsigned int pmap_width, pmap_height; |
113 | unsigned int pmap_depth; |
116 | unsigned int pmap_depth; |
114 | |
117 | |
|
|
118 | int target_x; |
|
|
119 | int target_y; |
|
|
120 | bool set_position (int x, int y); |
115 | bool window_size_sensitive (); |
121 | bool window_size_sensitive (); |
116 | bool window_position_sensitive (); |
122 | bool window_position_sensitive (); |
117 | |
123 | |
118 | bool need_client_side_rendering (); |
124 | bool need_client_side_rendering (); |
119 | void apply (); |
125 | void apply (); |