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 windows? ] [ "libgdk-win32-2.0-0.dll" cdecl add-library ] }
19 { [ os unix? ] [ drop ] }
23 ! <workaround these types are from cairo 1.10
24 STRUCT: cairo_rectangle_int_t
25 { x int } { y int } { width int } { height int } ;
27 C-TYPE: cairo_region_t
30 FOREIGN-RECORD-TYPE: cairo.RectangleInt cairo_rectangle_int_t
31 FOREIGN-RECORD-TYPE: cairo.Region cairo_region_t
32 FOREIGN-RECORD-TYPE: cairo.FontOptions cairo_font_options_t
33 FOREIGN-RECORD-TYPE: cairo.Surface cairo_surface_t
34 FOREIGN-RECORD-TYPE: cairo.Pattern cairo_pattern_t
35 FOREIGN-RECORD-TYPE: cairo.Context cairo_t
36 FOREIGN-ENUM-TYPE: cairo.Content cairo_content_t
38 GIR: vocab:gdk/Gdk-3.0.gir
40 DESTRUCTOR: gdk_cursor_unref
42 STRUCT: GdkEventButton
56 STRUCT: GdkEventConfigure
74 { hardware_keycode guint16 }
76 { is_modifier uint bits: 1 } ;
78 STRUCT: GdkEventMotion
92 STRUCT: GdkEventScroll
100 { direction GdkScrollDirection }
101 { device GdkDevice* }