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.34 by sf-exg, Mon Nov 1 14:58:44 2010 UTC

29 geometryFlags = geometrySet | propScale | rootAlign, 29 geometryFlags = geometrySet | propScale | rootAlign,
30 30
31 tintSet = 1 << 8, 31 tintSet = 1 << 8,
32 tintNeeded = 1 << 9, 32 tintNeeded = 1 << 9,
33 tintWholesome = 1 << 10, 33 tintWholesome = 1 << 10,
34 tintServerSide = 1 << 11,
35 tintFlags = tintSet | tintServerSide | tintNeeded | tintWholesome, 34 tintFlags = tintSet | tintNeeded | tintWholesome,
36 35
37 blurNeeded = 1 << 12, 36 blurNeeded = 1 << 11,
38 blurServerSide = 1 << 13, /* this doesn't work yet */ 37
38 HAS_RENDER = 1 << 12,
39 HAS_RENDER_CONV = 1 << 13,
39 40
40 isTransparent = 1 << 16, 41 isTransparent = 1 << 16,
41 isInvalid = 1 << 17, 42 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, 43 hasChanged = 1 << 19,
45 sizeSensitive = 1 << 20, 44 sizeSensitive = 1 << 20,
46 }; 45 };
47 46
48 unsigned int flags; 47 unsigned int flags;
49 48
50 enum { 49 enum {
51 transpPmapTiled = 1 << 0, 50 transpPmapTiled = 1 << 0,
52 transpPmapTinted = tintNeeded, 51 transpPmapTinted = tintNeeded,
53 transpPmapBlured = blurNeeded, 52 transpPmapBlurred = blurNeeded,
54 transpTransformations = tintNeeded | blurNeeded, 53 transpTransformations = tintNeeded | blurNeeded,
55 }; /* these flags are returned by make_transparency_pixmap if called */ 54 }; /* 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 55
64# ifdef BG_IMAGE_FROM_FILE 56# ifdef BG_IMAGE_FROM_FILE
65# ifdef HAVE_AFTERIMAGE 57# ifdef HAVE_AFTERIMAGE
66 ASImage *original_asim; 58 ASImage *original_asim;
67# endif 59# endif
99 91
100 bool set_file (const char *file); 92 bool set_file (const char *file);
101# endif /* BG_IMAGE_FROM_FILE */ 93# endif /* BG_IMAGE_FROM_FILE */
102 94
103 rxvt_term *target; 95 rxvt_term *target;
104 bool set_target (rxvt_term *new_target); 96 void set_target (rxvt_term *new_target);
105 97
106# ifdef ENABLE_TRANSPARENCY 98# ifdef ENABLE_TRANSPARENCY
107 int root_depth; /* obtained when target is set */
108 Pixmap root_pixmap; /* current root pixmap set */ 99 Pixmap root_pixmap; /* current root pixmap set */
109 rxvt_color tint; 100 rxvt_color tint;
110 int shade; 101 int shade;
111 int h_blurRadius, v_blurRadius; 102 int h_blurRadius, v_blurRadius;
112 103
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