Mercurial > projects > dwt-linux
comparison dwt/internal/c/Xutil.d @ 33:27324bbbac70
changed to regenerated BCD bindings
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 10 Jan 2008 02:18:07 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
32:b7c28480e3e0 | 33:27324bbbac70 |
---|---|
1 /****************************************************************************** | |
2 Based on the generated files from the BCD tool | |
3 modified by: Frank Benoit <keinfarbton@googlemail.com> | |
4 ******************************************************************************/ | |
5 module dwt.internal.c.Xutil; | |
6 | |
7 public import dwt.internal.c.Xlib; | |
8 | |
9 extern(C): | |
10 align(4): | |
11 | |
12 const int NoValue = 0x0000; | |
13 const int XValue = 0x0001; | |
14 const int YValue = 0x0002; | |
15 const int WidthValue = 0x0004; | |
16 const int HeightValue = 0x0008; | |
17 const int AllValues = 0x000F; | |
18 const int XNegative = 0x0010; | |
19 const int YNegative = 0x0020; | |
20 const int WithdrawnState = 0; | |
21 const int NormalState = 1; | |
22 const int IconicState = 3; | |
23 const int DontCareState = 0; | |
24 const int ZoomState = 2; | |
25 const int InactiveState = 4; | |
26 const int XNoMemory = -1; | |
27 const int XLocaleNotSupported = -2; | |
28 const int XConverterNotFound = -3; | |
29 const int RectangleOut = 0; | |
30 const int RectangleIn = 1; | |
31 const int RectanglePart = 2; | |
32 const int VisualNoMask = 0x0; | |
33 const int VisualIDMask = 0x1; | |
34 const int VisualScreenMask = 0x2; | |
35 const int VisualDepthMask = 0x4; | |
36 const int VisualClassMask = 0x8; | |
37 const int VisualRedMaskMask = 0x10; | |
38 const int VisualGreenMaskMask = 0x20; | |
39 const int VisualBlueMaskMask = 0x40; | |
40 const int VisualColormapSizeMask = 0x80; | |
41 const int VisualBitsPerRGBMask = 0x100; | |
42 const int VisualAllMask = 0x1FF; | |
43 const int BitmapSuccess = 0; | |
44 const int BitmapOpenFailed = 1; | |
45 const int BitmapFileInvalid = 2; | |
46 const int BitmapNoMemory = 3; | |
47 const int XCSUCCESS = 0; | |
48 const int XCNOMEM = 1; | |
49 const int XCNOENT = 2; | |
50 alias int XContext; | |
51 alias void * Region; | |
52 alias _XComposeStatus XComposeStatus; | |
53 enum XICCEncodingStyle { | |
54 XStringStyle=0, | |
55 XCompoundTextStyle=1, | |
56 XTextStyle=2, | |
57 XStdICCTextStyle=3, | |
58 XUTF8StringStyle=4, | |
59 } | |
60 alias void function(void *, char *, int, int, char * *) _BCD_func__1029; | |
61 alias int function(void *) _BCD_func__1071; | |
62 alias int function(void *, XErrorEvent *) _BCD_func__1072; | |
63 alias void function(void *, char *, char *) _BCD_func__1145; | |
64 alias int function(void *, char *, char *) _BCD_func__1146; | |
65 alias void function(void *, char *, char *) _BCD_func__1147; | |
66 struct XStandardColormap { | |
67 uint colormap; | |
68 uint red_max; | |
69 uint red_mult; | |
70 uint green_max; | |
71 uint green_mult; | |
72 uint blue_max; | |
73 uint blue_mult; | |
74 uint base_pixel; | |
75 uint visualid; | |
76 uint killid; | |
77 } | |
78 struct XVisualInfo { | |
79 Visual * visual; | |
80 uint visualid; | |
81 int screen; | |
82 int depth; | |
83 int c_class; | |
84 uint red_mask; | |
85 uint green_mask; | |
86 uint blue_mask; | |
87 int colormap_size; | |
88 int bits_per_rgb; | |
89 } | |
90 struct _XComposeStatus { | |
91 char * compose_ptr; | |
92 int chars_matched; | |
93 } | |
94 struct XClassHint { | |
95 char * res_name; | |
96 char * res_class; | |
97 } | |
98 struct XIconSize { | |
99 int min_width; | |
100 int min_height; | |
101 int max_width; | |
102 int max_height; | |
103 int width_inc; | |
104 int height_inc; | |
105 } | |
106 struct XTextProperty { | |
107 char * value; | |
108 uint encoding; | |
109 int format; | |
110 uint nitems; | |
111 } | |
112 struct XWMHints { | |
113 int flags; | |
114 int input; | |
115 int initial_state; | |
116 uint icon_pixmap; | |
117 uint icon_window; | |
118 int icon_x; | |
119 int icon_y; | |
120 uint icon_mask; | |
121 uint window_group; | |
122 } | |
123 struct N10XSizeHints4__94E { | |
124 int x; | |
125 int y; | |
126 } | |
127 struct XSizeHints { | |
128 int flags; | |
129 int x; | |
130 int y; | |
131 int width; | |
132 int height; | |
133 int min_width; | |
134 int min_height; | |
135 int max_width; | |
136 int max_height; | |
137 int width_inc; | |
138 int height_inc; | |
139 N10XSizeHints4__94E min_aspect; | |
140 N10XSizeHints4__94E max_aspect; | |
141 int base_width; | |
142 int base_height; | |
143 int win_gravity; | |
144 } | |
145 version(DYNLINK){ | |
146 extern (C) int function(void *, void *, void *)XXorRegion; | |
147 extern (C) int function(void *, int, char *, char *, uint, XSizeHints *, int *, int *, int *, int *, int *)XWMGeometry; | |
148 extern (C) int function(void *, void *, void *)XUnionRegion; | |
149 extern (C) int function(XRectangle *, void *, void *)XUnionRectWithRegion; | |
150 extern (C) int function(void *, XTextProperty *, char * * *, int *)Xutf8TextPropertyToTextList; | |
151 extern (C) int function(void *, XTextProperty *, wchar * * *, int *)XwcTextPropertyToTextList; | |
152 extern (C) int function(void *, XTextProperty *, char * * *, int *)XmbTextPropertyToTextList; | |
153 extern (C) int function(XTextProperty *, char * * *, int *)XTextPropertyToStringList; | |
154 extern (C) void function(wchar * *)XwcFreeStringList; | |
155 extern (C) int function(void *, char * *, int, int, XTextProperty *)Xutf8TextListToTextProperty; | |
156 extern (C) int function(void *, wchar * *, int, int, XTextProperty *)XwcTextListToTextProperty; | |
157 extern (C) int function(void *, char * *, int, int, XTextProperty *)XmbTextListToTextProperty; | |
158 extern (C) int function(void *, void *, void *)XSubtractRegion; | |
159 extern (C) int function(char * *, int, XTextProperty *)XStringListToTextProperty; | |
160 extern (C) int function(void *, int, int)XShrinkRegion; | |
161 extern (C) int function(void *, uint, XSizeHints *)XSetZoomHints; | |
162 extern (C) void function(void *, uint, XStandardColormap *, uint)XSetStandardColormap; | |
163 extern (C) int function(void *, void *, void *)XSetRegion; | |
164 extern (C) void function(void *, uint, XSizeHints *, uint)XSetWMSizeHints; | |
165 extern (C) void function(void *, uint, char *, char *, char * *, int, XSizeHints *, XWMHints *, XClassHint *)Xutf8SetWMProperties; | |
166 extern (C) void function(void *, uint, char *, char *, char * *, int, XSizeHints *, XWMHints *, XClassHint *)XmbSetWMProperties; | |
167 extern (C) void function(void *, uint, XTextProperty *, XTextProperty *, char * *, int, XSizeHints *, XWMHints *, XClassHint *)XSetWMProperties; | |
168 extern (C) void function(void *, uint, XSizeHints *)XSetWMNormalHints; | |
169 extern (C) void function(void *, uint, XTextProperty *)XSetWMName; | |
170 extern (C) void function(void *, uint, XTextProperty *)XSetWMIconName; | |
171 extern (C) int function(void *, uint, XWMHints *)XSetWMHints; | |
172 extern (C) void function(void *, uint, XTextProperty *)XSetWMClientMachine; | |
173 extern (C) void function(void *, uint, XTextProperty *, uint)XSetTextProperty; | |
174 extern (C) int function(void *, uint, char *, char *, uint, char * *, int, XSizeHints *)XSetStandardProperties; | |
175 extern (C) int function(void *, uint, XSizeHints *, uint)XSetSizeHints; | |
176 extern (C) void function(void *, uint, XStandardColormap *, int, uint)XSetRGBColormaps; | |
177 extern (C) int function(void *, uint, XSizeHints *)XSetNormalHints; | |
178 extern (C) int function(void *, uint, XIconSize *, int)XSetIconSizes; | |
179 extern (C) int function(void *, uint, XClassHint *)XSetClassHint; | |
180 extern (C) int function(void *, uint, int, char *)XSaveContext; | |
181 extern (C) int function(void *, int, int, uint, uint)XRectInRegion; | |
182 extern (C) void * function(XPoint *, int, int)XPolygonRegion; | |
183 extern (C) int function(void *, int, int)XPointInRegion; | |
184 extern (C) int function(void *, int, int)XOffsetRegion; | |
185 extern (C) int function(void *, int, int, int, XVisualInfo *)XMatchVisualInfo; | |
186 extern (C) int function(XKeyEvent *, char *, int, uint *, _XComposeStatus *)XLookupString; | |
187 extern (C) void function(uint, uint *, uint *)XConvertCase; | |
188 extern (C) int function(void *, void *, void *)XIntersectRegion; | |
189 extern (C) int function(void *, uint, XSizeHints *)XGetZoomHints; | |
190 extern (C) int function(void *, uint, XSizeHints *, int *, uint)XGetWMSizeHints; | |
191 extern (C) int function(void *, uint, XSizeHints *, int *)XGetWMNormalHints; | |
192 extern (C) int function(void *, uint, XTextProperty *)XGetWMName; | |
193 extern (C) int function(void *, uint, XTextProperty *)XGetWMIconName; | |
194 extern (C) XWMHints * function(void *, uint)XGetWMHints; | |
195 extern (C) int function(void *, uint, XTextProperty *)XGetWMClientMachine; | |
196 extern (C) XVisualInfo * function(void *, int, XVisualInfo *, int *)XGetVisualInfo; | |
197 extern (C) int function(void *, uint, XTextProperty *, uint)XGetTextProperty; | |
198 extern (C) int function(void *, uint, XStandardColormap *, uint)XGetStandardColormap; | |
199 extern (C) int function(void *, uint, XSizeHints *, uint)XGetSizeHints; | |
200 extern (C) int function(void *, uint, XStandardColormap * *, int *, uint)XGetRGBColormaps; | |
201 extern (C) int function(void *, uint, XSizeHints *)XGetNormalHints; | |
202 extern (C) int function(void *, uint, XIconSize * *, int *)XGetIconSizes; | |
203 extern (C) int function(void *, uint, XClassHint *)XGetClassHint; | |
204 extern (C) int function(void *, uint, int, char * *)XFindContext; | |
205 extern (C) int function(void *, void *)XEqualRegion; | |
206 extern (C) int function(void *)XEmptyRegion; | |
207 extern (C) int function(void *)XDestroyRegion; | |
208 extern (C) int function(void *, uint, int)XDeleteContext; | |
209 extern (C) char * function()XDefaultString; | |
210 extern (C) void * function()XCreateRegion; | |
211 extern (C) int function(void *, XRectangle *)XClipBox; | |
212 extern (C) XWMHints * function()XAllocWMHints; | |
213 extern (C) XStandardColormap * function()XAllocStandardColormap; | |
214 extern (C) XSizeHints * function()XAllocSizeHints; | |
215 extern (C) XIconSize * function()XAllocIconSize; | |
216 extern (C) XClassHint * function()XAllocClassHint; | |
217 | |
218 | |
219 Symbol[] symbols = [ | |
220 { "XXorRegion", cast(void**)& XXorRegion}, | |
221 { "XWMGeometry", cast(void**)& XWMGeometry}, | |
222 { "XUnionRegion", cast(void**)& XUnionRegion}, | |
223 { "XUnionRectWithRegion", cast(void**)& XUnionRectWithRegion}, | |
224 { "Xutf8TextPropertyToTextList", cast(void**)& Xutf8TextPropertyToTextList}, | |
225 { "XwcTextPropertyToTextList", cast(void**)& XwcTextPropertyToTextList}, | |
226 { "XmbTextPropertyToTextList", cast(void**)& XmbTextPropertyToTextList}, | |
227 { "XTextPropertyToStringList", cast(void**)& XTextPropertyToStringList}, | |
228 { "XwcFreeStringList", cast(void**)& XwcFreeStringList}, | |
229 { "Xutf8TextListToTextProperty", cast(void**)& Xutf8TextListToTextProperty}, | |
230 { "XwcTextListToTextProperty", cast(void**)& XwcTextListToTextProperty}, | |
231 { "XmbTextListToTextProperty", cast(void**)& XmbTextListToTextProperty}, | |
232 { "XSubtractRegion", cast(void**)& XSubtractRegion}, | |
233 { "XStringListToTextProperty", cast(void**)& XStringListToTextProperty}, | |
234 { "XShrinkRegion", cast(void**)& XShrinkRegion}, | |
235 { "XSetZoomHints", cast(void**)& XSetZoomHints}, | |
236 { "XSetStandardColormap", cast(void**)& XSetStandardColormap}, | |
237 { "XSetRegion", cast(void**)& XSetRegion}, | |
238 { "XSetWMSizeHints", cast(void**)& XSetWMSizeHints}, | |
239 { "Xutf8SetWMProperties", cast(void**)& Xutf8SetWMProperties}, | |
240 { "XmbSetWMProperties", cast(void**)& XmbSetWMProperties}, | |
241 { "XSetWMProperties", cast(void**)& XSetWMProperties}, | |
242 { "XSetWMNormalHints", cast(void**)& XSetWMNormalHints}, | |
243 { "XSetWMName", cast(void**)& XSetWMName}, | |
244 { "XSetWMIconName", cast(void**)& XSetWMIconName}, | |
245 { "XSetWMHints", cast(void**)& XSetWMHints}, | |
246 { "XSetWMClientMachine", cast(void**)& XSetWMClientMachine}, | |
247 { "XSetTextProperty", cast(void**)& XSetTextProperty}, | |
248 { "XSetStandardProperties", cast(void**)& XSetStandardProperties}, | |
249 { "XSetSizeHints", cast(void**)& XSetSizeHints}, | |
250 { "XSetRGBColormaps", cast(void**)& XSetRGBColormaps}, | |
251 { "XSetNormalHints", cast(void**)& XSetNormalHints}, | |
252 { "XSetIconSizes", cast(void**)& XSetIconSizes}, | |
253 { "XSetClassHint", cast(void**)& XSetClassHint}, | |
254 { "XSaveContext", cast(void**)& XSaveContext}, | |
255 { "XRectInRegion", cast(void**)& XRectInRegion}, | |
256 { "XPolygonRegion", cast(void**)& XPolygonRegion}, | |
257 { "XPointInRegion", cast(void**)& XPointInRegion}, | |
258 { "XOffsetRegion", cast(void**)& XOffsetRegion}, | |
259 { "XMatchVisualInfo", cast(void**)& XMatchVisualInfo}, | |
260 { "XLookupString", cast(void**)& XLookupString}, | |
261 { "XConvertCase", cast(void**)& XConvertCase}, | |
262 { "XIntersectRegion", cast(void**)& XIntersectRegion}, | |
263 { "XGetZoomHints", cast(void**)& XGetZoomHints}, | |
264 { "XGetWMSizeHints", cast(void**)& XGetWMSizeHints}, | |
265 { "XGetWMNormalHints", cast(void**)& XGetWMNormalHints}, | |
266 { "XGetWMName", cast(void**)& XGetWMName}, | |
267 { "XGetWMIconName", cast(void**)& XGetWMIconName}, | |
268 { "XGetWMHints", cast(void**)& XGetWMHints}, | |
269 { "XGetWMClientMachine", cast(void**)& XGetWMClientMachine}, | |
270 { "XGetVisualInfo", cast(void**)& XGetVisualInfo}, | |
271 { "XGetTextProperty", cast(void**)& XGetTextProperty}, | |
272 { "XGetStandardColormap", cast(void**)& XGetStandardColormap}, | |
273 { "XGetSizeHints", cast(void**)& XGetSizeHints}, | |
274 { "XGetRGBColormaps", cast(void**)& XGetRGBColormaps}, | |
275 { "XGetNormalHints", cast(void**)& XGetNormalHints}, | |
276 { "XGetIconSizes", cast(void**)& XGetIconSizes}, | |
277 { "XGetClassHint", cast(void**)& XGetClassHint}, | |
278 { "XFindContext", cast(void**)& XFindContext}, | |
279 { "XEqualRegion", cast(void**)& XEqualRegion}, | |
280 { "XEmptyRegion", cast(void**)& XEmptyRegion}, | |
281 { "XDestroyRegion", cast(void**)& XDestroyRegion}, | |
282 { "XDeleteContext", cast(void**)& XDeleteContext}, | |
283 { "XDefaultString", cast(void**)& XDefaultString}, | |
284 { "XCreateRegion", cast(void**)& XCreateRegion}, | |
285 { "XClipBox", cast(void**)& XClipBox}, | |
286 { "XAllocWMHints", cast(void**)& XAllocWMHints}, | |
287 { "XAllocStandardColormap", cast(void**)& XAllocStandardColormap}, | |
288 { "XAllocSizeHints", cast(void**)& XAllocSizeHints}, | |
289 { "XAllocIconSize", cast(void**)& XAllocIconSize}, | |
290 { "XAllocClassHint", cast(void**)& XAllocClassHint}, | |
291 ]; | |
292 | |
293 } else { // version(DYNLINK) | |
294 extern (C) int XXorRegion(void *, void *, void *); | |
295 extern (C) int XWMGeometry(void *, int, char *, char *, uint, XSizeHints *, int *, int *, int *, int *, int *); | |
296 extern (C) int XUnionRegion(void *, void *, void *); | |
297 extern (C) int XUnionRectWithRegion(XRectangle *, void *, void *); | |
298 extern (C) int Xutf8TextPropertyToTextList(void *, XTextProperty *, char * * *, int *); | |
299 extern (C) int XwcTextPropertyToTextList(void *, XTextProperty *, wchar * * *, int *); | |
300 extern (C) int XmbTextPropertyToTextList(void *, XTextProperty *, char * * *, int *); | |
301 extern (C) int XTextPropertyToStringList(XTextProperty *, char * * *, int *); | |
302 extern (C) void XwcFreeStringList(wchar * *); | |
303 extern (C) int Xutf8TextListToTextProperty(void *, char * *, int, int, XTextProperty *); | |
304 extern (C) int XwcTextListToTextProperty(void *, wchar * *, int, int, XTextProperty *); | |
305 extern (C) int XmbTextListToTextProperty(void *, char * *, int, int, XTextProperty *); | |
306 extern (C) int XSubtractRegion(void *, void *, void *); | |
307 extern (C) int XStringListToTextProperty(char * *, int, XTextProperty *); | |
308 extern (C) int XShrinkRegion(void *, int, int); | |
309 extern (C) int XSetZoomHints(void *, uint, XSizeHints *); | |
310 extern (C) void XSetStandardColormap(void *, uint, XStandardColormap *, uint); | |
311 extern (C) int XSetRegion(void *, void *, void *); | |
312 extern (C) void XSetWMSizeHints(void *, uint, XSizeHints *, uint); | |
313 extern (C) void Xutf8SetWMProperties(void *, uint, char *, char *, char * *, int, XSizeHints *, XWMHints *, XClassHint *); | |
314 extern (C) void XmbSetWMProperties(void *, uint, char *, char *, char * *, int, XSizeHints *, XWMHints *, XClassHint *); | |
315 extern (C) void XSetWMProperties(void *, uint, XTextProperty *, XTextProperty *, char * *, int, XSizeHints *, XWMHints *, XClassHint *); | |
316 extern (C) void XSetWMNormalHints(void *, uint, XSizeHints *); | |
317 extern (C) void XSetWMName(void *, uint, XTextProperty *); | |
318 extern (C) void XSetWMIconName(void *, uint, XTextProperty *); | |
319 extern (C) int XSetWMHints(void *, uint, XWMHints *); | |
320 extern (C) void XSetWMClientMachine(void *, uint, XTextProperty *); | |
321 extern (C) void XSetTextProperty(void *, uint, XTextProperty *, uint); | |
322 extern (C) int XSetStandardProperties(void *, uint, char *, char *, uint, char * *, int, XSizeHints *); | |
323 extern (C) int XSetSizeHints(void *, uint, XSizeHints *, uint); | |
324 extern (C) void XSetRGBColormaps(void *, uint, XStandardColormap *, int, uint); | |
325 extern (C) int XSetNormalHints(void *, uint, XSizeHints *); | |
326 extern (C) int XSetIconSizes(void *, uint, XIconSize *, int); | |
327 extern (C) int XSetClassHint(void *, uint, XClassHint *); | |
328 extern (C) int XSaveContext(void *, uint, int, char *); | |
329 extern (C) int XRectInRegion(void *, int, int, uint, uint); | |
330 extern (C) void * XPolygonRegion(XPoint *, int, int); | |
331 extern (C) int XPointInRegion(void *, int, int); | |
332 extern (C) int XOffsetRegion(void *, int, int); | |
333 extern (C) int XMatchVisualInfo(void *, int, int, int, XVisualInfo *); | |
334 extern (C) int XLookupString(XKeyEvent *, char *, int, uint *, _XComposeStatus *); | |
335 extern (C) void XConvertCase(uint, uint *, uint *); | |
336 extern (C) int XIntersectRegion(void *, void *, void *); | |
337 extern (C) int XGetZoomHints(void *, uint, XSizeHints *); | |
338 extern (C) int XGetWMSizeHints(void *, uint, XSizeHints *, int *, uint); | |
339 extern (C) int XGetWMNormalHints(void *, uint, XSizeHints *, int *); | |
340 extern (C) int XGetWMName(void *, uint, XTextProperty *); | |
341 extern (C) int XGetWMIconName(void *, uint, XTextProperty *); | |
342 extern (C) XWMHints * XGetWMHints(void *, uint); | |
343 extern (C) int XGetWMClientMachine(void *, uint, XTextProperty *); | |
344 extern (C) XVisualInfo * XGetVisualInfo(void *, int, XVisualInfo *, int *); | |
345 extern (C) int XGetTextProperty(void *, uint, XTextProperty *, uint); | |
346 extern (C) int XGetStandardColormap(void *, uint, XStandardColormap *, uint); | |
347 extern (C) int XGetSizeHints(void *, uint, XSizeHints *, uint); | |
348 extern (C) int XGetRGBColormaps(void *, uint, XStandardColormap * *, int *, uint); | |
349 extern (C) int XGetNormalHints(void *, uint, XSizeHints *); | |
350 extern (C) int XGetIconSizes(void *, uint, XIconSize * *, int *); | |
351 extern (C) int XGetClassHint(void *, uint, XClassHint *); | |
352 extern (C) int XFindContext(void *, uint, int, char * *); | |
353 extern (C) int XEqualRegion(void *, void *); | |
354 extern (C) int XEmptyRegion(void *); | |
355 extern (C) int XDestroyRegion(void *); | |
356 extern (C) int XDeleteContext(void *, uint, int); | |
357 extern (C) char * XDefaultString(); | |
358 extern (C) void * XCreateRegion(); | |
359 extern (C) int XClipBox(void *, XRectangle *); | |
360 extern (C) XWMHints * XAllocWMHints(); | |
361 extern (C) XStandardColormap * XAllocStandardColormap(); | |
362 extern (C) XSizeHints * XAllocSizeHints(); | |
363 extern (C) XIconSize * XAllocIconSize(); | |
364 extern (C) XClassHint * XAllocClassHint(); | |
365 } // version(DYNLINK) |