]> gitweb.factorcode.org Git - factor.git/blob - extra/pango/pango.factor
be5c257cb0c581f52ae30f617a95749cf68ec603
[factor.git] / extra / pango / pango.factor
1 ! Copyright (C) 2008 Matthew Willis.
2 ! See http://factorcode.org/license.txt for BSD license
3 USING: system
4 alien.c-types alien.syntax alien combinators ;
5 IN: pango
6
7 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
8 ! Helpful functions from other parts of pango
9 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
11 << "pango" {
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 >>
16
17 LIBRARY: pango
18
19 : PANGO_SCALE 1024 ;
20
21 FUNCTION: PangoLayout*
22 pango_layout_new ( PangoContext* context ) ;
23
24 FUNCTION: void
25 pango_layout_set_text ( PangoLayout* layout, char* text, int length ) ;
26
27 FUNCTION: char*
28 pango_layout_get_text ( PangoLayout* layout ) ;
29
30 FUNCTION: void
31 pango_layout_get_size ( PangoLayout* layout, int* width, int* height ) ;
32
33 FUNCTION: PangoFontDescription*
34 pango_font_description_from_string ( char* str ) ;
35
36 FUNCTION: char*
37 pango_font_description_to_string ( PangoFontDescription* desc ) ;
38
39 FUNCTION: char*
40 pango_font_description_to_filename ( PangoFontDescription* desc ) ;
41
42 FUNCTION: void
43 pango_layout_set_font_description ( PangoLayout* layout, PangoFontDescription* desc ) ;
44
45 FUNCTION: PangoFontDescription*
46 pango_layout_get_font_description ( PangoLayout* layout ) ;
47
48 FUNCTION: void
49 pango_layout_get_pixel_size ( PangoLayout* layout, int* width, int* height ) ;
50
51 FUNCTION: void
52 pango_font_description_free ( PangoFontDescription* desc ) ;
53
54 ! glib functions
55
56 TYPEDEF: void* gpointer
57
58 FUNCTION: void
59 g_object_unref ( gpointer object ) ;
60
61 FUNCTION: void
62 g_free ( gpointer mem ) ;