]> gitweb.factorcode.org Git - factor.git/blob - basis/gdk/ffi/ffi.factor
change directories structure (add */ffi/ffi.factor files)
[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 gir gdk.pixbuf.ffi gio.ffi glib.ffi gmodule.ffi gobject.ffi
6 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
20 IMPLEMENT-STRUCTS: GdkEventAny GdkEventKey GdkEventButton
21 GdkEventScroll GdkEventMotion GdkEventExpose GdkEventVisibility
22 GdkEventCrossing GdkEventFocus GdkEventConfigure GdkEventProperty
23 GdkEventSelection GdkEventDND GdkEventProximity GdkEventClient
24 GdkEventNoExpose GdkEventWindowState GdkEventSetting
25 GdkEventOwnerChange GdkEventGrabBroken ;
26
27 GIR: vocab:gdk/Gdk-2.0.gir
28
29 DESTRUCTOR: gdk_cursor_unref
30