1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
use pango::*;
use cairo::*;
use glib::*;
pub enum Struct__PangoCairoFont { }
pub type PangoCairoFont = Struct__PangoCairoFont;
pub enum Struct__PangoCairoFontMap { }
pub type PangoCairoFontMap = Struct__PangoCairoFontMap;
pub type PangoCairoShapeRendererFunc =
::std::option::Option<extern "C" fn(cr: *mut cairo_t,
attr: *mut PangoAttrShape,
do_path: gboolean, data: gpointer)
>;
extern "C" {
pub fn pango_cairo_font_map_get_type() -> GType;
pub fn pango_cairo_font_map_new() -> *mut PangoFontMap;
pub fn pango_cairo_font_map_new_for_font_type(fonttype: cairo_font_type_t)
-> *mut PangoFontMap;
pub fn pango_cairo_font_map_get_default() -> *mut PangoFontMap;
pub fn pango_cairo_font_map_set_default(fontmap: *mut PangoCairoFontMap)
;
pub fn pango_cairo_font_map_get_font_type(fontmap: *mut PangoCairoFontMap)
-> cairo_font_type_t;
pub fn pango_cairo_font_map_set_resolution(fontmap:
*mut PangoCairoFontMap,
dpi: ::libc::c_double) ;
pub fn pango_cairo_font_map_get_resolution(fontmap:
*mut PangoCairoFontMap)
-> ::libc::c_double;
pub fn pango_cairo_font_map_create_context(fontmap:
*mut PangoCairoFontMap)
-> *mut PangoContext;
pub fn pango_cairo_font_get_type() -> GType;
pub fn pango_cairo_font_get_scaled_font(font: *mut PangoCairoFont)
-> *mut cairo_scaled_font_t;
pub fn pango_cairo_update_context(cr: *mut cairo_t,
context: *mut PangoContext) ;
pub fn pango_cairo_context_set_font_options(context: *mut PangoContext,
options:
*const cairo_font_options_t)
;
pub fn pango_cairo_context_get_font_options(context: *mut PangoContext)
-> *const cairo_font_options_t;
pub fn pango_cairo_context_set_resolution(context: *mut PangoContext,
dpi: ::libc::c_double) ;
pub fn pango_cairo_context_get_resolution(context: *mut PangoContext)
-> ::libc::c_double;
pub fn pango_cairo_context_set_shape_renderer(context: *mut PangoContext,
func:
PangoCairoShapeRendererFunc,
data: gpointer,
dnotify: GDestroyNotify)
;
pub fn pango_cairo_context_get_shape_renderer(context: *mut PangoContext,
data: *mut gpointer)
-> PangoCairoShapeRendererFunc;
pub fn pango_cairo_create_context(cr: *mut cairo_t) -> *mut PangoContext;
pub fn pango_cairo_create_layout(cr: *mut cairo_t) -> *mut PangoLayout;
pub fn pango_cairo_update_layout(cr: *mut cairo_t,
layout: *mut PangoLayout) ;
pub fn pango_cairo_show_glyph_string(cr: *mut cairo_t,
font: *mut PangoFont,
glyphs: *mut PangoGlyphString) ;
pub fn pango_cairo_show_glyph_item(cr: *mut cairo_t,
text: *const ::libc::c_char,
glyph_item: *mut PangoGlyphItem) ;
pub fn pango_cairo_show_layout_line(cr: *mut cairo_t,
line: *mut PangoLayoutLine) ;
pub fn pango_cairo_show_layout(cr: *mut cairo_t, layout: *mut PangoLayout)
;
pub fn pango_cairo_show_error_underline(cr: *mut cairo_t,
x: ::libc::c_double,
y: ::libc::c_double,
width: ::libc::c_double,
height: ::libc::c_double) ;
pub fn pango_cairo_glyph_string_path(cr: *mut cairo_t,
font: *mut PangoFont,
glyphs: *mut PangoGlyphString) ;
pub fn pango_cairo_layout_line_path(cr: *mut cairo_t,
line: *mut PangoLayoutLine) ;
pub fn pango_cairo_layout_path(cr: *mut cairo_t, layout: *mut PangoLayout)
;
pub fn pango_cairo_error_underline_path(cr: *mut cairo_t,
x: ::libc::c_double,
y: ::libc::c_double,
width: ::libc::c_double,
height: ::libc::c_double) ;
}