1 ! Copyright (C) 2010 Anton Gorenko.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: alien alien.c-types alien.destructors alien.libraries
4 alien.syntax cairo.ffi classes.struct combinators
5 gobject-introspection gobject-introspection.standard-types
6 kernel system vocabs.loader ;
11 "gdk.pixbuf.ffi" require
18 { [ os winnt? ] [ "libgdk-win32-2.0-0.dll" cdecl add-library ] }
19 { [ os macosx? ] [ drop ] }
20 { [ os unix? ] [ "libgdk-x11-2.0.so" cdecl add-library ] }
24 ! <workaround these types are from cairo 1.10
25 STRUCT: cairo_rectangle_int_t
26 { x int } { y int } { width int } { height int } ;
28 C-TYPE: cairo_region_t
31 FOREIGN-RECORD-TYPE: cairo.RectangleInt cairo_rectangle_int_t
32 FOREIGN-RECORD-TYPE: cairo.Region cairo_region_t
33 FOREIGN-RECORD-TYPE: cairo.FontOptions cairo_font_options_t
34 FOREIGN-RECORD-TYPE: cairo.Surface cairo_surface_t
35 FOREIGN-RECORD-TYPE: cairo.Pattern cairo_pattern_t
36 FOREIGN-RECORD-TYPE: cairo.Context cairo_t
37 FOREIGN-ENUM-TYPE: cairo.Content cairo_content_t
39 GIR: vocab:gdk/Gdk-3.0.gir
41 DESTRUCTOR: gdk_cursor_unref
43 STRUCT: GdkEventButton
57 STRUCT: GdkEventConfigure
75 { hardware_keycode guint16 }
77 { is_modifier uint bits: 1 } ;
79 STRUCT: GdkEventMotion
93 STRUCT: GdkEventScroll
101 { direction GdkScrollDirection }
102 { device GdkDevice* }