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.29 by sf-exg, Fri Oct 22 18:03:10 2010 UTC vs.
Revision 1.36 by sf-exg, Thu Nov 18 17:28:12 2010 UTC

21{ 21{
22 bgPixmap_t (); 22 bgPixmap_t ();
23 void destroy (); 23 void destroy ();
24 24
25 enum { 25 enum {
26 geometrySet = 1 << 0,
27 propScale = 1 << 1, 26 propScale = 1 << 1,
28 rootAlign = 1 << 2, 27 rootAlign = 1 << 2,
29 geometryFlags = geometrySet | propScale | rootAlign, 28 geometryFlags = propScale | rootAlign,
30 29
31 tintSet = 1 << 8, 30 tintSet = 1 << 8,
32 tintNeeded = 1 << 9, 31 tintNeeded = 1 << 9,
33 tintWholesome = 1 << 10, 32 tintWholesome = 1 << 10,
34 tintServerSide = 1 << 11,
35 tintFlags = tintSet | tintServerSide | tintNeeded | tintWholesome, 33 tintFlags = tintSet | tintNeeded | tintWholesome,
36 34
37 blurNeeded = 1 << 12, 35 blurNeeded = 1 << 11,
38 blurServerSide = 1 << 13, 36
37 HAS_RENDER = 1 << 12,
38 HAS_RENDER_CONV = 1 << 13,
39 39
40 isTransparent = 1 << 16, 40 isTransparent = 1 << 16,
41 isInvalid = 1 << 17, 41 isInvalid = 1 << 17,
42 hasChanged = 1 << 19, 42 hasChanged = 1 << 19,
43 sizeSensitive = 1 << 20, 43 sizeSensitive = 1 << 20,
74 }; 74 };
75 75
76 unsigned int h_scale, v_scale;/* percents of the window size */ 76 unsigned int h_scale, v_scale;/* percents of the window size */
77 int h_align, v_align; /* percents of the window size: 77 int h_align, v_align; /* percents of the window size:
78 0 - left align, 50 - center, 100 - right */ 78 0 - left align, 50 - center, 100 - right */
79 void unset_geometry ()
80 {
81 flags = flags & ~geometryFlags;
82 };
83 bool set_geometry (const char *geom); 79 bool set_geometry (const char *geom, bool update = false);
84 void set_defaultGeometry () 80 void set_defaultGeometry ()
85 { 81 {
86 h_scale = v_scale = defaultScale; 82 h_scale = v_scale = defaultScale;
87 h_align = v_align = defaultAlign; 83 h_align = v_align = defaultAlign;
88 flags |= geometrySet;
89 }; 84 }
90 85
91 bool set_file (const char *file); 86 bool set_file (const char *file);
92# endif /* BG_IMAGE_FROM_FILE */ 87# endif /* BG_IMAGE_FROM_FILE */
93 88
94 rxvt_term *target; 89 rxvt_term *target;
95 bool set_target (rxvt_term *new_target); 90 void set_target (rxvt_term *new_target);
96 91
97# ifdef ENABLE_TRANSPARENCY 92# ifdef ENABLE_TRANSPARENCY
98 int root_depth; /* obtained when target is set */
99 Pixmap root_pixmap; /* current root pixmap set */ 93 Pixmap root_pixmap; /* current root pixmap set */
100 rxvt_color tint; 94 rxvt_color tint;
101 int shade; 95 int shade;
102 int h_blurRadius, v_blurRadius; 96 int h_blurRadius, v_blurRadius;
103 97
106 bool set_tint (rxvt_color &new_tint); 100 bool set_tint (rxvt_color &new_tint);
107 bool unset_tint (); 101 bool unset_tint ();
108 bool set_shade (const char *shade_str); 102 bool set_shade (const char *shade_str);
109 bool blur_pixmap (Pixmap pixmap, Visual *visual, int width, int height); 103 bool blur_pixmap (Pixmap pixmap, Visual *visual, int width, int height);
110 bool tint_pixmap (Pixmap pixmap, Visual *visual, int width, int height); 104 bool tint_pixmap (Pixmap pixmap, Visual *visual, int width, int height);
111 bool set_root_pixmap (); 105 void set_root_pixmap ();
112 106
113 unsigned long make_transparency_pixmap ();/* returns combination of the transpTransformations flags */ 107 unsigned long make_transparency_pixmap ();/* returns combination of the transpTransformations flags */
114# endif 108# endif
115 double invalid_since, valid_since; 109 double invalid_since, valid_since;
116 110
129 if (!(flags & isInvalid)) 123 if (!(flags & isInvalid))
130 { 124 {
131 flags |= isInvalid; 125 flags |= isInvalid;
132 invalid_since = ev::now (); 126 invalid_since = ev::now ();
133 } 127 }
134 }; 128 }
135}; 129};
136#else 130#else
137# undef HAVE_BG_PIXMAP 131# undef HAVE_BG_PIXMAP
138#endif 132#endif
139 133

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines