ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/background.h
(Generate patch)

Comparing rxvt-unicode/src/background.h (file contents):
Revision 1.41 by sf-exg, Tue Jan 11 11:04:39 2011 UTC vs.
Revision 1.46 by sf-exg, Sun Jan 23 12:54:42 2011 UTC

28 geometryFlags = propScale | rootAlign, 28 geometryFlags = propScale | rootAlign,
29 29
30 tintSet = 1 << 8, 30 tintSet = 1 << 8,
31 tintNeeded = 1 << 9, 31 tintNeeded = 1 << 9,
32 tintWholesome = 1 << 10, 32 tintWholesome = 1 << 10,
33 tintFlags = tintSet | tintNeeded | tintWholesome, 33 tintFlags = tintNeeded | tintWholesome,
34 34
35 blurNeeded = 1 << 11, 35 blurNeeded = 1 << 11,
36
37 effectsFlags = tintNeeded | blurNeeded,
36 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,
42 isInvalid = 1 << 17, 44 isValid = 1 << 17,
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 invalid_since, 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;
116 111
117 int target_x; 112 int target_x;
118 int target_y; 113 int target_y;
119 bool set_position (int x, int y); 114 bool set_position (int x, int y);
120 bool window_size_sensitive (); 115 bool window_size_sensitive ();
121 bool window_position_sensitive (); 116 bool window_position_sensitive ();
122 117
123 void apply ();
124 bool render (); 118 bool render ();
125 void invalidate () 119 void invalidate ()
126 { 120 {
127 if (!(flags & isInvalid))
128 {
129 flags |= isInvalid; 121 flags &= ~isValid;
130 invalid_since = ev::now ();
131 }
132 } 122 }
133}; 123};
134#else 124#else
135# undef HAVE_BG_PIXMAP 125# undef HAVE_BG_PIXMAP
136#endif 126#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines