Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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