1 ! Copyright (C) 2008 Matthew Willis.
2 ! Copyright (C) 2009 Slava Pestov.
3 ! See http://factorcode.org/license.txt for BSD license.
5 ! pangocairo bindings, from pango/pangocairo.h
6 USING: alien alien.syntax combinators system cairo.ffi ;
10 { [ os winnt? ] [ "pangocairo" "libpangocairo-1.0-0.dll" "cdecl" add-library ] }
11 { [ os macosx? ] [ "pangocairo" "/opt/local/lib/libpangocairo-1.0.0.dylib" "cdecl" add-library ] }
17 FUNCTION: PangoFontMap*
18 pango_cairo_font_map_new ( ) ;
20 FUNCTION: PangoFontMap*
21 pango_cairo_font_map_new_for_font_type ( cairo_font_type_t fonttype ) ;
23 FUNCTION: PangoFontMap*
24 pango_cairo_font_map_get_default ( ) ;
26 FUNCTION: cairo_font_type_t
27 pango_cairo_font_map_get_font_type ( PangoCairoFontMap* fontmap ) ;
30 pango_cairo_font_map_set_resolution ( PangoCairoFontMap* fontmap, double dpi ) ;
33 pango_cairo_font_map_get_resolution ( PangoCairoFontMap* fontmap ) ;
35 FUNCTION: PangoContext*
36 pango_cairo_font_map_create_context ( PangoCairoFontMap* fontmap ) ;
38 FUNCTION: cairo_scaled_font_t*
39 pango_cairo_font_get_scaled_font ( PangoCairoFont* font ) ;
41 ! Update a Pango context for the current state of a cairo context
43 pango_cairo_update_context ( cairo_t* cr, PangoContext* context ) ;
46 pango_cairo_context_set_font_options ( PangoContext* context, cairo_font_options_t* options ) ;
48 FUNCTION: cairo_font_options_t*
49 pango_cairo_context_get_font_options ( PangoContext* context ) ;
52 pango_cairo_context_set_resolution ( PangoContext* context, double dpi ) ;
55 pango_cairo_context_get_resolution ( PangoContext* context ) ;
58 FUNCTION: PangoLayout*
59 pango_cairo_create_layout ( cairo_t* cr ) ;
62 pango_cairo_update_layout ( cairo_t* cr, PangoLayout* layout ) ;
66 pango_cairo_show_glyph_string ( cairo_t* cr, PangoFont* font, PangoGlyphString* glyphs ) ;
69 pango_cairo_show_layout_line ( cairo_t* cr, PangoLayoutLine* line ) ;
72 pango_cairo_show_layout ( cairo_t* cr, PangoLayout* layout ) ;
75 pango_cairo_show_error_underline ( cairo_t* cr, double x, double y, double width, double height ) ;
79 pango_cairo_glyph_string_path ( cairo_t* cr, PangoFont* font, PangoGlyphString* glyphs ) ;
82 pango_cairo_layout_line_path ( cairo_t* cr, PangoLayoutLine* line ) ;
85 pango_cairo_layout_path ( cairo_t* cr, PangoLayout* layout ) ;
88 pango_cairo_error_underline_path ( cairo_t* cr, double x, double y, double width, double height ) ;