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
11 { [ os winnt? ] [ "pangocairo" "libpangocairo-1.0-0.dll" "cdecl" add-library ] }
12 { [ os macosx? ] [ "pangocairo" "/opt/local/lib/libpangocairo-1.0.0.dylib" "cdecl" add-library ] }
18 FUNCTION: PangoFontMap*
19 pango_cairo_font_map_new ( ) ;
21 FUNCTION: PangoFontMap*
22 pango_cairo_font_map_new_for_font_type ( cairo_font_type_t fonttype ) ;
24 FUNCTION: PangoFontMap*
25 pango_cairo_font_map_get_default ( ) ;
27 FUNCTION: cairo_font_type_t
28 pango_cairo_font_map_get_font_type ( PangoCairoFontMap* fontmap ) ;
31 pango_cairo_font_map_set_resolution ( PangoCairoFontMap* fontmap, double dpi ) ;
34 pango_cairo_font_map_get_resolution ( PangoCairoFontMap* fontmap ) ;
36 FUNCTION: PangoContext*
37 pango_cairo_font_map_create_context ( PangoCairoFontMap* fontmap ) ;
39 FUNCTION: cairo_scaled_font_t*
40 pango_cairo_font_get_scaled_font ( PangoCairoFont* font ) ;
42 ! Update a Pango context for the current state of a cairo context
44 pango_cairo_update_context ( cairo_t* cr, PangoContext* context ) ;
47 pango_cairo_context_set_font_options ( PangoContext* context, cairo_font_options_t* options ) ;
49 FUNCTION: cairo_font_options_t*
50 pango_cairo_context_get_font_options ( PangoContext* context ) ;
53 pango_cairo_context_set_resolution ( PangoContext* context, double dpi ) ;
56 pango_cairo_context_get_resolution ( PangoContext* context ) ;
59 FUNCTION: PangoLayout*
60 pango_cairo_create_layout ( cairo_t* cr ) ;
63 pango_cairo_update_layout ( cairo_t* cr, PangoLayout* layout ) ;
67 pango_cairo_show_glyph_string ( cairo_t* cr, PangoFont* font, PangoGlyphString* glyphs ) ;
70 pango_cairo_show_layout_line ( cairo_t* cr, PangoLayoutLine* line ) ;
73 pango_cairo_show_layout ( cairo_t* cr, PangoLayout* layout ) ;
76 pango_cairo_show_error_underline ( cairo_t* cr, double x, double y, double width, double height ) ;
80 pango_cairo_glyph_string_path ( cairo_t* cr, PangoFont* font, PangoGlyphString* glyphs ) ;
83 pango_cairo_layout_line_path ( cairo_t* cr, PangoLayoutLine* line ) ;
86 pango_cairo_layout_path ( cairo_t* cr, PangoLayout* layout ) ;
89 pango_cairo_error_underline_path ( cairo_t* cr, double x, double y, double width, double height ) ;