-
Notifications
You must be signed in to change notification settings - Fork 0
/
GuitorConstants.winxhead
137 lines (118 loc) · 2.79 KB
/
GuitorConstants.winxhead
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// GuitorConstants.winxhead
// Declarations for Guitor
// Xlib constants commonly used
namespace Guitor
{
// Line styles
const int
LineSolid = 0,
LineOnOffDash = 1,
LineDoubleDash = 2;
// Coord modes
const int
CoordModeOrigin = 0,
CoordModePrevious = 1;
// GC logical function
const int
GXClear = 0x0,
GXand = 0x1,
GXandReverse = 0x2,
GXcopy = 0x3,
GXandInverted = 0x4,
GXnoop = 0x5,
GXxor = 0x6,
GXor = 0x7,
GXnor = 0x8,
GXequiv = 0x9,
GXinvert = 0xa,
GXorReverse = 0xb,
GXcopyInverted = 0xc,
GXorInverted = 0xd,
GXnand = 0xe,
GXset = 0xf;
// Subwindow modes
const int
ClipByChildren = 0,
IncludeInferiors = 1;
// Some commonly used values:
const int None = 0;
const int Success = 0;
const int CurrentTime = 0;
// Enter and Leave
const int
NotifyAncestor = 0,
NotifyVirtual = 1,
NotifyInferior = 2,
NotifyNonlinear = 3,
NotifyNonlinearVirtual = 4;
// Focus revert type
const int
RevertToNone = 0,
RevertToPointerRoot = 1,
RevertToParent = 2;
// Grab modes
const int
GrabModeSync = 0,
GrabModeAsync = 1;
// Property change modes
const int
PropModeReplace = 0,
PropModePrepend = 1,
PropModeAppend = 2;
// WM hints
const int InputHint = 1;
// Some predefined atoms
const int
XA_PRIMARY = 1,
XA_SECONDARY = 2,
XA_ATOM = 4,
XA_STRING = 31,
XA_WM_COMMAND = 34,
XA_WM_TRANSIENT_FOR = 68;
namespace Events
{
// Event selection masks
const int
KeyPressMask = 0x00000001,
KeyReleaseMask = 0x00000002,
ButtonPressMask = 0x00000004,
ButtonReleaseMask = 0x00000008,
EnterWindowMask = 0x00000010,
LeaveWindowMask = 0x00000020,
PointerMotionMask = 0x00000040,
ExposureMask = 0x00008000,
StructureNotifyMask = 0x00020000,
FocusChangeMask = 0x00200000;
// Event types
const int
KeyPress = 2,
KeyRelease = 3,
ButtonPress = 4,
ButtonRelease = 5,
MotionNotify = 6,
EnterNotify = 7,
LeaveNotify = 8,
FocusIn = 9,
FocusOut = 10,
Expose = 12,
DestroyNotify = 17,
UnmapNotify = 18,
MapNotify = 19,
ConfigureNotify = 22,
SelectionClear = 29,
SelectionRequest = 30,
SelectionNotify = 31,
ClientMessage = 33;
// Key modifier masks
const int
ShiftMask = 1,
LockMask = 1 << 1,
ControlMask = 1 << 2,
Mod1Mask = 1 << 3,
Mod2Mask = 1 << 4,
Mod3Mask = 1 << 5,
Mod4Mask = 1 << 6,
Mod5Mask = 1 << 7;
}
}
// End