Mercurial > projects > dwt2
annotate org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/internal/c/Xutil.d @ 120:536e43f63c81
Comprehensive update for Win32/Linux32 dmd-2.053/dmd-1.068+Tango-r5661
===D2===
* added [Try]Immutable/Const/Shared templates to work with differenses in D1/D2 instead of version statements
used these templates to work with strict type storage rules of dmd-2.053
* com.ibm.icu now also compilable with D2, but not tested yet
* small fixes
Snippet288 - shared data is in TLS
===Phobos===
* fixed critical bugs in Phobos implemention
completely incorrect segfault prone fromStringz (Linux's port ruthless killer)
terrible, incorrect StringBuffer realization (StyledText killer)
* fixed small bugs as well
Snippet72 - misprint in the snippet
* implemented missed functionality for Phobos
ByteArrayOutputStream implemented (image loading available)
formatting correctly works for all DWT's cases
As a result, folowing snippets now works with Phobos (Snippet### - what is fixed):
Snippet24, 42, 111, 115, 130, 235, 276 - bad string formatting
Snippet48, 282 - crash on image loading
Snippet163, 189, 211, 213, 217, 218, 222 - crash on copy/cut in StyledText
Snippet244 - hang-up
===Tango===
* few changes for the latest Tango trunc-r5661
* few small performance improvments
===General===
* implMissing-s for only one version changed to implMissingInTango/InPhobos
* incorrect calls to Format in toString-s fixed
* fixed loading \uXXXX characters in ResourceBundle
* added good UTF-8 support for StyledText, TextLayout (Win32) and friends
UTF functions revised and tested. It is now in java.nonstandard.*Utf modules
StyledText and TextLayout (Win32) modules revised for UTF-8 support
* removed small diferences in most identical files in *.swt.* folders
*.swt.internal.image, *.swt.events and *.swt.custom are identical in Win32/Linux32
now 179 of 576 (~31%) files in *.swt.* folders are fully identical
* Win32: snippets now have right subsystem, pretty icons and native system style controls
* small fixes in snippets
Snippet44 - it's not Snippet44
Snippet212 - functions work with different images and offsets arrays
Win32: Snippet282 - crash on close if the button has an image
Snippet293 - setGrayed is commented
and others
Win32: As a result, folowing snippets now works
Snippet68 - color doesn't change
Snippet163, 189, 211, 213, 217, 218, 222 - UTF-8 issues (see above)
Snippet193 - no tabel headers
author | Denis Shelomovskij <verylonglogin.reg@gmail.com> |
---|---|
date | Sat, 09 Jul 2011 15:50:20 +0300 |
parents | fb3aa8075988 |
children |
rev | line source |
---|---|
25 | 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.Xutil; | |
6 | |
7 import java.lang.all; | |
8 | |
9 public import org.eclipse.swt.internal.c.Xlib; | |
10 | |
11 extern(C): | |
12 align(4): | |
13 | |
14 const int NoValue = 0x0000; | |
15 const int XValue = 0x0001; | |
16 const int YValue = 0x0002; | |
17 const int WidthValue = 0x0004; | |
18 const int HeightValue = 0x0008; | |
19 const int AllValues = 0x000F; | |
20 const int XNegative = 0x0010; | |
21 const int YNegative = 0x0020; | |
22 const int WithdrawnState = 0; | |
23 const int NormalState = 1; | |
24 const int IconicState = 3; | |
25 const int DontCareState = 0; | |
26 const int ZoomState = 2; | |
27 const int InactiveState = 4; | |
28 const int XNoMemory = -1; | |
29 const int XLocaleNotSupported = -2; | |
30 const int XConverterNotFound = -3; | |
31 const int RectangleOut = 0; | |
32 const int RectangleIn = 1; | |
33 const int RectanglePart = 2; | |
34 const int VisualNoMask = 0x0; | |
35 const int VisualIDMask = 0x1; | |
36 const int VisualScreenMask = 0x2; | |
37 const int VisualDepthMask = 0x4; | |
38 const int VisualClassMask = 0x8; | |
39 const int VisualRedMaskMask = 0x10; | |
40 const int VisualGreenMaskMask = 0x20; | |
41 const int VisualBlueMaskMask = 0x40; | |
42 const int VisualColormapSizeMask = 0x80; | |
43 const int VisualBitsPerRGBMask = 0x100; | |
44 const int VisualAllMask = 0x1FF; | |
45 const int BitmapSuccess = 0; | |
46 const int BitmapOpenFailed = 1; | |
47 const int BitmapFileInvalid = 2; | |
48 const int BitmapNoMemory = 3; | |
49 const int XCSUCCESS = 0; | |
50 const int XCNOMEM = 1; | |
51 const int XCNOENT = 2; | |
52 alias int XContext; | |
53 alias void * Region; | |
54 alias _XComposeStatus XComposeStatus; | |
55 enum XICCEncodingStyle { | |
56 XStringStyle=0, | |
57 XCompoundTextStyle=1, | |
58 XTextStyle=2, | |
59 XStdICCTextStyle=3, | |
60 XUTF8StringStyle=4, | |
61 } | |
62 alias void function(void *, char *, int, int, char * *) _BCD_func__1029; | |
63 alias int function(void *) _BCD_func__1071; | |
64 alias int function(void *, XErrorEvent *) _BCD_func__1072; | |
65 alias void function(void *, char *, char *) _BCD_func__1145; | |
66 alias int function(void *, char *, char *) _BCD_func__1146; | |
67 alias void function(void *, char *, char *) _BCD_func__1147; | |
68 struct XStandardColormap { | |
69 uint colormap; | |
70 uint red_max; | |
71 uint red_mult; | |
72 uint green_max; | |
73 uint green_mult; | |
74 uint blue_max; | |
75 uint blue_mult; | |
76 uint base_pixel; | |
77 uint visualid; | |
78 uint killid; | |
79 } | |
80 struct XVisualInfo { | |
81 Visual * visual; | |
82 uint visualid; | |
83 int screen; | |
84 int depth; | |
85 int c_class; | |
86 uint red_mask; | |
87 uint green_mask; | |
88 uint blue_mask; | |
89 int colormap_size; | |
90 int bits_per_rgb; | |
91 } | |
92 struct _XComposeStatus { | |
93 char * compose_ptr; | |
94 int chars_matched; | |
95 } | |
96 struct XClassHint { | |
97 char * res_name; | |
98 char * res_class; | |
99 } | |
100 struct XIconSize { | |
101 int min_width; | |
102 int min_height; | |
103 int max_width; | |
104 int max_height; | |
105 int width_inc; | |
106 int height_inc; | |
107 } | |
108 struct XTextProperty { | |
109 char * value; | |
110 uint encoding; | |
111 int format; | |
112 uint nitems; | |
113 } | |
114 struct XWMHints { | |
115 int flags; | |
116 int input; | |
117 int initial_state; | |
118 uint icon_pixmap; | |
119 uint icon_window; | |
120 int icon_x; | |
121 int icon_y; | |
122 uint icon_mask; | |
123 uint window_group; | |
124 } | |
125 struct N10XSizeHints4__94E { | |
126 int x; | |
127 int y; | |
128 } | |
129 struct XSizeHints { | |
130 int flags; | |
131 int x; | |
132 int y; | |
133 int width; | |
134 int height; | |
135 int min_width; | |
136 int min_height; | |
137 int max_width; | |
138 int max_height; | |
139 int width_inc; | |
140 int height_inc; | |
141 N10XSizeHints4__94E min_aspect; | |
142 N10XSizeHints4__94E max_aspect; | |
143 int base_width; | |
144 int base_height; | |
145 int win_gravity; | |
146 } | |
147 version(DYNLINK){ | |
113 | 148 mixin(gshared!( |
149 "extern (C) int function(void *, void *, void *)XXorRegion; | |
25 | 150 extern (C) int function(void *, int, char *, char *, uint, XSizeHints *, int *, int *, int *, int *, int *)XWMGeometry; |
151 extern (C) int function(void *, void *, void *)XUnionRegion; | |
152 extern (C) int function(XRectangle *, void *, void *)XUnionRectWithRegion; | |
153 extern (C) int function(void *, XTextProperty *, char * * *, int *)Xutf8TextPropertyToTextList; | |
154 extern (C) int function(void *, XTextProperty *, wchar * * *, int *)XwcTextPropertyToTextList; | |
155 extern (C) int function(void *, XTextProperty *, char * * *, int *)XmbTextPropertyToTextList; | |
156 extern (C) int function(XTextProperty *, char * * *, int *)XTextPropertyToStringList; | |
157 extern (C) void function(wchar * *)XwcFreeStringList; | |
158 extern (C) int function(void *, char * *, int, int, XTextProperty *)Xutf8TextListToTextProperty; | |
159 extern (C) int function(void *, wchar * *, int, int, XTextProperty *)XwcTextListToTextProperty; | |
160 extern (C) int function(void *, char * *, int, int, XTextProperty *)XmbTextListToTextProperty; | |
161 extern (C) int function(void *, void *, void *)XSubtractRegion; | |
162 extern (C) int function(char * *, int, XTextProperty *)XStringListToTextProperty; | |
163 extern (C) int function(void *, int, int)XShrinkRegion; | |
164 extern (C) int function(void *, uint, XSizeHints *)XSetZoomHints; | |
165 extern (C) void function(void *, uint, XStandardColormap *, uint)XSetStandardColormap; | |
166 extern (C) int function(void *, void *, void *)XSetRegion; | |
167 extern (C) void function(void *, uint, XSizeHints *, uint)XSetWMSizeHints; | |
168 extern (C) void function(void *, uint, char *, char *, char * *, int, XSizeHints *, XWMHints *, XClassHint *)Xutf8SetWMProperties; | |
169 extern (C) void function(void *, uint, char *, char *, char * *, int, XSizeHints *, XWMHints *, XClassHint *)XmbSetWMProperties; | |
170 extern (C) void function(void *, uint, XTextProperty *, XTextProperty *, char * *, int, XSizeHints *, XWMHints *, XClassHint *)XSetWMProperties; | |
171 extern (C) void function(void *, uint, XSizeHints *)XSetWMNormalHints; | |
172 extern (C) void function(void *, uint, XTextProperty *)XSetWMName; | |
173 extern (C) void function(void *, uint, XTextProperty *)XSetWMIconName; | |
174 extern (C) int function(void *, uint, XWMHints *)XSetWMHints; | |
175 extern (C) void function(void *, uint, XTextProperty *)XSetWMClientMachine; | |
176 extern (C) void function(void *, uint, XTextProperty *, uint)XSetTextProperty; | |
177 extern (C) int function(void *, uint, char *, char *, uint, char * *, int, XSizeHints *)XSetStandardProperties; | |
178 extern (C) int function(void *, uint, XSizeHints *, uint)XSetSizeHints; | |
179 extern (C) void function(void *, uint, XStandardColormap *, int, uint)XSetRGBColormaps; | |
180 extern (C) int function(void *, uint, XSizeHints *)XSetNormalHints; | |
181 extern (C) int function(void *, uint, XIconSize *, int)XSetIconSizes; | |
182 extern (C) int function(void *, uint, XClassHint *)XSetClassHint; | |
183 extern (C) int function(void *, uint, int, char *)XSaveContext; | |
184 extern (C) int function(void *, int, int, uint, uint)XRectInRegion; | |
185 extern (C) void * function(XPoint *, int, int)XPolygonRegion; | |
186 extern (C) int function(void *, int, int)XPointInRegion; | |
187 extern (C) int function(void *, int, int)XOffsetRegion; | |
188 extern (C) int function(void *, int, int, int, XVisualInfo *)XMatchVisualInfo; | |
189 extern (C) int function(XKeyEvent *, char *, int, uint *, _XComposeStatus *)XLookupString; | |
190 extern (C) void function(uint, uint *, uint *)XConvertCase; | |
191 extern (C) int function(void *, void *, void *)XIntersectRegion; | |
192 extern (C) int function(void *, uint, XSizeHints *)XGetZoomHints; | |
193 extern (C) int function(void *, uint, XSizeHints *, int *, uint)XGetWMSizeHints; | |
194 extern (C) int function(void *, uint, XSizeHints *, int *)XGetWMNormalHints; | |
195 extern (C) int function(void *, uint, XTextProperty *)XGetWMName; | |
196 extern (C) int function(void *, uint, XTextProperty *)XGetWMIconName; | |
197 extern (C) XWMHints * function(void *, uint)XGetWMHints; | |
198 extern (C) int function(void *, uint, XTextProperty *)XGetWMClientMachine; | |
199 extern (C) XVisualInfo * function(void *, int, XVisualInfo *, int *)XGetVisualInfo; | |
200 extern (C) int function(void *, uint, XTextProperty *, uint)XGetTextProperty; | |
201 extern (C) int function(void *, uint, XStandardColormap *, uint)XGetStandardColormap; | |
202 extern (C) int function(void *, uint, XSizeHints *, uint)XGetSizeHints; | |
203 extern (C) int function(void *, uint, XStandardColormap * *, int *, uint)XGetRGBColormaps; | |
204 extern (C) int function(void *, uint, XSizeHints *)XGetNormalHints; | |
205 extern (C) int function(void *, uint, XIconSize * *, int *)XGetIconSizes; | |
206 extern (C) int function(void *, uint, XClassHint *)XGetClassHint; | |
207 extern (C) int function(void *, uint, int, char * *)XFindContext; | |
208 extern (C) int function(void *, void *)XEqualRegion; | |
209 extern (C) int function(void *)XEmptyRegion; | |
210 extern (C) int function(void *)XDestroyRegion; | |
211 extern (C) int function(void *, uint, int)XDeleteContext; | |
212 extern (C) char * function()XDefaultString; | |
213 extern (C) void * function()XCreateRegion; | |
214 extern (C) int function(void *, XRectangle *)XClipBox; | |
215 extern (C) XWMHints * function()XAllocWMHints; | |
216 extern (C) XStandardColormap * function()XAllocStandardColormap; | |
217 extern (C) XSizeHints * function()XAllocSizeHints; | |
218 extern (C) XIconSize * function()XAllocIconSize; | |
113 | 219 extern (C) XClassHint * function()XAllocClassHint;" |
220 )); | |
25 | 221 |
113 | 222 Symbol[] symbols; |
223 static this () { | |
224 symbols = [ | |
225 Symbol("XXorRegion", cast(void**)& XXorRegion), | |
226 Symbol("XWMGeometry", cast(void**)& XWMGeometry), | |
227 Symbol("XUnionRegion", cast(void**)& XUnionRegion), | |
228 Symbol("XUnionRectWithRegion", cast(void**)& XUnionRectWithRegion), | |
229 Symbol("Xutf8TextPropertyToTextList", cast(void**)& Xutf8TextPropertyToTextList), | |
230 Symbol("XwcTextPropertyToTextList", cast(void**)& XwcTextPropertyToTextList), | |
231 Symbol("XmbTextPropertyToTextList", cast(void**)& XmbTextPropertyToTextList), | |
232 Symbol("XTextPropertyToStringList", cast(void**)& XTextPropertyToStringList), | |
233 Symbol("XwcFreeStringList", cast(void**)& XwcFreeStringList), | |
234 Symbol("Xutf8TextListToTextProperty", cast(void**)& Xutf8TextListToTextProperty), | |
235 Symbol("XwcTextListToTextProperty", cast(void**)& XwcTextListToTextProperty), | |
236 Symbol("XmbTextListToTextProperty", cast(void**)& XmbTextListToTextProperty), | |
237 Symbol("XSubtractRegion", cast(void**)& XSubtractRegion), | |
238 Symbol("XStringListToTextProperty", cast(void**)& XStringListToTextProperty), | |
239 Symbol("XShrinkRegion", cast(void**)& XShrinkRegion), | |
240 Symbol("XSetZoomHints", cast(void**)& XSetZoomHints), | |
241 Symbol("XSetStandardColormap", cast(void**)& XSetStandardColormap), | |
242 Symbol("XSetRegion", cast(void**)& XSetRegion), | |
243 Symbol("XSetWMSizeHints", cast(void**)& XSetWMSizeHints), | |
244 Symbol("Xutf8SetWMProperties", cast(void**)& Xutf8SetWMProperties), | |
245 Symbol("XmbSetWMProperties", cast(void**)& XmbSetWMProperties), | |
246 Symbol("XSetWMProperties", cast(void**)& XSetWMProperties), | |
247 Symbol("XSetWMNormalHints", cast(void**)& XSetWMNormalHints), | |
248 Symbol("XSetWMName", cast(void**)& XSetWMName), | |
249 Symbol("XSetWMIconName", cast(void**)& XSetWMIconName), | |
250 Symbol("XSetWMHints", cast(void**)& XSetWMHints), | |
251 Symbol("XSetWMClientMachine", cast(void**)& XSetWMClientMachine), | |
252 Symbol("XSetTextProperty", cast(void**)& XSetTextProperty), | |
253 Symbol("XSetStandardProperties", cast(void**)& XSetStandardProperties), | |
254 Symbol("XSetSizeHints", cast(void**)& XSetSizeHints), | |
255 Symbol("XSetRGBColormaps", cast(void**)& XSetRGBColormaps), | |
256 Symbol("XSetNormalHints", cast(void**)& XSetNormalHints), | |
257 Symbol("XSetIconSizes", cast(void**)& XSetIconSizes), | |
258 Symbol("XSetClassHint", cast(void**)& XSetClassHint), | |
259 Symbol("XSaveContext", cast(void**)& XSaveContext), | |
260 Symbol("XRectInRegion", cast(void**)& XRectInRegion), | |
261 Symbol("XPolygonRegion", cast(void**)& XPolygonRegion), | |
262 Symbol("XPointInRegion", cast(void**)& XPointInRegion), | |
263 Symbol("XOffsetRegion", cast(void**)& XOffsetRegion), | |
264 Symbol("XMatchVisualInfo", cast(void**)& XMatchVisualInfo), | |
265 Symbol("XLookupString", cast(void**)& XLookupString), | |
266 Symbol("XConvertCase", cast(void**)& XConvertCase), | |
267 Symbol("XIntersectRegion", cast(void**)& XIntersectRegion), | |
268 Symbol("XGetZoomHints", cast(void**)& XGetZoomHints), | |
269 Symbol("XGetWMSizeHints", cast(void**)& XGetWMSizeHints), | |
270 Symbol("XGetWMNormalHints", cast(void**)& XGetWMNormalHints), | |
271 Symbol("XGetWMName", cast(void**)& XGetWMName), | |
272 Symbol("XGetWMIconName", cast(void**)& XGetWMIconName), | |
273 Symbol("XGetWMHints", cast(void**)& XGetWMHints), | |
274 Symbol("XGetWMClientMachine", cast(void**)& XGetWMClientMachine), | |
275 Symbol("XGetVisualInfo", cast(void**)& XGetVisualInfo), | |
276 Symbol("XGetTextProperty", cast(void**)& XGetTextProperty), | |
277 Symbol("XGetStandardColormap", cast(void**)& XGetStandardColormap), | |
278 Symbol("XGetSizeHints", cast(void**)& XGetSizeHints), | |
279 Symbol("XGetRGBColormaps", cast(void**)& XGetRGBColormaps), | |
280 Symbol("XGetNormalHints", cast(void**)& XGetNormalHints), | |
281 Symbol("XGetIconSizes", cast(void**)& XGetIconSizes), | |
282 Symbol("XGetClassHint", cast(void**)& XGetClassHint), | |
283 Symbol("XFindContext", cast(void**)& XFindContext), | |
284 Symbol("XEqualRegion", cast(void**)& XEqualRegion), | |
285 Symbol("XEmptyRegion", cast(void**)& XEmptyRegion), | |
286 Symbol("XDestroyRegion", cast(void**)& XDestroyRegion), | |
287 Symbol("XDeleteContext", cast(void**)& XDeleteContext), | |
288 Symbol("XDefaultString", cast(void**)& XDefaultString), | |
289 Symbol("XCreateRegion", cast(void**)& XCreateRegion), | |
290 Symbol("XClipBox", cast(void**)& XClipBox), | |
291 Symbol("XAllocWMHints", cast(void**)& XAllocWMHints), | |
292 Symbol("XAllocStandardColormap", cast(void**)& XAllocStandardColormap), | |
293 Symbol("XAllocSizeHints", cast(void**)& XAllocSizeHints), | |
294 Symbol("XAllocIconSize", cast(void**)& XAllocIconSize), | |
120
536e43f63c81
Comprehensive update for Win32/Linux32 dmd-2.053/dmd-1.068+Tango-r5661
Denis Shelomovskij <verylonglogin.reg@gmail.com>
parents:
113
diff
changeset
|
295 Symbol("XAllocClassHint", cast(void**)& XAllocClassHint) |
113 | 296 ]; |
297 } | |
25 | 298 |
299 } else { // version(DYNLINK) | |
300 extern (C) int XXorRegion(void *, void *, void *); | |
301 extern (C) int XWMGeometry(void *, int, char *, char *, uint, XSizeHints *, int *, int *, int *, int *, int *); | |
302 extern (C) int XUnionRegion(void *, void *, void *); | |
303 extern (C) int XUnionRectWithRegion(XRectangle *, void *, void *); | |
304 extern (C) int Xutf8TextPropertyToTextList(void *, XTextProperty *, char * * *, int *); | |
305 extern (C) int XwcTextPropertyToTextList(void *, XTextProperty *, wchar * * *, int *); | |
306 extern (C) int XmbTextPropertyToTextList(void *, XTextProperty *, char * * *, int *); | |
307 extern (C) int XTextPropertyToStringList(XTextProperty *, char * * *, int *); | |
308 extern (C) void XwcFreeStringList(wchar * *); | |
309 extern (C) int Xutf8TextListToTextProperty(void *, char * *, int, int, XTextProperty *); | |
310 extern (C) int XwcTextListToTextProperty(void *, wchar * *, int, int, XTextProperty *); | |
311 extern (C) int XmbTextListToTextProperty(void *, char * *, int, int, XTextProperty *); | |
312 extern (C) int XSubtractRegion(void *, void *, void *); | |
313 extern (C) int XStringListToTextProperty(char * *, int, XTextProperty *); | |
314 extern (C) int XShrinkRegion(void *, int, int); | |
315 extern (C) int XSetZoomHints(void *, uint, XSizeHints *); | |
316 extern (C) void XSetStandardColormap(void *, uint, XStandardColormap *, uint); | |
317 extern (C) int XSetRegion(void *, void *, void *); | |
318 extern (C) void XSetWMSizeHints(void *, uint, XSizeHints *, uint); | |
319 extern (C) void Xutf8SetWMProperties(void *, uint, char *, char *, char * *, int, XSizeHints *, XWMHints *, XClassHint *); | |
320 extern (C) void XmbSetWMProperties(void *, uint, char *, char *, char * *, int, XSizeHints *, XWMHints *, XClassHint *); | |
321 extern (C) void XSetWMProperties(void *, uint, XTextProperty *, XTextProperty *, char * *, int, XSizeHints *, XWMHints *, XClassHint *); | |
322 extern (C) void XSetWMNormalHints(void *, uint, XSizeHints *); | |
323 extern (C) void XSetWMName(void *, uint, XTextProperty *); | |
324 extern (C) void XSetWMIconName(void *, uint, XTextProperty *); | |
325 extern (C) int XSetWMHints(void *, uint, XWMHints *); | |
326 extern (C) void XSetWMClientMachine(void *, uint, XTextProperty *); | |
327 extern (C) void XSetTextProperty(void *, uint, XTextProperty *, uint); | |
328 extern (C) int XSetStandardProperties(void *, uint, char *, char *, uint, char * *, int, XSizeHints *); | |
329 extern (C) int XSetSizeHints(void *, uint, XSizeHints *, uint); | |
330 extern (C) void XSetRGBColormaps(void *, uint, XStandardColormap *, int, uint); | |
331 extern (C) int XSetNormalHints(void *, uint, XSizeHints *); | |
332 extern (C) int XSetIconSizes(void *, uint, XIconSize *, int); | |
333 extern (C) int XSetClassHint(void *, uint, XClassHint *); | |
334 extern (C) int XSaveContext(void *, uint, int, char *); | |
335 extern (C) int XRectInRegion(void *, int, int, uint, uint); | |
336 extern (C) void * XPolygonRegion(XPoint *, int, int); | |
337 extern (C) int XPointInRegion(void *, int, int); | |
338 extern (C) int XOffsetRegion(void *, int, int); | |
339 extern (C) int XMatchVisualInfo(void *, int, int, int, XVisualInfo *); | |
340 extern (C) int XLookupString(XKeyEvent *, char *, int, uint *, _XComposeStatus *); | |
341 extern (C) void XConvertCase(uint, uint *, uint *); | |
342 extern (C) int XIntersectRegion(void *, void *, void *); | |
343 extern (C) int XGetZoomHints(void *, uint, XSizeHints *); | |
344 extern (C) int XGetWMSizeHints(void *, uint, XSizeHints *, int *, uint); | |
345 extern (C) int XGetWMNormalHints(void *, uint, XSizeHints *, int *); | |
346 extern (C) int XGetWMName(void *, uint, XTextProperty *); | |
347 extern (C) int XGetWMIconName(void *, uint, XTextProperty *); | |
348 extern (C) XWMHints * XGetWMHints(void *, uint); | |
349 extern (C) int XGetWMClientMachine(void *, uint, XTextProperty *); | |
350 extern (C) XVisualInfo * XGetVisualInfo(void *, int, XVisualInfo *, int *); | |
351 extern (C) int XGetTextProperty(void *, uint, XTextProperty *, uint); | |
352 extern (C) int XGetStandardColormap(void *, uint, XStandardColormap *, uint); | |
353 extern (C) int XGetSizeHints(void *, uint, XSizeHints *, uint); | |
354 extern (C) int XGetRGBColormaps(void *, uint, XStandardColormap * *, int *, uint); | |
355 extern (C) int XGetNormalHints(void *, uint, XSizeHints *); | |
356 extern (C) int XGetIconSizes(void *, uint, XIconSize * *, int *); | |
357 extern (C) int XGetClassHint(void *, uint, XClassHint *); | |
358 extern (C) int XFindContext(void *, uint, int, char * *); | |
359 extern (C) int XEqualRegion(void *, void *); | |
360 extern (C) int XEmptyRegion(void *); | |
361 extern (C) int XDestroyRegion(void *); | |
362 extern (C) int XDeleteContext(void *, uint, int); | |
363 extern (C) char * XDefaultString(); | |
364 extern (C) void * XCreateRegion(); | |
365 extern (C) int XClipBox(void *, XRectangle *); | |
366 extern (C) XWMHints * XAllocWMHints(); | |
367 extern (C) XStandardColormap * XAllocStandardColormap(); | |
368 extern (C) XSizeHints * XAllocSizeHints(); | |
369 extern (C) XIconSize * XAllocIconSize(); | |
370 extern (C) XClassHint * XAllocClassHint(); | |
371 } // version(DYNLINK) |