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.26 by sf-exg, Tue Oct 12 21:26:57 2010 UTC vs.
Revision 1.32 by sf-exg, Sun Oct 31 11:15:29 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;
51 transpPmapTiled = 1 << 0, 49 transpPmapTiled = 1 << 0,
52 transpPmapTinted = tintNeeded, 50 transpPmapTinted = tintNeeded,
53 transpPmapBlurred = 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
102 93
103 rxvt_term *target; 94 rxvt_term *target;
104 bool set_target (rxvt_term *new_target); 95 bool set_target (rxvt_term *new_target);
105 96
106# ifdef ENABLE_TRANSPARENCY 97# ifdef ENABLE_TRANSPARENCY
107 int root_depth; /* obtained when target is set */
108 Pixmap root_pixmap; /* current root pixmap set */ 98 Pixmap root_pixmap; /* current root pixmap set */
109 rxvt_color tint; 99 rxvt_color tint;
110 int shade; 100 int shade;
111 int h_blurRadius, v_blurRadius; 101 int h_blurRadius, v_blurRadius;
112 102
113 bool set_transparent (); 103 bool set_transparent ();
114 bool set_blur_radius (const char *geom); 104 bool set_blur_radius (const char *geom);
115 bool set_tint (rxvt_color &new_tint); 105 bool set_tint (rxvt_color &new_tint);
116 bool unset_tint (); 106 bool unset_tint ();
117 bool set_shade (const char *shade_str); 107 bool set_shade (const char *shade_str);
108 bool blur_pixmap (Pixmap pixmap, Visual *visual, int width, int height);
118 bool tint_pixmap (Pixmap pixmap, Window root, int width, int height); 109 bool tint_pixmap (Pixmap pixmap, Visual *visual, int width, int height);
119 bool set_root_pixmap (); 110 void set_root_pixmap ();
120 111
121 unsigned long make_transparency_pixmap ();/* returns combination of the transpTransformations flags */ 112 unsigned long make_transparency_pixmap ();/* returns combination of the transpTransformations flags */
122# endif 113# endif
123 double invalid_since, valid_since; 114 double invalid_since, valid_since;
124 115
126 unsigned int pmap_width, pmap_height; 117 unsigned int pmap_width, pmap_height;
127 unsigned int pmap_depth; 118 unsigned int pmap_depth;
128 119
129 bool window_size_sensitive (); 120 bool window_size_sensitive ();
130 bool window_position_sensitive (); 121 bool window_position_sensitive ();
131
132 bool is_parentOrigin ()
133 {
134 return !(flags & isVtOrigin);
135 };
136 122
137 bool need_client_side_rendering (); 123 bool need_client_side_rendering ();
138 void apply (); 124 void apply ();
139 bool render (); 125 bool render ();
140 void invalidate () 126 void invalidate ()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines