]> gitweb.factorcode.org Git - factor.git/blob - basis/gtk/ffi/ffi.factor
Remove Windows CE from core/ basis/ and build-support/
[factor.git] / basis / gtk / ffi / ffi.factor
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 combinators gobject-introspection
5 gobject-introspection.standard-types kernel pango.ffi system
6 vocabs.loader ;
7 IN: gtk.ffi
8
9 <<
10 "atk.ffi" require
11 "gdk.ffi" require
12 >>
13
14 LIBRARY: gtk
15
16 <<
17 "gtk" {
18     { [ os windows? ] [ "libgtk-win32-2.0-0.dll" cdecl add-library ] }
19     { [ os unix? ] [ drop ] }
20 } cond
21 >>
22
23 IMPLEMENT-STRUCTS: GtkTreeIter ;
24
25 GIR: vocab:gtk/Gtk-3.0.gir
26
27 DESTRUCTOR: gtk_widget_destroy
28
29 ! <workaround
30 FORGET: gtk_im_context_get_preedit_string
31 FUNCTION: void
32 gtk_im_context_get_preedit_string ( GtkIMContext* imcontext, gchar** str, PangoAttrList** attrs, gint* cursor_pos ) ;
33 ! workaround>