1 /******************************************************************************
2     Based on the generated files from the BCD tool
3     modified by: Frank Benoit <keinfarbton@googlemail.com>
4 ******************************************************************************/
5 module org.eclipse.swt.internal.c.X;
6 
7 import java.lang.all;
8 
9 version(Tango){
10     import tango.stdc.stdint;
11     public import tango.stdc.config;
12 } else { // Phobos
13     import std.stdint;
14     public import core.stdc.config;
15 }
16 
17 extern(C):
18 
19 alias int c_int;
20 alias uint c_uint;
21 
22 const c_int X_PROTOCOL = 11;
23 const c_int X_PROTOCOL_REVISION = 0;
24 const c_int None = 0;
25 const c_int ParentRelative = 1;
26 const c_int CopyFromParent = 0;
27 const c_int PointerWindow = 0;
28 const c_int InputFocus = 1;
29 const c_int PointerRoot = 1;
30 const c_int AnyPropertyType = 0;
31 const c_int AnyKey = 0;
32 const c_int AnyButton = 0;
33 const c_int AllTemporary = 0;
34 const c_int CurrentTime = 0;
35 const c_int NoSymbol = 0;
36 const c_int NoEventMask = 0;
37 const c_int KeyPress = 2;
38 const c_int KeyRelease = 3;
39 const c_int ButtonPress = 4;
40 const c_int ButtonRelease = 5;
41 const c_int MotionNotify = 6;
42 const c_int EnterNotify = 7;
43 const c_int LeaveNotify = 8;
44 const c_int FocusIn = 9;
45 const c_int FocusOut = 10;
46 const c_int KeymapNotify = 11;
47 const c_int Expose = 12;
48 const c_int GraphicsExpose = 13;
49 const c_int NoExpose = 14;
50 const c_int VisibilityNotify = 15;
51 const c_int CreateNotify = 16;
52 const c_int DestroyNotify = 17;
53 const c_int UnmapNotify = 18;
54 const c_int MapNotify = 19;
55 const c_int MapRequest = 20;
56 const c_int ReparentNotify = 21;
57 const c_int ConfigureNotify = 22;
58 const c_int ConfigureRequest = 23;
59 const c_int GravityNotify = 24;
60 const c_int ResizeRequest = 25;
61 const c_int CirculateNotify = 26;
62 const c_int CirculateRequest = 27;
63 const c_int PropertyNotify = 28;
64 const c_int SelectionClear = 29;
65 const c_int SelectionRequest = 30;
66 const c_int SelectionNotify = 31;
67 const c_int ColormapNotify = 32;
68 const c_int ClientMessage = 33;
69 const c_int MappingNotify = 34;
70 const c_int LASTEvent = 35;
71 const c_int ShiftMapIndex = 0;
72 const c_int LockMapIndex = 1;
73 const c_int ControlMapIndex = 2;
74 const c_int Mod1MapIndex = 3;
75 const c_int Mod2MapIndex = 4;
76 const c_int Mod3MapIndex = 5;
77 const c_int Mod4MapIndex = 6;
78 const c_int Mod5MapIndex = 7;
79 const c_int Button1 = 1;
80 const c_int Button2 = 2;
81 const c_int Button3 = 3;
82 const c_int Button4 = 4;
83 const c_int Button5 = 5;
84 const c_int NotifyNormal = 0;
85 const c_int NotifyGrab = 1;
86 const c_int NotifyUngrab = 2;
87 const c_int NotifyWhileGrabbed = 3;
88 const c_int NotifyHint = 1;
89 const c_int NotifyAncestor = 0;
90 const c_int NotifyVirtual = 1;
91 const c_int NotifyInferior = 2;
92 const c_int NotifyNonlinear = 3;
93 const c_int NotifyNonlinearVirtual = 4;
94 const c_int NotifyPointer = 5;
95 const c_int NotifyPointerRoot = 6;
96 const c_int NotifyDetailNone = 7;
97 const c_int VisibilityUnobscured = 0;
98 const c_int VisibilityPartiallyObscured = 1;
99 const c_int VisibilityFullyObscured = 2;
100 const c_int PlaceOnTop = 0;
101 const c_int PlaceOnBottom = 1;
102 const c_int FamilyInternet = 0;
103 const c_int FamilyDECnet = 1;
104 const c_int FamilyChaos = 2;
105 const c_int FamilyInternet6 = 6;
106 const c_int FamilyServerInterpreted = 5;
107 const c_int PropertyNewValue = 0;
108 const c_int PropertyDelete = 1;
109 const c_int ColormapUninstalled = 0;
110 const c_int ColormapInstalled = 1;
111 const c_int GrabModeSync = 0;
112 const c_int GrabModeAsync = 1;
113 const c_int GrabSuccess = 0;
114 const c_int AlreadyGrabbed = 1;
115 const c_int GrabInvalidTime = 2;
116 const c_int GrabNotViewable = 3;
117 const c_int GrabFrozen = 4;
118 const c_int AsyncPointer = 0;
119 const c_int SyncPointer = 1;
120 const c_int ReplayPointer = 2;
121 const c_int AsyncKeyboard = 3;
122 const c_int SyncKeyboard = 4;
123 const c_int ReplayKeyboard = 5;
124 const c_int AsyncBoth = 6;
125 const c_int SyncBoth = 7;
126 const c_int RevertToParent = 2;
127 const c_int Success = 0;
128 const c_int BadRequest = 1;
129 const c_int BadValue = 2;
130 const c_int BadWindow = 3;
131 const c_int BadPixmap = 4;
132 const c_int BadAtom = 5;
133 const c_int BadCursor = 6;
134 const c_int BadFont = 7;
135 const c_int BadMatch = 8;
136 const c_int BadDrawable = 9;
137 const c_int BadAccess = 10;
138 const c_int BadAlloc = 11;
139 const c_int BadColor = 12;
140 const c_int BadGC = 13;
141 const c_int BadIDChoice = 14;
142 const c_int BadName = 15;
143 const c_int BadLength = 16;
144 const c_int BadImplementation = 17;
145 const c_int FirstExtensionError = 128;
146 const c_int LastExtensionError = 255;
147 const c_int InputOutput = 1;
148 const c_int InputOnly = 2;
149 const c_int ForgetGravity = 0;
150 const c_int NorthWestGravity = 1;
151 const c_int NorthGravity = 2;
152 const c_int NorthEastGravity = 3;
153 const c_int WestGravity = 4;
154 const c_int CenterGravity = 5;
155 const c_int EastGravity = 6;
156 const c_int SouthWestGravity = 7;
157 const c_int SouthGravity = 8;
158 const c_int SouthEastGravity = 9;
159 const c_int StaticGravity = 10;
160 const c_int UnmapGravity = 0;
161 const c_int NotUseful = 0;
162 const c_int WhenMapped = 1;
163 const c_int Always = 2;
164 const c_int IsUnmapped = 0;
165 const c_int IsUnviewable = 1;
166 const c_int IsViewable = 2;
167 const c_int SetModeInsert = 0;
168 const c_int SetModeDelete = 1;
169 const c_int DestroyAll = 0;
170 const c_int RetainPermanent = 1;
171 const c_int RetainTemporary = 2;
172 const c_int Above = 0;
173 const c_int Below = 1;
174 const c_int TopIf = 2;
175 const c_int BottomIf = 3;
176 const c_int Opposite = 4;
177 const c_int RaiseLowest = 0;
178 const c_int LowerHighest = 1;
179 const c_int PropModeReplace = 0;
180 const c_int PropModePrepend = 1;
181 const c_int PropModeAppend = 2;
182 const c_int GXclear = 0x0;
183 const c_int GXand = 0x1;
184 const c_int GXandReverse = 0x2;
185 const c_int GXcopy = 0x3;
186 const c_int GXandInverted = 0x4;
187 const c_int GXnoop = 0x5;
188 const c_int GXxor = 0x6;
189 const c_int GXor = 0x7;
190 const c_int GXnor = 0x8;
191 const c_int GXequiv = 0x9;
192 const c_int GXinvert = 0xa;
193 const c_int GXorReverse = 0xb;
194 const c_int GXcopyInverted = 0xc;
195 const c_int GXorInverted = 0xd;
196 const double GXnand = 0xe;
197 const c_int GXset = 0xf;
198 const c_int LineSolid = 0;
199 const c_int LineOnOffDash = 1;
200 const c_int LineDoubleDash = 2;
201 const c_int CapNotLast = 0;
202 const c_int CapButt = 1;
203 const c_int CapRound = 2;
204 const c_int CapProjecting = 3;
205 const c_int JoinMiter = 0;
206 const c_int JoinRound = 1;
207 const c_int JoinBevel = 2;
208 const c_int FillSolid = 0;
209 const c_int FillTiled = 1;
210 const c_int FillStippled = 2;
211 const c_int FillOpaqueStippled = 3;
212 const c_int EvenOddRule = 0;
213 const c_int WindingRule = 1;
214 const c_int ClipByChildren = 0;
215 const c_int IncludeInferiors = 1;
216 const c_int Unsorted = 0;
217 const c_int YSorted = 1;
218 const c_int YXSorted = 2;
219 const c_int YXBanded = 3;
220 const c_int CoordModeOrigin = 0;
221 const c_int CoordModePrevious = 1;
222 const c_int Complex = 0;
223 const c_int Nonconvex = 1;
224 const c_int Convex = 2;
225 const c_int ArcChord = 0;
226 const c_int ArcPieSlice = 1;
227 const c_int GCLastBit = 22;
228 const c_int FontLeftToRight = 0;
229 const c_int FontRightToLeft = 1;
230 const c_int FontChange = 255;
231 const c_int XYBitmap = 0;
232 const c_int XYPixmap = 1;
233 const c_int ZPixmap = 2;
234 const c_int AllocNone = 0;
235 const c_int AllocAll = 1;
236 const c_int CursorShape = 0;
237 const c_int TileShape = 1;
238 const c_int StippleShape = 2;
239 const c_int AutoRepeatModeOff = 0;
240 const c_int AutoRepeatModeOn = 1;
241 const c_int AutoRepeatModeDefault = 2;
242 const c_int LedModeOff = 0;
243 const c_int LedModeOn = 1;
244 const c_int MappingSuccess = 0;
245 const c_int MappingBusy = 1;
246 const c_int MappingFailed = 2;
247 const c_int MappingModifier = 0;
248 const c_int MappingKeyboard = 1;
249 const c_int MappingPointer = 2;
250 const c_int DontPreferBlanking = 0;
251 const c_int PreferBlanking = 1;
252 const c_int DefaultBlanking = 2;
253 const c_int DisableScreenSaver = 0;
254 const c_int DisableScreenInterval = 0;
255 const c_int DontAllowExposures = 0;
256 const c_int AllowExposures = 1;
257 const c_int DefaultExposures = 2;
258 const c_int ScreenSaverReset = 0;
259 const c_int ScreenSaverActive = 1;
260 const c_int HostInsert = 0;
261 const c_int HostDelete = 1;
262 const c_int EnableAccess = 1;
263 const c_int DisableAccess = 0;
264 const c_int StaticGray = 0;
265 const c_int GrayScale = 1;
266 const c_int StaticColor = 2;
267 const c_int PseudoColor = 3;
268 const c_int TrueColor = 4;
269 const c_int DirectColor = 5;
270 const c_int LSBFirst = 0;
271 const c_int MSBFirst = 1;
272 alias char KeyCode;
273 alias c_ulong XID;
274 alias XID KeySym;
275 alias XID GContext;
276 alias XID Colormap;
277 alias XID Cursor;
278 alias XID Pixmap;
279 alias XID Font;
280 alias XID Drawable;
281 alias XID Window;
282 alias c_ulong Time;
283 alias c_ulong VisualID;
284 alias c_ulong Atom;
285 alias c_ulong Mask;
286 alias c_ulong Glyph;
287 alias c_ulong GlyphSet;
288 alias c_ulong Picture;
289 alias c_ulong PictFormat;
290 alias void _XRegion;
291 alias _XRegion* Region;
292 alias c_int Bool;
293 alias c_int Status;
294 alias c_ulong XEventClass;
295