… | |
… | |
32 | tintWholesome = 1 << 10, |
32 | tintWholesome = 1 << 10, |
33 | tintFlags = tintNeeded | tintWholesome, |
33 | tintFlags = tintNeeded | tintWholesome, |
34 | |
34 | |
35 | blurNeeded = 1 << 11, |
35 | blurNeeded = 1 << 11, |
36 | |
36 | |
|
|
37 | effectsFlags = tintNeeded | blurNeeded, |
|
|
38 | |
37 | HAS_RENDER = 1 << 12, |
39 | HAS_RENDER = 1 << 12, |
38 | HAS_RENDER_CONV = 1 << 13, |
40 | HAS_RENDER_CONV = 1 << 13, |
39 | CLIENT_RENDER = 1 << 14, |
41 | CLIENT_RENDER = 1 << 14, |
40 | |
42 | |
41 | isTransparent = 1 << 16, |
43 | isTransparent = 1 << 16, |
… | |
… | |
43 | hasChanged = 1 << 19, |
45 | hasChanged = 1 << 19, |
44 | sizeSensitive = 1 << 20, |
46 | sizeSensitive = 1 << 20, |
45 | }; |
47 | }; |
46 | |
48 | |
47 | unsigned int flags; |
49 | unsigned int flags; |
48 | |
|
|
49 | enum { |
|
|
50 | transpPmapTiled = 1 << 0, |
|
|
51 | transpPmapTinted = tintNeeded, |
|
|
52 | transpPmapBlurred = blurNeeded, |
|
|
53 | transpTransformations = tintNeeded | blurNeeded, |
|
|
54 | }; /* these flags are returned by make_transparency_pixmap if called */ |
|
|
55 | |
50 | |
56 | # ifdef BG_IMAGE_FROM_FILE |
51 | # ifdef BG_IMAGE_FROM_FILE |
57 | # ifdef HAVE_AFTERIMAGE |
52 | # ifdef HAVE_AFTERIMAGE |
58 | ASImage *original_asim; |
53 | ASImage *original_asim; |
59 | # endif |
54 | # endif |
… | |
… | |
105 | bool set_shade (const char *shade_str); |
100 | bool set_shade (const char *shade_str); |
106 | bool blur_pixmap (Pixmap pixmap, Visual *visual, int width, int height); |
101 | bool blur_pixmap (Pixmap pixmap, Visual *visual, int width, int height); |
107 | bool tint_pixmap (Pixmap pixmap, Visual *visual, int width, int height); |
102 | bool tint_pixmap (Pixmap pixmap, Visual *visual, int width, int height); |
108 | void set_root_pixmap (); |
103 | void set_root_pixmap (); |
109 | |
104 | |
110 | unsigned long make_transparency_pixmap ();/* returns combination of the transpTransformations flags */ |
105 | unsigned long make_transparency_pixmap (); |
111 | # endif |
106 | # endif |
112 | double valid_since; |
107 | double valid_since; |
113 | |
108 | |
114 | Pixmap pixmap; |
109 | Pixmap pixmap; |
115 | unsigned int pmap_width, pmap_height; |
110 | unsigned int pmap_width, pmap_height; |