]> gitweb.factorcode.org Git - factor.git/blob - basis/gdk/ffi/ffi.factor
Merge branch 'gtk' into gtk-image-loader
[factor.git] / basis / gdk / ffi / ffi.factor
1 ! Copyright (C) 2009 Anton Gorenko.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: alien alien.c-types alien.destructors alien.syntax
4 alien.libraries cairo.ffi combinators kernel system
5 gobject-introspection gdk.pixbuf.ffi gio.ffi glib.ffi gmodule.ffi
6 gobject.ffi pango.ffi ;
7 IN: gdk.ffi
8
9 <<
10 "gdk" {
11     { [ os winnt? ] [ "libgdk-win32-2.0-0.dll" cdecl add-library ] }
12     { [ os macosx? ] [ drop ] }
13     { [ os unix? ] [ "libgdk-x11-2.0.so" cdecl add-library ] }
14 } cond
15 >>
16
17 TYPEDEF: guint32 GdkNativeWindow
18 TYPEDEF: guint32 GdkWChar
19 C-TYPE: GdkXEvent
20
21 IMPLEMENT-STRUCTS: GdkEventAny GdkEventKey GdkEventButton
22 GdkEventScroll GdkEventMotion GdkEventExpose GdkEventVisibility
23 GdkEventCrossing GdkEventFocus GdkEventConfigure GdkEventProperty
24 GdkEventSelection GdkEventDND GdkEventProximity GdkEventClient
25 GdkEventNoExpose GdkEventWindowState GdkEventSetting
26 GdkEventOwnerChange GdkEventGrabBroken GdkRectangle ;
27
28 GIR: vocab:gdk/Gdk-2.0.gir
29
30 DESTRUCTOR: gdk_cursor_unref
31