1 ! Copyright (C) 2008 Matthew Willis.
2 ! See http://factorcode.org/license.txt for BSD license
4 alien.c-types alien.syntax alien combinators ;
7 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
8 ! Helpful functions from other parts of pango
9 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12 { [ os winnt? ] [ "libpango-1.0-0.dll" ] }
13 { [ os macosx? ] [ "libpango-1.0.0.dylib" ] }
14 { [ os unix? ] [ "libpango-1.0.so" ] }
15 } cond "cdecl" add-library >>
21 FUNCTION: PangoLayout*
22 pango_layout_new ( PangoContext* context ) ;
25 pango_layout_set_text ( PangoLayout* layout, char* text, int length ) ;
28 pango_layout_get_text ( PangoLayout* layout ) ;
31 pango_layout_get_size ( PangoLayout* layout, int* width, int* height ) ;
33 FUNCTION: PangoFontDescription*
34 pango_font_description_from_string ( char* str ) ;
37 pango_font_description_to_string ( PangoFontDescription* desc ) ;
40 pango_font_description_to_filename ( PangoFontDescription* desc ) ;
43 pango_layout_set_font_description ( PangoLayout* layout, PangoFontDescription* desc ) ;
45 FUNCTION: PangoFontDescription*
46 pango_layout_get_font_description ( PangoLayout* layout ) ;
49 pango_layout_get_pixel_size ( PangoLayout* layout, int* width, int* height ) ;
52 pango_font_description_free ( PangoFontDescription* desc ) ;
56 TYPEDEF: void* gpointer
59 g_object_unref ( gpointer object ) ;
62 g_free ( gpointer mem ) ;