]> gitweb.factorcode.org Git - factor.git/blob - basis/pango/pango.factor
clean up; add add-library for unix environments (and partially for windows)
[factor.git] / basis / pango / pango.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.libraries
4 alien.syntax combinators kernel system
5 gir glib glib.ffi ;
6
7 << 
8 "pango" {
9     { [ os winnt? ] [ "libpango-1.0-0.dll" cdecl add-library ] }
10     { [ os macosx? ] [ "/opt/local/lib/libpango-1.0.0.dylib" cdecl add-library ] }
11     { [ os unix? ] [ "libpango-1.0.so" cdecl add-library ] }
12 } cond 
13 >>
14
15 IN: pango.ffi
16
17 TYPEDEF: void PangoLayoutRun ! не совсем верно
18 TYPEDEF: guint32 PangoGlyph
19
20 IMPLEMENT-STRUCTS: PangoRectangle ;
21
22 IN-GIR: pango vocab:pango/Pango-1.0.gir
23
24 IN: pango.ffi
25
26 DESTRUCTOR: pango_font_description_free
27 DESTRUCTOR: pango_layout_iter_free
28