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.35 by sf-exg, Fri Nov 12 22:00:05 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 tintFlags = tintSet | tintNeeded | tintWholesome, 33 tintFlags = tintSet | tintNeeded | tintWholesome,
75 }; 74 };
76 75
77 unsigned int h_scale, v_scale;/* percents of the window size */ 76 unsigned int h_scale, v_scale;/* percents of the window size */
78 int h_align, v_align; /* percents of the window size: 77 int h_align, v_align; /* percents of the window size:
79 0 - left align, 50 - center, 100 - right */ 78 0 - left align, 50 - center, 100 - right */
80 void unset_geometry ()
81 {
82 flags = flags & ~geometryFlags;
83 }
84 bool set_geometry (const char *geom); 79 bool set_geometry (const char *geom, bool update = false);
85 void set_defaultGeometry () 80 void set_defaultGeometry ()
86 { 81 {
87 h_scale = v_scale = defaultScale; 82 h_scale = v_scale = defaultScale;
88 h_align = v_align = defaultAlign; 83 h_align = v_align = defaultAlign;
89 flags |= geometrySet;
90 } 84 }
91 85
92 bool set_file (const char *file); 86 bool set_file (const char *file);
93# endif /* BG_IMAGE_FROM_FILE */ 87# endif /* BG_IMAGE_FROM_FILE */
94 88

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines