aboutsummaryrefslogtreecommitdiff
path: root/src/WindowHint.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/WindowHint.hh')
-rw-r--r--src/WindowHint.hh34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/WindowHint.hh b/src/WindowHint.hh
new file mode 100644
index 0000000..3a02271
--- /dev/null
+++ b/src/WindowHint.hh
@@ -0,0 +1,34 @@
1#ifndef WINDOWHINTS_HH
2#define WINDOWHINTS_HH
3
4namespace FbPager {
5class WindowHint {
6public:
7 enum Hint {
8 WHINT_ICONIC = 0x0001,
9 WHINT_STICKY = 0x0002,
10 WHINT_SHADED = 0x0004,
11 WHINT_SKIP_PAGER = 0x0008,
12 WHINT_SKIP_TASKBAR = 0x0010,
13 WHINT_NO_DECOR = 0x0020,
14 WHINT_HIDDEN = 0x0040,
15 WHINT_TYPE_DOCK = 0x0080,
16 WHINT_LAYER_BOTTOM = 0x0100,
17 WHINT_LAYER_TOP = 0x0200,
18 };
19
20 WindowHint():m_flags(0),
21 m_workspace(0) {
22 }
23 inline void add(int hint) { m_flags |= hint; }
24 inline int flags() const { return m_flags; }
25 inline void setWorkspace(int num) { m_workspace = num; }
26 inline int workspace() const { return m_workspace; }
27private:
28 int m_flags;
29 int m_workspace;
30};
31
32} // end namespace FbPager
33
34#endif // WINDOWHINTS_HH