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.24 by sf-exg, Mon Oct 4 14:31:01 2010 UTC vs.
Revision 1.30 by sf-exg, Sat Oct 30 10:57:53 2010 UTC

33 tintWholesome = 1 << 10, 33 tintWholesome = 1 << 10,
34 tintServerSide = 1 << 11, 34 tintServerSide = 1 << 11,
35 tintFlags = tintSet | tintServerSide | tintNeeded | tintWholesome, 35 tintFlags = tintSet | tintServerSide | tintNeeded | tintWholesome,
36 36
37 blurNeeded = 1 << 12, 37 blurNeeded = 1 << 12,
38 blurServerSide = 1 << 13, /* this doesn't work yet */ 38 blurServerSide = 1 << 13,
39 39
40 isTransparent = 1 << 16, 40 isTransparent = 1 << 16,
41 isInvalid = 1 << 17, 41 isInvalid = 1 << 17,
42 isVtOrigin = 1 << 18, /* if set pixmap has origin at corner of
43 vt window instead of parent[0]! */
44 hasChanged = 1 << 19, 42 hasChanged = 1 << 19,
45 sizeSensitive = 1 << 20, 43 sizeSensitive = 1 << 20,
46 }; 44 };
47 45
48 unsigned int flags; 46 unsigned int flags;
49 47
50 enum { 48 enum {
51 transpPmapTiled = 1 << 0, 49 transpPmapTiled = 1 << 0,
52 transpPmapTinted = tintNeeded, 50 transpPmapTinted = tintNeeded,
53 transpPmapBlured = blurNeeded, 51 transpPmapBlurred = blurNeeded,
54 transpTransformations = tintNeeded | blurNeeded, 52 transpTransformations = tintNeeded | blurNeeded,
55 }; /* these flags are returned by make_transparency_pixmap if called */ 53 }; /* these flags are returned by make_transparency_pixmap if called */
56
57 bool check_clearChanged ()
58 {
59 bool r = flags & hasChanged;
60 flags &= ~hasChanged;
61 return r;
62 };
63 54
64# ifdef BG_IMAGE_FROM_FILE 55# ifdef BG_IMAGE_FROM_FILE
65# ifdef HAVE_AFTERIMAGE 56# ifdef HAVE_AFTERIMAGE
66 ASImage *original_asim; 57 ASImage *original_asim;
67# endif 58# endif
113 bool set_transparent (); 104 bool set_transparent ();
114 bool set_blur_radius (const char *geom); 105 bool set_blur_radius (const char *geom);
115 bool set_tint (rxvt_color &new_tint); 106 bool set_tint (rxvt_color &new_tint);
116 bool unset_tint (); 107 bool unset_tint ();
117 bool set_shade (const char *shade_str); 108 bool set_shade (const char *shade_str);
118 bool tint_pixmap (Pixmap pixmap); 109 bool blur_pixmap (Pixmap pixmap, Visual *visual, int width, int height);
110 bool tint_pixmap (Pixmap pixmap, Visual *visual, int width, int height);
119 bool set_root_pixmap (); 111 void set_root_pixmap ();
120 112
121 unsigned long make_transparency_pixmap ();/* returns combination of the transpTransformations flags */ 113 unsigned long make_transparency_pixmap ();/* returns combination of the transpTransformations flags */
122# endif 114# endif
123 double invalid_since, valid_since; 115 double invalid_since, valid_since;
124 116
126 unsigned int pmap_width, pmap_height; 118 unsigned int pmap_width, pmap_height;
127 unsigned int pmap_depth; 119 unsigned int pmap_depth;
128 120
129 bool window_size_sensitive (); 121 bool window_size_sensitive ();
130 bool window_position_sensitive (); 122 bool window_position_sensitive ();
131
132 bool is_parentOrigin ()
133 {
134 return !(flags & isVtOrigin);
135 };
136 123
137 bool need_client_side_rendering (); 124 bool need_client_side_rendering ();
138 void apply (); 125 void apply ();
139 bool render (); 126 bool render ();
140 void invalidate () 127 void invalidate ()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines