LeechCraft  0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
winflags.h
Go to the documentation of this file.
1 /**********************************************************************
2  * LeechCraft - modular cross-platform feature rich internet client.
3  * Copyright (C) 2006-2014 Georg Rudoy
4  *
5  * Distributed under the Boost Software License, Version 1.0.
6  * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7  **********************************************************************/
8 
9 #pragma once
10 
11 #include <QFlags>
12 
13 namespace LC::Util
14 {
16  {
17  NoState = 0,
18  Modal = 1 << 0,
19  Sticky = 1 << 1,
20  MaximizedVert = 1 << 2,
21  MaximizedHorz = 1 << 3,
22  Shaded = 1 << 4,
23  SkipTaskbar = 1 << 5,
24  SkipPager = 1 << 6,
25  Hidden = 1 << 7,
26  Fullscreen = 1 << 8,
27  OnTop = 1 << 9,
28  OnBottom = 1 << 10,
29  Attention = 1 << 11
30  };
31 
32  Q_DECLARE_FLAGS (WinStateFlags, WinStateFlag)
33 
35  {
36  NoAction = 0,
37  Move = 1 << 0,
38  Resize = 1 << 1,
39  Minimize = 1 << 2,
40  Shade = 1 << 3,
41  Stick = 1 << 4,
42  MaximizeHorz = 1 << 5,
43  MaximizeVert = 1 << 6,
44  ShowFullscreen = 1 << 7,
45  ChangeDesktop = 1 << 8,
46  Close = 1 << 9,
47  MoveToTop = 1 << 10,
48  MoveToBottom = 1 << 11
49  };
50 
51  Q_DECLARE_FLAGS (AllowedActionFlags, AllowedActionFlag)
52 }
53 
54 Q_DECLARE_OPERATORS_FOR_FLAGS (LC::Util::WinStateFlags)
55 Q_DECLARE_OPERATORS_FOR_FLAGS (LC::Util::AllowedActionFlags)
AllowedActionFlag
Definition: winflags.h:34
Q_DECLARE_FLAGS(FitFlags, FitFlag)
WinStateFlag
Definition: winflags.h:15