diff options
Diffstat (limited to 'src/Window.hh')
-rw-r--r-- | src/Window.hh | 56 |
1 files changed, 34 insertions, 22 deletions
diff --git a/src/Window.hh b/src/Window.hh index d7a6769..a7ef327 100644 --- a/src/Window.hh +++ b/src/Window.hh | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Window.hh,v 1.81 2003/06/24 14:57:06 fluxgen Exp $ | 25 | // $Id: Window.hh,v 1.82 2003/06/25 13:37:06 fluxgen Exp $ |
26 | 26 | ||
27 | #ifndef WINDOW_HH | 27 | #ifndef WINDOW_HH |
28 | #define WINDOW_HH | 28 | #define WINDOW_HH |
@@ -103,6 +103,35 @@ public: | |||
103 | ATTRIB_DECORATION = 0x40 | 103 | ATTRIB_DECORATION = 0x40 |
104 | }; | 104 | }; |
105 | 105 | ||
106 | /** | ||
107 | * Types of maximization | ||
108 | */ | ||
109 | enum MaximizeMode { | ||
110 | MAX_NONE = 0, ///< normal state | ||
111 | MAX_HORZ = 1, ///< maximize horizontal | ||
112 | MAX_VERT = 2, ///< maximize vertical | ||
113 | MAX_FULL = 3 ///< maximize full | ||
114 | }; | ||
115 | /** | ||
116 | This enumeration represents individual decoration | ||
117 | attributes, they can be OR-d together to get a mask. | ||
118 | Useful for saving. | ||
119 | */ | ||
120 | enum DecorationMask { | ||
121 | DECORM_TITLEBAR = (1<<0), | ||
122 | DECORM_HANDLE = (1<<1), | ||
123 | DECORM_BORDER = (1<<2), | ||
124 | DECORM_ICONIFY = (1<<3), | ||
125 | DECORM_MAXIMIZE = (1<<4), | ||
126 | DECORM_CLOSE = (1<<5), | ||
127 | DECORM_MENU = (1<<6), | ||
128 | DECORM_STICKY = (1<<7), | ||
129 | DECORM_SHADE = (1<<8), | ||
130 | DECORM_TAB = (1<<9), | ||
131 | DECORM_ENABLED = (1<<10), | ||
132 | DECORM_LAST = (1<<11) // useful for getting "All" | ||
133 | }; | ||
134 | |||
106 | typedef struct _blackbox_hints { | 135 | typedef struct _blackbox_hints { |
107 | unsigned long flags, attrib, workspace, stack; | 136 | unsigned long flags, attrib, workspace, stack; |
108 | int decoration; | 137 | int decoration; |
@@ -212,25 +241,6 @@ public: | |||
212 | void applyDecorations(); | 241 | void applyDecorations(); |
213 | void toggleDecoration(); | 242 | void toggleDecoration(); |
214 | 243 | ||
215 | /** | ||
216 | This enumeration represents individual decoration | ||
217 | attributes, they can be OR-d together to get a mask. | ||
218 | Useful for saving. | ||
219 | */ | ||
220 | enum DecorationMask { | ||
221 | DECORM_TITLEBAR = (1<<0), | ||
222 | DECORM_HANDLE = (1<<1), | ||
223 | DECORM_BORDER = (1<<2), | ||
224 | DECORM_ICONIFY = (1<<3), | ||
225 | DECORM_MAXIMIZE = (1<<4), | ||
226 | DECORM_CLOSE = (1<<5), | ||
227 | DECORM_MENU = (1<<6), | ||
228 | DECORM_STICKY = (1<<7), | ||
229 | DECORM_SHADE = (1<<8), | ||
230 | DECORM_TAB = (1<<9), | ||
231 | DECORM_ENABLED = (1<<10), | ||
232 | DECORM_LAST = (1<<11) // useful for getting "All" | ||
233 | }; | ||
234 | 244 | ||
235 | void setStrut(Strut *strut); | 245 | void setStrut(Strut *strut); |
236 | void clearStrut(); | 246 | void clearStrut(); |
@@ -249,7 +259,7 @@ public: | |||
249 | bool isVisible() const; | 259 | bool isVisible() const; |
250 | inline bool isIconic() const { return iconic; } | 260 | inline bool isIconic() const { return iconic; } |
251 | inline bool isShaded() const { return shaded; } | 261 | inline bool isShaded() const { return shaded; } |
252 | inline bool isMaximized() const { return maximized; } | 262 | inline bool isMaximized() const { return maximized == MAX_FULL; } |
253 | inline bool isIconifiable() const { return functions.iconify; } | 263 | inline bool isIconifiable() const { return functions.iconify; } |
254 | inline bool isMaximizable() const { return functions.maximize; } | 264 | inline bool isMaximizable() const { return functions.maximize; } |
255 | inline bool isResizable() const { return functions.resize; } | 265 | inline bool isResizable() const { return functions.resize; } |
@@ -382,9 +392,11 @@ private: | |||
382 | WinSubject m_hintsig, m_statesig, m_layersig, m_workspacesig, m_diesig; | 392 | WinSubject m_hintsig, m_statesig, m_layersig, m_workspacesig, m_diesig; |
383 | 393 | ||
384 | // Window states | 394 | // Window states |
385 | bool moving, resizing, shaded, maximized, iconic, | 395 | bool moving, resizing, shaded, iconic, |
386 | focused, stuck, m_managed; | 396 | focused, stuck, m_managed; |
387 | 397 | ||
398 | int maximized; | ||
399 | |||
388 | WinClient *m_attaching_tab; | 400 | WinClient *m_attaching_tab; |
389 | 401 | ||
390 | BScreen &m_screen; /// screen on which this window exist | 402 | BScreen &m_screen; /// screen on which this window exist |