aboutsummaryrefslogtreecommitdiff
path: root/src/WindowHint.hh
blob: 3a022710fa503a693b697efbcf187433fc518fa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef WINDOWHINTS_HH
#define WINDOWHINTS_HH

namespace FbPager {
class WindowHint {
public:
    enum Hint {
        WHINT_ICONIC =         0x0001,
        WHINT_STICKY    =      0x0002,
        WHINT_SHADED    =      0x0004,
        WHINT_SKIP_PAGER  =    0x0008,
        WHINT_SKIP_TASKBAR  =  0x0010,
        WHINT_NO_DECOR  =      0x0020,
        WHINT_HIDDEN =         0x0040,
        WHINT_TYPE_DOCK =      0x0080,
        WHINT_LAYER_BOTTOM =   0x0100,
        WHINT_LAYER_TOP    =   0x0200,
    };

    WindowHint():m_flags(0), 
                  m_workspace(0) { 
    }
    inline void add(int hint) { m_flags |= hint; }
    inline int flags() const { return m_flags; }
    inline void setWorkspace(int num) { m_workspace = num; }
    inline int workspace() const { return m_workspace; }
private:
    int m_flags;
    int m_workspace;
};

} // end namespace FbPager

#endif // WINDOWHINTS_HH