comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/internal/c/Xutil.d @ 113:fb3aa8075988

D2 support for the linux port.
author Jacob Carlborg <doob@me.com>
date Wed, 06 Apr 2011 21:57:23 +0200
parents f713da8bc051
children 536e43f63c81
comparison
equal deleted inserted replaced
112:9f4c18c268b2 113:fb3aa8075988
143 int base_width; 143 int base_width;
144 int base_height; 144 int base_height;
145 int win_gravity; 145 int win_gravity;
146 } 146 }
147 version(DYNLINK){ 147 version(DYNLINK){
148 extern (C) int function(void *, void *, void *)XXorRegion; 148 mixin(gshared!(
149 "extern (C) int function(void *, void *, void *)XXorRegion;
149 extern (C) int function(void *, int, char *, char *, uint, XSizeHints *, int *, int *, int *, int *, int *)XWMGeometry; 150 extern (C) int function(void *, int, char *, char *, uint, XSizeHints *, int *, int *, int *, int *, int *)XWMGeometry;
150 extern (C) int function(void *, void *, void *)XUnionRegion; 151 extern (C) int function(void *, void *, void *)XUnionRegion;
151 extern (C) int function(XRectangle *, void *, void *)XUnionRectWithRegion; 152 extern (C) int function(XRectangle *, void *, void *)XUnionRectWithRegion;
152 extern (C) int function(void *, XTextProperty *, char * * *, int *)Xutf8TextPropertyToTextList; 153 extern (C) int function(void *, XTextProperty *, char * * *, int *)Xutf8TextPropertyToTextList;
153 extern (C) int function(void *, XTextProperty *, wchar * * *, int *)XwcTextPropertyToTextList; 154 extern (C) int function(void *, XTextProperty *, wchar * * *, int *)XwcTextPropertyToTextList;
213 extern (C) int function(void *, XRectangle *)XClipBox; 214 extern (C) int function(void *, XRectangle *)XClipBox;
214 extern (C) XWMHints * function()XAllocWMHints; 215 extern (C) XWMHints * function()XAllocWMHints;
215 extern (C) XStandardColormap * function()XAllocStandardColormap; 216 extern (C) XStandardColormap * function()XAllocStandardColormap;
216 extern (C) XSizeHints * function()XAllocSizeHints; 217 extern (C) XSizeHints * function()XAllocSizeHints;
217 extern (C) XIconSize * function()XAllocIconSize; 218 extern (C) XIconSize * function()XAllocIconSize;
218 extern (C) XClassHint * function()XAllocClassHint; 219 extern (C) XClassHint * function()XAllocClassHint;"
219 220 ));
220 221
221 Symbol[] symbols = [ 222 Symbol[] symbols;
222 { "XXorRegion", cast(void**)& XXorRegion}, 223 static this () {
223 { "XWMGeometry", cast(void**)& XWMGeometry}, 224 symbols = [
224 { "XUnionRegion", cast(void**)& XUnionRegion}, 225 Symbol("XXorRegion", cast(void**)& XXorRegion),
225 { "XUnionRectWithRegion", cast(void**)& XUnionRectWithRegion}, 226 Symbol("XWMGeometry", cast(void**)& XWMGeometry),
226 { "Xutf8TextPropertyToTextList", cast(void**)& Xutf8TextPropertyToTextList}, 227 Symbol("XUnionRegion", cast(void**)& XUnionRegion),
227 { "XwcTextPropertyToTextList", cast(void**)& XwcTextPropertyToTextList}, 228 Symbol("XUnionRectWithRegion", cast(void**)& XUnionRectWithRegion),
228 { "XmbTextPropertyToTextList", cast(void**)& XmbTextPropertyToTextList}, 229 Symbol("Xutf8TextPropertyToTextList", cast(void**)& Xutf8TextPropertyToTextList),
229 { "XTextPropertyToStringList", cast(void**)& XTextPropertyToStringList}, 230 Symbol("XwcTextPropertyToTextList", cast(void**)& XwcTextPropertyToTextList),
230 { "XwcFreeStringList", cast(void**)& XwcFreeStringList}, 231 Symbol("XmbTextPropertyToTextList", cast(void**)& XmbTextPropertyToTextList),
231 { "Xutf8TextListToTextProperty", cast(void**)& Xutf8TextListToTextProperty}, 232 Symbol("XTextPropertyToStringList", cast(void**)& XTextPropertyToStringList),
232 { "XwcTextListToTextProperty", cast(void**)& XwcTextListToTextProperty}, 233 Symbol("XwcFreeStringList", cast(void**)& XwcFreeStringList),
233 { "XmbTextListToTextProperty", cast(void**)& XmbTextListToTextProperty}, 234 Symbol("Xutf8TextListToTextProperty", cast(void**)& Xutf8TextListToTextProperty),
234 { "XSubtractRegion", cast(void**)& XSubtractRegion}, 235 Symbol("XwcTextListToTextProperty", cast(void**)& XwcTextListToTextProperty),
235 { "XStringListToTextProperty", cast(void**)& XStringListToTextProperty}, 236 Symbol("XmbTextListToTextProperty", cast(void**)& XmbTextListToTextProperty),
236 { "XShrinkRegion", cast(void**)& XShrinkRegion}, 237 Symbol("XSubtractRegion", cast(void**)& XSubtractRegion),
237 { "XSetZoomHints", cast(void**)& XSetZoomHints}, 238 Symbol("XStringListToTextProperty", cast(void**)& XStringListToTextProperty),
238 { "XSetStandardColormap", cast(void**)& XSetStandardColormap}, 239 Symbol("XShrinkRegion", cast(void**)& XShrinkRegion),
239 { "XSetRegion", cast(void**)& XSetRegion}, 240 Symbol("XSetZoomHints", cast(void**)& XSetZoomHints),
240 { "XSetWMSizeHints", cast(void**)& XSetWMSizeHints}, 241 Symbol("XSetStandardColormap", cast(void**)& XSetStandardColormap),
241 { "Xutf8SetWMProperties", cast(void**)& Xutf8SetWMProperties}, 242 Symbol("XSetRegion", cast(void**)& XSetRegion),
242 { "XmbSetWMProperties", cast(void**)& XmbSetWMProperties}, 243 Symbol("XSetWMSizeHints", cast(void**)& XSetWMSizeHints),
243 { "XSetWMProperties", cast(void**)& XSetWMProperties}, 244 Symbol("Xutf8SetWMProperties", cast(void**)& Xutf8SetWMProperties),
244 { "XSetWMNormalHints", cast(void**)& XSetWMNormalHints}, 245 Symbol("XmbSetWMProperties", cast(void**)& XmbSetWMProperties),
245 { "XSetWMName", cast(void**)& XSetWMName}, 246 Symbol("XSetWMProperties", cast(void**)& XSetWMProperties),
246 { "XSetWMIconName", cast(void**)& XSetWMIconName}, 247 Symbol("XSetWMNormalHints", cast(void**)& XSetWMNormalHints),
247 { "XSetWMHints", cast(void**)& XSetWMHints}, 248 Symbol("XSetWMName", cast(void**)& XSetWMName),
248 { "XSetWMClientMachine", cast(void**)& XSetWMClientMachine}, 249 Symbol("XSetWMIconName", cast(void**)& XSetWMIconName),
249 { "XSetTextProperty", cast(void**)& XSetTextProperty}, 250 Symbol("XSetWMHints", cast(void**)& XSetWMHints),
250 { "XSetStandardProperties", cast(void**)& XSetStandardProperties}, 251 Symbol("XSetWMClientMachine", cast(void**)& XSetWMClientMachine),
251 { "XSetSizeHints", cast(void**)& XSetSizeHints}, 252 Symbol("XSetTextProperty", cast(void**)& XSetTextProperty),
252 { "XSetRGBColormaps", cast(void**)& XSetRGBColormaps}, 253 Symbol("XSetStandardProperties", cast(void**)& XSetStandardProperties),
253 { "XSetNormalHints", cast(void**)& XSetNormalHints}, 254 Symbol("XSetSizeHints", cast(void**)& XSetSizeHints),
254 { "XSetIconSizes", cast(void**)& XSetIconSizes}, 255 Symbol("XSetRGBColormaps", cast(void**)& XSetRGBColormaps),
255 { "XSetClassHint", cast(void**)& XSetClassHint}, 256 Symbol("XSetNormalHints", cast(void**)& XSetNormalHints),
256 { "XSaveContext", cast(void**)& XSaveContext}, 257 Symbol("XSetIconSizes", cast(void**)& XSetIconSizes),
257 { "XRectInRegion", cast(void**)& XRectInRegion}, 258 Symbol("XSetClassHint", cast(void**)& XSetClassHint),
258 { "XPolygonRegion", cast(void**)& XPolygonRegion}, 259 Symbol("XSaveContext", cast(void**)& XSaveContext),
259 { "XPointInRegion", cast(void**)& XPointInRegion}, 260 Symbol("XRectInRegion", cast(void**)& XRectInRegion),
260 { "XOffsetRegion", cast(void**)& XOffsetRegion}, 261 Symbol("XPolygonRegion", cast(void**)& XPolygonRegion),
261 { "XMatchVisualInfo", cast(void**)& XMatchVisualInfo}, 262 Symbol("XPointInRegion", cast(void**)& XPointInRegion),
262 { "XLookupString", cast(void**)& XLookupString}, 263 Symbol("XOffsetRegion", cast(void**)& XOffsetRegion),
263 { "XConvertCase", cast(void**)& XConvertCase}, 264 Symbol("XMatchVisualInfo", cast(void**)& XMatchVisualInfo),
264 { "XIntersectRegion", cast(void**)& XIntersectRegion}, 265 Symbol("XLookupString", cast(void**)& XLookupString),
265 { "XGetZoomHints", cast(void**)& XGetZoomHints}, 266 Symbol("XConvertCase", cast(void**)& XConvertCase),
266 { "XGetWMSizeHints", cast(void**)& XGetWMSizeHints}, 267 Symbol("XIntersectRegion", cast(void**)& XIntersectRegion),
267 { "XGetWMNormalHints", cast(void**)& XGetWMNormalHints}, 268 Symbol("XGetZoomHints", cast(void**)& XGetZoomHints),
268 { "XGetWMName", cast(void**)& XGetWMName}, 269 Symbol("XGetWMSizeHints", cast(void**)& XGetWMSizeHints),
269 { "XGetWMIconName", cast(void**)& XGetWMIconName}, 270 Symbol("XGetWMNormalHints", cast(void**)& XGetWMNormalHints),
270 { "XGetWMHints", cast(void**)& XGetWMHints}, 271 Symbol("XGetWMName", cast(void**)& XGetWMName),
271 { "XGetWMClientMachine", cast(void**)& XGetWMClientMachine}, 272 Symbol("XGetWMIconName", cast(void**)& XGetWMIconName),
272 { "XGetVisualInfo", cast(void**)& XGetVisualInfo}, 273 Symbol("XGetWMHints", cast(void**)& XGetWMHints),
273 { "XGetTextProperty", cast(void**)& XGetTextProperty}, 274 Symbol("XGetWMClientMachine", cast(void**)& XGetWMClientMachine),
274 { "XGetStandardColormap", cast(void**)& XGetStandardColormap}, 275 Symbol("XGetVisualInfo", cast(void**)& XGetVisualInfo),
275 { "XGetSizeHints", cast(void**)& XGetSizeHints}, 276 Symbol("XGetTextProperty", cast(void**)& XGetTextProperty),
276 { "XGetRGBColormaps", cast(void**)& XGetRGBColormaps}, 277 Symbol("XGetStandardColormap", cast(void**)& XGetStandardColormap),
277 { "XGetNormalHints", cast(void**)& XGetNormalHints}, 278 Symbol("XGetSizeHints", cast(void**)& XGetSizeHints),
278 { "XGetIconSizes", cast(void**)& XGetIconSizes}, 279 Symbol("XGetRGBColormaps", cast(void**)& XGetRGBColormaps),
279 { "XGetClassHint", cast(void**)& XGetClassHint}, 280 Symbol("XGetNormalHints", cast(void**)& XGetNormalHints),
280 { "XFindContext", cast(void**)& XFindContext}, 281 Symbol("XGetIconSizes", cast(void**)& XGetIconSizes),
281 { "XEqualRegion", cast(void**)& XEqualRegion}, 282 Symbol("XGetClassHint", cast(void**)& XGetClassHint),
282 { "XEmptyRegion", cast(void**)& XEmptyRegion}, 283 Symbol("XFindContext", cast(void**)& XFindContext),
283 { "XDestroyRegion", cast(void**)& XDestroyRegion}, 284 Symbol("XEqualRegion", cast(void**)& XEqualRegion),
284 { "XDeleteContext", cast(void**)& XDeleteContext}, 285 Symbol("XEmptyRegion", cast(void**)& XEmptyRegion),
285 { "XDefaultString", cast(void**)& XDefaultString}, 286 Symbol("XDestroyRegion", cast(void**)& XDestroyRegion),
286 { "XCreateRegion", cast(void**)& XCreateRegion}, 287 Symbol("XDeleteContext", cast(void**)& XDeleteContext),
287 { "XClipBox", cast(void**)& XClipBox}, 288 Symbol("XDefaultString", cast(void**)& XDefaultString),
288 { "XAllocWMHints", cast(void**)& XAllocWMHints}, 289 Symbol("XCreateRegion", cast(void**)& XCreateRegion),
289 { "XAllocStandardColormap", cast(void**)& XAllocStandardColormap}, 290 Symbol("XClipBox", cast(void**)& XClipBox),
290 { "XAllocSizeHints", cast(void**)& XAllocSizeHints}, 291 Symbol("XAllocWMHints", cast(void**)& XAllocWMHints),
291 { "XAllocIconSize", cast(void**)& XAllocIconSize}, 292 Symbol("XAllocStandardColormap", cast(void**)& XAllocStandardColormap),
292 { "XAllocClassHint", cast(void**)& XAllocClassHint}, 293 Symbol("XAllocSizeHints", cast(void**)& XAllocSizeHints),
293 ]; 294 Symbol("XAllocIconSize", cast(void**)& XAllocIconSize),
295 Symbol("XAllocClassHint", cast(void**)& XAllocClassHint),
296 ];
297 }
294 298
295 } else { // version(DYNLINK) 299 } else { // version(DYNLINK)
296 extern (C) int XXorRegion(void *, void *, void *); 300 extern (C) int XXorRegion(void *, void *, void *);
297 extern (C) int XWMGeometry(void *, int, char *, char *, uint, XSizeHints *, int *, int *, int *, int *, int *); 301 extern (C) int XWMGeometry(void *, int, char *, char *, uint, XSizeHints *, int *, int *, int *, int *, int *);
298 extern (C) int XUnionRegion(void *, void *, void *); 302 extern (C) int XUnionRegion(void *, void *, void *);