Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 131 lines (112 sloc) 2.727 kb
873610a @NotFound first public revision
authored
1 // GuitorConstants.winxhead
2
3 // Declarations for Guitor
4 // Xlib constants commonly used
5
6 namespace Guitor
7 {
8
1cef5d4 @NotFound improve color handling and add constants for line style
authored
9 // Line styles
10 const int
11 LineSolid = 0,
12 LineOnOffDash = 1,
13 LineDoubleDash = 2;
14
7d438ce @NotFound constants for GC logical functions - use constants consistently in examp...
authored
15 // GC logical function
16 const int
17 GXClear = 0x0,
18 GXand = 0x1,
19 GXandReverse = 0x2,
20 GXcopy = 0x3,
21 GXandInverted = 0x4,
22 GXnoop = 0x5,
23 GXxor = 0x6,
24 GXor = 0x7,
25 GXnor = 0x8,
26 GXequiv = 0x9,
27 GXinvert = 0xa,
28 GXorReverse = 0xb,
29 GXcopyInverted = 0xc,
30 GXorInverted = 0xd,
31 GXnand = 0xe,
32 GXset = 0xf;
33
34 // Subwindow modes
35 const int
36 ClipByChildren = 0,
37 IncludeInferiors = 1;
38
12fce5b @NotFound use 'None' for destroyed windows instead of -1
authored
39 // Some commonly used values:
40 const int None = 0;
a1d509c @NotFound basis of selections handling, paste with ctrl-v in edit box
authored
41 const int Success = 0;
68fdb41 @NotFound simple TextButton and some minor addtions to base functionality
authored
42 const int CurrentTime = 0;
43
3801b14 @NotFound Enter and Leave events
authored
44 // Enter and Leave
45 const int
46 NotifyAncestor = 0,
47 NotifyVirtual = 1,
48 NotifyInferior = 2,
49 NotifyNonlinear = 3,
50 NotifyNonlinearVirtual = 4;
51
68fdb41 @NotFound simple TextButton and some minor addtions to base functionality
authored
52 // Focus revert type
53 const int
54 RevertToNone = 0,
55 RevertToPointerRoot = 1,
56 RevertToParent = 2;
57
f05efea @NotFound grab and ungrab pointer, enter and leave events, a simple context menu a...
authored
58 // Grab modes
59 const int
60 GrabModeSync = 0,
61 GrabModeAsync = 1;
62
2c1484b @NotFound initial support for property changes and send events, SelectionRequest e...
authored
63 // Property change modes
64 const int
65 PropModeReplace = 0,
66 PropModePrepend = 1,
67 PropModeAppend = 2;
68
dacf71a @NotFound Focus control, a bunch of fixes and example of EditBox
authored
69 // WM hints
70 const int InputHint = 1;
71
a1d509c @NotFound basis of selections handling, paste with ctrl-v in edit box
authored
72 // Some predefined atoms
73 const int
74 XA_PRIMARY = 1,
75 XA_SECONDARY = 2,
76 XA_ATOM = 4,
77 XA_STRING = 31,
78 XA_WM_COMMAND = 34,
79 XA_WM_TRANSIENT_FOR = 68;
80
873610a @NotFound first public revision
authored
81 namespace Events
82 {
83
84 // Event selection masks
1cef5d4 @NotFound improve color handling and add constants for line style
authored
85 const int
86 KeyPressMask = 0x00000001,
87 KeyReleaseMask = 0x00000002,
88 ButtonPressMask = 0x00000004,
89 ButtonReleaseMask = 0x00000008,
90 EnterWindowMask = 0x00000010,
91 LeaveWindowMask = 0x00000020,
92 PointerMotionMask = 0x00000040,
93 ExposureMask = 0x00008000,
dacf71a @NotFound Focus control, a bunch of fixes and example of EditBox
authored
94 StructureNotifyMask = 0x00020000,
95 FocusChangeMask = 0x00200000;
873610a @NotFound first public revision
authored
96 // Event types
1cef5d4 @NotFound improve color handling and add constants for line style
authored
97 const int
a1d509c @NotFound basis of selections handling, paste with ctrl-v in edit box
authored
98 KeyPress = 2,
99 KeyRelease = 3,
100 ButtonPress = 4,
101 ButtonRelease = 5,
102 MotionNotify = 6,
103 EnterNotify = 7,
104 LeaveNotify = 8,
105 FocusIn = 9,
106 FocusOut = 10,
107 Expose = 12,
108 DestroyNotify = 17,
109 ConfigureNotify = 22,
110 SelectionClear = 29,
111 SelectionRequest = 30,
112 SelectionNotify = 31,
113 ClientMessage = 33;
873610a @NotFound first public revision
authored
114
766e443 @NotFound selection and copy to clipboard in EditBox
authored
115 // Key modifier masks
116 const int
117 ShiftMask = 1,
118 LockMask = 1 << 1,
119 ControlMask = 1 << 2,
120 Mod1Mask = 1 << 3,
121 Mod2Mask = 1 << 4,
122 Mod3Mask = 1 << 5,
123 Mod4Mask = 1 << 6,
124 Mod5Mask = 1 << 7;
125
873610a @NotFound first public revision
authored
126 }
127
128 }
129
130 // End
Something went wrong with that request. Please try again.