annotate org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/internal/c/cairo_xlib.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
1 /******************************************************************************
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
2 Based on the generated files from the BCD tool
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
3 modified by: Frank Benoit <keinfarbton@googlemail.com>
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
4 ******************************************************************************/
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
5 module org.eclipse.swt.internal.c.cairo_xlib;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
6
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
7 import java.lang.all;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
8
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
9 public import org.eclipse.swt.internal.c.cairo_xlib;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
10 public import org.eclipse.swt.internal.c.cairo;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
11 public import org.eclipse.swt.internal.c.Xlib;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
12
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
13 extern(C):
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
14 align(4):
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
15
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
16 alias void function(void *, char *, int, int, char * *) _BCD_func__1143;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
17 alias int function(void *) _BCD_func__1190;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
18 alias int function(void *, XErrorEvent *) _BCD_func__1191;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
19 alias void function(void *, char *, char *) _BCD_func__1264;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
20 alias int function(void *, char *, char *) _BCD_func__1265;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
21 alias void function(void *, char *, char *) _BCD_func__1266;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
22 alias int function(void *, char *, uint) _BCD_func__2139;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
23 alias int function(void *, char *, uint) _BCD_func__2140;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
24 alias void function(void *) _BCD_func__2144;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
25 version(DYNLINK){
113
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
26 mixin(gshared!(
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
27 "extern (C) int function(void *)cairo_xlib_surface_get_height;
25
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
28 extern (C) int function(void *)cairo_xlib_surface_get_width;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
29 extern (C) int function(void *)cairo_xlib_surface_get_depth;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
30 extern (C) Visual * function(void *)cairo_xlib_surface_get_visual;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
31 extern (C) Screen * function(void *)cairo_xlib_surface_get_screen;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
32 extern (C) uint function(void *)cairo_xlib_surface_get_drawable;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
33 extern (C) void * function(void *)cairo_xlib_surface_get_display;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
34 extern (C) void function(void *, uint, int, int)cairo_xlib_surface_set_drawable;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
35 extern (C) void function(void *, int, int)cairo_xlib_surface_set_size;
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
36 extern (C) void * function(void *, uint, Screen *, int, int)cairo_xlib_surface_create_for_bitmap;
113
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
37 extern (C) void * function(void *, uint, Visual *, int, int)cairo_xlib_surface_create;"
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
38 ));
25
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
39
113
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
40 Symbol[] symbols;
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
41 static this () {
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
42 symbols = [
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
43 Symbol("cairo_xlib_surface_get_height", cast(void**)& cairo_xlib_surface_get_height),
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
44 Symbol("cairo_xlib_surface_get_width", cast(void**)& cairo_xlib_surface_get_width),
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
45 Symbol("cairo_xlib_surface_get_depth", cast(void**)& cairo_xlib_surface_get_depth),
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
46 Symbol("cairo_xlib_surface_get_visual", cast(void**)& cairo_xlib_surface_get_visual),
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
47 Symbol("cairo_xlib_surface_get_screen", cast(void**)& cairo_xlib_surface_get_screen),
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
48 Symbol("cairo_xlib_surface_get_drawable", cast(void**)& cairo_xlib_surface_get_drawable),
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
49 Symbol("cairo_xlib_surface_get_display", cast(void**)& cairo_xlib_surface_get_display),
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
50 Symbol("cairo_xlib_surface_set_drawable", cast(void**)& cairo_xlib_surface_set_drawable),
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
51 Symbol("cairo_xlib_surface_set_size", cast(void**)& cairo_xlib_surface_set_size),
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
52 Symbol("cairo_xlib_surface_create_for_bitmap", cast(void**)& cairo_xlib_surface_create_for_bitmap),
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
53 Symbol("cairo_xlib_surface_create", cast(void**)& cairo_xlib_surface_create),
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
54 ];
fb3aa8075988 D2 support for the linux port.
Jacob Carlborg <doob@me.com>
parents: 25
diff changeset
55 }
25
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
56
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
57 } else { // version(DYNLINK)
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
58 extern (C) int cairo_xlib_surface_get_height(void *);
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
59 extern (C) int cairo_xlib_surface_get_width(void *);
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
60 extern (C) int cairo_xlib_surface_get_depth(void *);
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
61 extern (C) Visual * cairo_xlib_surface_get_visual(void *);
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
62 extern (C) Screen * cairo_xlib_surface_get_screen(void *);
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
63 extern (C) uint cairo_xlib_surface_get_drawable(void *);
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
64 extern (C) void * cairo_xlib_surface_get_display(void *);
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
65 extern (C) void cairo_xlib_surface_set_drawable(void *, uint, int, int);
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
66 extern (C) void cairo_xlib_surface_set_size(void *, int, int);
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
67 extern (C) void * cairo_xlib_surface_create_for_bitmap(void *, uint, Screen *, int, int);
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
68 extern (C) void * cairo_xlib_surface_create(void *, uint, Visual *, int, int);
f713da8bc051 Added SWT Linux GTK
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
69 } // version(DYNLINK)