… | |
… | |
53 | # ifdef HAVE_AFTERIMAGE |
53 | # ifdef HAVE_AFTERIMAGE |
54 | ASImage *original_asim; |
54 | ASImage *original_asim; |
55 | bool render_asim (ASImage *background, ARGB32 background_tint); |
55 | bool render_asim (ASImage *background, ARGB32 background_tint); |
56 | # endif |
56 | # endif |
57 | |
57 | |
58 | enum { defaultScale = 100, defaultAlign = 50 }; |
58 | enum { |
|
|
59 | noScale = 0, windowScale = 100, defaultScale = windowScale, |
|
|
60 | centerAlign = 50, defaultAlign = centerAlign, |
|
|
61 | rootAlign = -10000 }; |
59 | |
62 | |
60 | unsigned int h_scale, v_scale;/* percents of the window size */ |
63 | unsigned int h_scale, v_scale;/* percents of the window size */ |
61 | int h_align, v_align; /* percents of the window size: |
64 | int h_align, v_align; /* percents of the window size: |
62 | 0 - left align, 50 - center, 100 - right */ |
65 | 0 - left align, 50 - center, 100 - right */ |
63 | void unset_geometry () { flags = flags & ~geometryFlags; }; |
66 | void unset_geometry () { flags = flags & ~geometryFlags; }; |
… | |
… | |
96 | Pixmap pixmap; |
99 | Pixmap pixmap; |
97 | unsigned int pmap_width, pmap_height; |
100 | unsigned int pmap_width, pmap_height; |
98 | unsigned int pmap_depth; |
101 | unsigned int pmap_depth; |
99 | |
102 | |
100 | bool window_size_sensitive (); |
103 | bool window_size_sensitive (); |
101 | bool window_position_sensitive () { |
104 | bool window_position_sensitive (); |
102 | return (flags & isTransparent); |
|
|
103 | }; |
|
|
104 | |
105 | |
105 | bool is_parentOrigin () { |
106 | bool is_parentOrigin () { |
106 | return !(flags & isVtOrigin); |
107 | return !(flags & isVtOrigin); |
107 | }; |
108 | }; |
108 | |
109 | |