pango 1.2.6-x86-mingw32 → 2.0.0-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +15 -11
- data/lib/1.9/pango.so +0 -0
- data/lib/2.0/pango.so +0 -0
- data/lib/pango.rb +10 -1
- data/vendor/local/bin/libpango-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
- data/vendor/local/bin/pango-querymodules.exe +0 -0
- data/vendor/local/bin/pango-view.exe +0 -0
- data/vendor/local/lib/girepository-1.0/Pango-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/PangoCairo-1.0.typelib +0 -0
- data/vendor/local/lib/libpango-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll.a +0 -0
- data/vendor/local/share/gir-1.0/Pango-1.0.gir +10392 -0
- data/vendor/local/share/gir-1.0/PangoCairo-1.0.gir +764 -0
- metadata +8 -4
@@ -0,0 +1,764 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!-- This file was automatically generated from C sources - DO NOT EDIT!
|
3
|
+
To affect the contents of this file, edit the original C definitions,
|
4
|
+
and/or use gtk-doc annotations. -->
|
5
|
+
<repository version="1.2"
|
6
|
+
xmlns="http://www.gtk.org/introspection/core/1.0"
|
7
|
+
xmlns:c="http://www.gtk.org/introspection/c/1.0"
|
8
|
+
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
|
9
|
+
<include name="GObject" version="2.0"/>
|
10
|
+
<include name="Pango" version="1.0"/>
|
11
|
+
<include name="cairo" version="1.0"/>
|
12
|
+
<package name="pangocairo"/>
|
13
|
+
<c:include name="pango/pangocairo.h"/>
|
14
|
+
<namespace name="PangoCairo"
|
15
|
+
version="1.0"
|
16
|
+
shared-library="libpango-1.0-0.dll,libpangocairo-1.0-0.dll"
|
17
|
+
c:identifier-prefixes="PangoCairo"
|
18
|
+
c:symbol-prefixes="pango_cairo">
|
19
|
+
<interface name="Font"
|
20
|
+
c:symbol-prefix="font"
|
21
|
+
c:type="PangoCairoFont"
|
22
|
+
version="1.18"
|
23
|
+
glib:type-name="PangoCairoFont"
|
24
|
+
glib:get-type="pango_cairo_font_get_type">
|
25
|
+
<doc xml:whitespace="preserve">#PangoCairoFont is an interface exported by fonts for
|
26
|
+
use with Cairo. The actual type of the font will depend
|
27
|
+
on the particular font technology Cairo was compiled to use.</doc>
|
28
|
+
<prerequisite name="Pango.Font"/>
|
29
|
+
<method name="get_scaled_font"
|
30
|
+
c:identifier="pango_cairo_font_get_scaled_font"
|
31
|
+
version="1.18">
|
32
|
+
<doc xml:whitespace="preserve">Gets the #cairo_scaled_font_t used by @font.
|
33
|
+
The scaled font can be referenced and kept using
|
34
|
+
cairo_scaled_font_reference().</doc>
|
35
|
+
<return-value transfer-ownership="full">
|
36
|
+
<doc xml:whitespace="preserve">the #cairo_scaled_font_t used by @font, or %NULL if @font is %NULL.</doc>
|
37
|
+
<type name="cairo.ScaledFont" c:type="cairo_scaled_font_t*"/>
|
38
|
+
</return-value>
|
39
|
+
<parameters>
|
40
|
+
<instance-parameter name="font" transfer-ownership="none">
|
41
|
+
<doc xml:whitespace="preserve">a #PangoFont from a #PangoCairoFontMap</doc>
|
42
|
+
<type name="Font" c:type="PangoCairoFont*"/>
|
43
|
+
</instance-parameter>
|
44
|
+
</parameters>
|
45
|
+
</method>
|
46
|
+
</interface>
|
47
|
+
<interface name="FontMap"
|
48
|
+
c:symbol-prefix="font_map"
|
49
|
+
c:type="PangoCairoFontMap"
|
50
|
+
version="1.10"
|
51
|
+
glib:type-name="PangoCairoFontMap"
|
52
|
+
glib:get-type="pango_cairo_font_map_get_type">
|
53
|
+
<doc xml:whitespace="preserve">#PangoCairoFontMap is an interface exported by font maps for
|
54
|
+
use with Cairo. The actual type of the font map will depend
|
55
|
+
on the particular font technology Cairo was compiled to use.</doc>
|
56
|
+
<prerequisite name="Pango.FontMap"/>
|
57
|
+
<function name="get_default"
|
58
|
+
c:identifier="pango_cairo_font_map_get_default"
|
59
|
+
version="1.10">
|
60
|
+
<doc xml:whitespace="preserve">Gets a default #PangoCairoFontMap to use with Cairo.
|
61
|
+
|
62
|
+
Note that the type of the returned object will depend
|
63
|
+
on the particular font backend Cairo was compiled to use;
|
64
|
+
You generally should only use the #PangoFontMap and
|
65
|
+
#PangoCairoFontMap interfaces on the returned object.
|
66
|
+
|
67
|
+
The default Cairo fontmap can be changed by using
|
68
|
+
pango_cairo_font_map_set_default(). This can be used to
|
69
|
+
change the Cairo font backend that the default fontmap
|
70
|
+
uses for example.
|
71
|
+
|
72
|
+
Note that since Pango 1.32.6, the default fontmap is per-thread.
|
73
|
+
Each thread gets its own default fontmap. In this way,
|
74
|
+
PangoCairo can be used safely from multiple threads.</doc>
|
75
|
+
<return-value transfer-ownership="none">
|
76
|
+
<doc xml:whitespace="preserve">the default PangoCairo fontmap for the current thread. This object is owned by Pango and must not be freed.</doc>
|
77
|
+
<type name="Pango.FontMap" c:type="PangoFontMap*"/>
|
78
|
+
</return-value>
|
79
|
+
</function>
|
80
|
+
<function name="new"
|
81
|
+
c:identifier="pango_cairo_font_map_new"
|
82
|
+
version="1.10">
|
83
|
+
<doc xml:whitespace="preserve">Creates a new #PangoCairoFontMap object; a fontmap is used
|
84
|
+
to cache information about available fonts, and holds
|
85
|
+
certain global parameters such as the resolution.
|
86
|
+
In most cases, you can use pango_cairo_font_map_get_default()
|
87
|
+
instead.
|
88
|
+
|
89
|
+
Note that the type of the returned object will depend
|
90
|
+
on the particular font backend Cairo was compiled to use;
|
91
|
+
You generally should only use the #PangoFontMap and
|
92
|
+
#PangoCairoFontMap interfaces on the returned object.</doc>
|
93
|
+
<return-value transfer-ownership="full">
|
94
|
+
<doc xml:whitespace="preserve">the newly allocated #PangoFontMap, which should be freed with g_object_unref().</doc>
|
95
|
+
<type name="Pango.FontMap" c:type="PangoFontMap*"/>
|
96
|
+
</return-value>
|
97
|
+
</function>
|
98
|
+
<function name="new_for_font_type"
|
99
|
+
c:identifier="pango_cairo_font_map_new_for_font_type"
|
100
|
+
version="1.18">
|
101
|
+
<doc xml:whitespace="preserve">Creates a new #PangoCairoFontMap object of the type suitable
|
102
|
+
to be used with cairo font backend of type @fonttype.
|
103
|
+
|
104
|
+
In most cases one should simply use @pango_cairo_font_map_new(),
|
105
|
+
or in fact in most of those cases, just use
|
106
|
+
@pango_cairo_font_map_get_default().</doc>
|
107
|
+
<return-value transfer-ownership="full">
|
108
|
+
<doc xml:whitespace="preserve">the newly allocated #PangoFontMap of suitable type which should be freed with g_object_unref(), or %NULL if the requested cairo font backend is not supported / compiled in.</doc>
|
109
|
+
<type name="Pango.FontMap" c:type="PangoFontMap*"/>
|
110
|
+
</return-value>
|
111
|
+
<parameters>
|
112
|
+
<parameter name="fonttype" transfer-ownership="none">
|
113
|
+
<doc xml:whitespace="preserve">desired #cairo_font_type_t</doc>
|
114
|
+
<type name="cairo.FontType" c:type="cairo_font_type_t"/>
|
115
|
+
</parameter>
|
116
|
+
</parameters>
|
117
|
+
</function>
|
118
|
+
<method name="create_context"
|
119
|
+
c:identifier="pango_cairo_font_map_create_context"
|
120
|
+
version="1.10"
|
121
|
+
introspectable="0"
|
122
|
+
deprecated="Use pango_font_map_create_context() instead."
|
123
|
+
deprecated-version="1.22">
|
124
|
+
<doc xml:whitespace="preserve">Create a #PangoContext for the given fontmap.</doc>
|
125
|
+
<return-value>
|
126
|
+
<doc xml:whitespace="preserve">the newly created context; free with g_object_unref().</doc>
|
127
|
+
<type name="Pango.Context" c:type="PangoContext*"/>
|
128
|
+
</return-value>
|
129
|
+
<parameters>
|
130
|
+
<instance-parameter name="fontmap" transfer-ownership="none">
|
131
|
+
<doc xml:whitespace="preserve">a #PangoCairoFontMap</doc>
|
132
|
+
<type name="FontMap" c:type="PangoCairoFontMap*"/>
|
133
|
+
</instance-parameter>
|
134
|
+
</parameters>
|
135
|
+
</method>
|
136
|
+
<method name="get_font_type"
|
137
|
+
c:identifier="pango_cairo_font_map_get_font_type"
|
138
|
+
version="1.18">
|
139
|
+
<doc xml:whitespace="preserve">Gets the type of Cairo font backend that @fontmap uses.</doc>
|
140
|
+
<return-value transfer-ownership="full">
|
141
|
+
<doc xml:whitespace="preserve">the #cairo_font_type_t cairo font backend type</doc>
|
142
|
+
<type name="cairo.FontType" c:type="cairo_font_type_t"/>
|
143
|
+
</return-value>
|
144
|
+
<parameters>
|
145
|
+
<instance-parameter name="fontmap" transfer-ownership="none">
|
146
|
+
<doc xml:whitespace="preserve">a #PangoCairoFontMap</doc>
|
147
|
+
<type name="FontMap" c:type="PangoCairoFontMap*"/>
|
148
|
+
</instance-parameter>
|
149
|
+
</parameters>
|
150
|
+
</method>
|
151
|
+
<method name="get_resolution"
|
152
|
+
c:identifier="pango_cairo_font_map_get_resolution"
|
153
|
+
version="1.10">
|
154
|
+
<doc xml:whitespace="preserve">Gets the resolution for the fontmap. See pango_cairo_font_map_set_resolution()</doc>
|
155
|
+
<return-value transfer-ownership="none">
|
156
|
+
<doc xml:whitespace="preserve">the resolution in "dots per inch"</doc>
|
157
|
+
<type name="gdouble" c:type="double"/>
|
158
|
+
</return-value>
|
159
|
+
<parameters>
|
160
|
+
<instance-parameter name="fontmap" transfer-ownership="none">
|
161
|
+
<doc xml:whitespace="preserve">a #PangoCairoFontMap</doc>
|
162
|
+
<type name="FontMap" c:type="PangoCairoFontMap*"/>
|
163
|
+
</instance-parameter>
|
164
|
+
</parameters>
|
165
|
+
</method>
|
166
|
+
<method name="set_default"
|
167
|
+
c:identifier="pango_cairo_font_map_set_default"
|
168
|
+
version="1.22">
|
169
|
+
<doc xml:whitespace="preserve">Sets a default #PangoCairoFontMap to use with Cairo.
|
170
|
+
|
171
|
+
This can be used to change the Cairo font backend that the
|
172
|
+
default fontmap uses for example. The old default font map
|
173
|
+
is unreffed and the new font map referenced.
|
174
|
+
|
175
|
+
Note that since Pango 1.32.6, the default fontmap is per-thread.
|
176
|
+
This function only changes the default fontmap for
|
177
|
+
the current thread. Default fontmaps of exisiting threads
|
178
|
+
are not changed. Default fontmaps of any new threads will
|
179
|
+
still be created using pango_cairo_font_map_new().
|
180
|
+
|
181
|
+
A value of %NULL for @fontmap will cause the current default
|
182
|
+
font map to be released and a new default font
|
183
|
+
map to be created on demand, using pango_cairo_font_map_new().</doc>
|
184
|
+
<return-value transfer-ownership="none">
|
185
|
+
<type name="none" c:type="void"/>
|
186
|
+
</return-value>
|
187
|
+
<parameters>
|
188
|
+
<instance-parameter name="fontmap" transfer-ownership="none">
|
189
|
+
<doc xml:whitespace="preserve">The new default font map, or %NULL</doc>
|
190
|
+
<type name="FontMap" c:type="PangoCairoFontMap*"/>
|
191
|
+
</instance-parameter>
|
192
|
+
</parameters>
|
193
|
+
</method>
|
194
|
+
<method name="set_resolution"
|
195
|
+
c:identifier="pango_cairo_font_map_set_resolution"
|
196
|
+
version="1.10">
|
197
|
+
<doc xml:whitespace="preserve">Sets the resolution for the fontmap. This is a scale factor between
|
198
|
+
points specified in a #PangoFontDescription and Cairo units. The
|
199
|
+
default value is 96, meaning that a 10 point font will be 13
|
200
|
+
units high. (10 * 96. / 72. = 13.3).</doc>
|
201
|
+
<return-value transfer-ownership="none">
|
202
|
+
<type name="none" c:type="void"/>
|
203
|
+
</return-value>
|
204
|
+
<parameters>
|
205
|
+
<instance-parameter name="fontmap" transfer-ownership="none">
|
206
|
+
<doc xml:whitespace="preserve">a #PangoCairoFontMap</doc>
|
207
|
+
<type name="FontMap" c:type="PangoCairoFontMap*"/>
|
208
|
+
</instance-parameter>
|
209
|
+
<parameter name="dpi" transfer-ownership="none">
|
210
|
+
<doc xml:whitespace="preserve">the resolution in "dots per inch". (Physical inches aren't actually involved; the terminology is conventional.)</doc>
|
211
|
+
<type name="gdouble" c:type="double"/>
|
212
|
+
</parameter>
|
213
|
+
</parameters>
|
214
|
+
</method>
|
215
|
+
</interface>
|
216
|
+
<callback name="ShapeRendererFunc" c:type="PangoCairoShapeRendererFunc">
|
217
|
+
<return-value transfer-ownership="none">
|
218
|
+
<type name="none" c:type="void"/>
|
219
|
+
</return-value>
|
220
|
+
<parameters>
|
221
|
+
<parameter name="cr" transfer-ownership="none">
|
222
|
+
<type name="cairo.Context" c:type="cairo_t*"/>
|
223
|
+
</parameter>
|
224
|
+
<parameter name="attr" transfer-ownership="none">
|
225
|
+
<type name="Pango.AttrShape" c:type="PangoAttrShape*"/>
|
226
|
+
</parameter>
|
227
|
+
<parameter name="do_path" transfer-ownership="none">
|
228
|
+
<type name="gboolean" c:type="gboolean"/>
|
229
|
+
</parameter>
|
230
|
+
<parameter name="data" transfer-ownership="none">
|
231
|
+
<type name="gpointer" c:type="gpointer"/>
|
232
|
+
</parameter>
|
233
|
+
</parameters>
|
234
|
+
</callback>
|
235
|
+
<class name="Win32FontMap"
|
236
|
+
c:symbol-prefix="win32_font_map"
|
237
|
+
c:type="PangoCairoWin32FontMap"
|
238
|
+
parent="Pango.FontMap"
|
239
|
+
glib:type-name="PangoCairoWin32FontMap"
|
240
|
+
glib:get-type="pango_cairo_win32_font_map_get_type">
|
241
|
+
<implements name="FontMap"/>
|
242
|
+
<field name="parent_instance" introspectable="0">
|
243
|
+
<type c:type="PangoWin32FontMap"/>
|
244
|
+
</field>
|
245
|
+
<field name="serial">
|
246
|
+
<type name="guint" c:type="guint"/>
|
247
|
+
</field>
|
248
|
+
<field name="dpi">
|
249
|
+
<type name="gdouble" c:type="double"/>
|
250
|
+
</field>
|
251
|
+
</class>
|
252
|
+
<function name="context_get_font_options"
|
253
|
+
c:identifier="pango_cairo_context_get_font_options"
|
254
|
+
version="1.10">
|
255
|
+
<doc xml:whitespace="preserve">Retrieves any font rendering options previously set with
|
256
|
+
pango_cairo_font_map_set_font_options(). This function does not report options
|
257
|
+
that are derived from the target surface by pango_cairo_update_context()</doc>
|
258
|
+
<return-value transfer-ownership="none">
|
259
|
+
<doc xml:whitespace="preserve">the font options previously set on the context, or %NULL if no options have been set. This value is owned by the context and must not be modified or freed.</doc>
|
260
|
+
<type name="cairo.FontOptions" c:type="const cairo_font_options_t*"/>
|
261
|
+
</return-value>
|
262
|
+
<parameters>
|
263
|
+
<parameter name="context" transfer-ownership="none">
|
264
|
+
<doc xml:whitespace="preserve">a #PangoContext, from a pangocairo font map</doc>
|
265
|
+
<type name="Pango.Context" c:type="PangoContext*"/>
|
266
|
+
</parameter>
|
267
|
+
</parameters>
|
268
|
+
</function>
|
269
|
+
<function name="context_get_resolution"
|
270
|
+
c:identifier="pango_cairo_context_get_resolution"
|
271
|
+
version="1.10">
|
272
|
+
<doc xml:whitespace="preserve">Gets the resolution for the context. See pango_cairo_context_set_resolution()</doc>
|
273
|
+
<return-value transfer-ownership="none">
|
274
|
+
<doc xml:whitespace="preserve">the resolution in "dots per inch". A negative value will be returned if no resolution has previously been set.</doc>
|
275
|
+
<type name="gdouble" c:type="double"/>
|
276
|
+
</return-value>
|
277
|
+
<parameters>
|
278
|
+
<parameter name="context" transfer-ownership="none">
|
279
|
+
<doc xml:whitespace="preserve">a #PangoContext, from a pangocairo font map</doc>
|
280
|
+
<type name="Pango.Context" c:type="PangoContext*"/>
|
281
|
+
</parameter>
|
282
|
+
</parameters>
|
283
|
+
</function>
|
284
|
+
<function name="context_get_shape_renderer"
|
285
|
+
c:identifier="pango_cairo_context_get_shape_renderer"
|
286
|
+
version="1.18"
|
287
|
+
introspectable="0">
|
288
|
+
<doc xml:whitespace="preserve">Sets callback function for context to use for rendering attributes
|
289
|
+
of type %PANGO_ATTR_SHAPE. See #PangoCairoShapeRendererFunc for
|
290
|
+
details.
|
291
|
+
|
292
|
+
Retrieves callback function and associated user data for rendering
|
293
|
+
attributes of type %PANGO_ATTR_SHAPE as set by
|
294
|
+
pango_cairo_context_set_shape_renderer(), if any.</doc>
|
295
|
+
<return-value>
|
296
|
+
<doc xml:whitespace="preserve">the shape rendering callback previously set on the context, or %NULL if no shape rendering callback have been set.</doc>
|
297
|
+
<type name="ShapeRendererFunc" c:type="PangoCairoShapeRendererFunc"/>
|
298
|
+
</return-value>
|
299
|
+
<parameters>
|
300
|
+
<parameter name="context" transfer-ownership="none">
|
301
|
+
<doc xml:whitespace="preserve">a #PangoContext, from a pangocairo font map</doc>
|
302
|
+
<type name="Pango.Context" c:type="PangoContext*"/>
|
303
|
+
</parameter>
|
304
|
+
<parameter name="data" transfer-ownership="none">
|
305
|
+
<doc xml:whitespace="preserve">Pointer to #gpointer to return user data</doc>
|
306
|
+
<type name="gpointer" c:type="gpointer*"/>
|
307
|
+
</parameter>
|
308
|
+
</parameters>
|
309
|
+
</function>
|
310
|
+
<function name="context_set_font_options"
|
311
|
+
c:identifier="pango_cairo_context_set_font_options"
|
312
|
+
version="1.10">
|
313
|
+
<doc xml:whitespace="preserve">Sets the font options used when rendering text with this context.
|
314
|
+
These options override any options that pango_cairo_update_context()
|
315
|
+
derives from the target surface.</doc>
|
316
|
+
<return-value transfer-ownership="none">
|
317
|
+
<type name="none" c:type="void"/>
|
318
|
+
</return-value>
|
319
|
+
<parameters>
|
320
|
+
<parameter name="context" transfer-ownership="none">
|
321
|
+
<doc xml:whitespace="preserve">a #PangoContext, from a pangocairo font map</doc>
|
322
|
+
<type name="Pango.Context" c:type="PangoContext*"/>
|
323
|
+
</parameter>
|
324
|
+
<parameter name="options" transfer-ownership="none">
|
325
|
+
<doc xml:whitespace="preserve">a #cairo_font_options_t, or %NULL to unset any previously set options. A copy is made.</doc>
|
326
|
+
<type name="cairo.FontOptions" c:type="const cairo_font_options_t*"/>
|
327
|
+
</parameter>
|
328
|
+
</parameters>
|
329
|
+
</function>
|
330
|
+
<function name="context_set_resolution"
|
331
|
+
c:identifier="pango_cairo_context_set_resolution"
|
332
|
+
version="1.10">
|
333
|
+
<doc xml:whitespace="preserve">Sets the resolution for the context. This is a scale factor between
|
334
|
+
points specified in a #PangoFontDescription and Cairo units. The
|
335
|
+
default value is 96, meaning that a 10 point font will be 13
|
336
|
+
units high. (10 * 96. / 72. = 13.3).</doc>
|
337
|
+
<return-value transfer-ownership="none">
|
338
|
+
<type name="none" c:type="void"/>
|
339
|
+
</return-value>
|
340
|
+
<parameters>
|
341
|
+
<parameter name="context" transfer-ownership="none">
|
342
|
+
<doc xml:whitespace="preserve">a #PangoContext, from a pangocairo font map</doc>
|
343
|
+
<type name="Pango.Context" c:type="PangoContext*"/>
|
344
|
+
</parameter>
|
345
|
+
<parameter name="dpi" transfer-ownership="none">
|
346
|
+
<doc xml:whitespace="preserve">the resolution in "dots per inch". (Physical inches aren't actually involved; the terminology is conventional.) A 0 or negative value means to use the resolution from the font map.</doc>
|
347
|
+
<type name="gdouble" c:type="double"/>
|
348
|
+
</parameter>
|
349
|
+
</parameters>
|
350
|
+
</function>
|
351
|
+
<function name="context_set_shape_renderer"
|
352
|
+
c:identifier="pango_cairo_context_set_shape_renderer"
|
353
|
+
version="1.18">
|
354
|
+
<doc xml:whitespace="preserve">Sets callback function for context to use for rendering attributes
|
355
|
+
of type %PANGO_ATTR_SHAPE. See #PangoCairoShapeRendererFunc for
|
356
|
+
details.</doc>
|
357
|
+
<return-value transfer-ownership="none">
|
358
|
+
<type name="none" c:type="void"/>
|
359
|
+
</return-value>
|
360
|
+
<parameters>
|
361
|
+
<parameter name="context" transfer-ownership="none">
|
362
|
+
<doc xml:whitespace="preserve">a #PangoContext, from a pangocairo font map</doc>
|
363
|
+
<type name="Pango.Context" c:type="PangoContext*"/>
|
364
|
+
</parameter>
|
365
|
+
<parameter name="func"
|
366
|
+
transfer-ownership="none"
|
367
|
+
scope="notified"
|
368
|
+
closure="2"
|
369
|
+
destroy="3">
|
370
|
+
<doc xml:whitespace="preserve">Callback function for rendering attributes of type %PANGO_ATTR_SHAPE, or %NULL to disable shape rendering.</doc>
|
371
|
+
<type name="ShapeRendererFunc" c:type="PangoCairoShapeRendererFunc"/>
|
372
|
+
</parameter>
|
373
|
+
<parameter name="data" transfer-ownership="none">
|
374
|
+
<doc xml:whitespace="preserve">User data that will be passed to @func.</doc>
|
375
|
+
<type name="gpointer" c:type="gpointer"/>
|
376
|
+
</parameter>
|
377
|
+
<parameter name="dnotify" transfer-ownership="none" scope="async">
|
378
|
+
<doc xml:whitespace="preserve">Callback that will be called when the context is freed to release @data, or %NULL.</doc>
|
379
|
+
<type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
|
380
|
+
</parameter>
|
381
|
+
</parameters>
|
382
|
+
</function>
|
383
|
+
<function name="create_context"
|
384
|
+
c:identifier="pango_cairo_create_context"
|
385
|
+
version="1.22">
|
386
|
+
<doc xml:whitespace="preserve">Creates a context object set up to match the current transformation
|
387
|
+
and target surface of the Cairo context. This context can then be
|
388
|
+
used to create a layout using pango_layout_new().
|
389
|
+
|
390
|
+
This function is a convenience function that creates a context using
|
391
|
+
the default font map, then updates it to @cr. If you just need to
|
392
|
+
create a layout for use with @cr and do not need to access #PangoContext
|
393
|
+
directly, you can use pango_cairo_create_layout() instead.</doc>
|
394
|
+
<return-value transfer-ownership="full">
|
395
|
+
<doc xml:whitespace="preserve">the newly created #PangoContext. Free with g_object_unref().</doc>
|
396
|
+
<type name="Pango.Context" c:type="PangoContext*"/>
|
397
|
+
</return-value>
|
398
|
+
<parameters>
|
399
|
+
<parameter name="cr" transfer-ownership="none">
|
400
|
+
<doc xml:whitespace="preserve">a Cairo context</doc>
|
401
|
+
<type name="cairo.Context" c:type="cairo_t*"/>
|
402
|
+
</parameter>
|
403
|
+
</parameters>
|
404
|
+
</function>
|
405
|
+
<function name="create_layout"
|
406
|
+
c:identifier="pango_cairo_create_layout"
|
407
|
+
version="1.10">
|
408
|
+
<doc xml:whitespace="preserve">Creates a layout object set up to match the current transformation
|
409
|
+
and target surface of the Cairo context. This layout can then be
|
410
|
+
used for text measurement with functions like
|
411
|
+
pango_layout_get_size() or drawing with functions like
|
412
|
+
pango_cairo_show_layout(). If you change the transformation
|
413
|
+
or target surface for @cr, you need to call pango_cairo_update_layout()
|
414
|
+
|
415
|
+
This function is the most convenient way to use Cairo with Pango,
|
416
|
+
however it is slightly inefficient since it creates a separate
|
417
|
+
#PangoContext object for each layout. This might matter in an
|
418
|
+
application that was laying out large amounts of text.</doc>
|
419
|
+
<return-value transfer-ownership="full">
|
420
|
+
<doc xml:whitespace="preserve">the newly created #PangoLayout. Free with g_object_unref().</doc>
|
421
|
+
<type name="Pango.Layout" c:type="PangoLayout*"/>
|
422
|
+
</return-value>
|
423
|
+
<parameters>
|
424
|
+
<parameter name="cr" transfer-ownership="none">
|
425
|
+
<doc xml:whitespace="preserve">a Cairo context</doc>
|
426
|
+
<type name="cairo.Context" c:type="cairo_t*"/>
|
427
|
+
</parameter>
|
428
|
+
</parameters>
|
429
|
+
</function>
|
430
|
+
<function name="error_underline_path"
|
431
|
+
c:identifier="pango_cairo_error_underline_path"
|
432
|
+
version="1.14">
|
433
|
+
<doc xml:whitespace="preserve">Add a squiggly line to the current path in the specified cairo context that
|
434
|
+
approximately covers the given rectangle in the style of an underline used
|
435
|
+
to indicate a spelling error. (The width of the underline is rounded to an
|
436
|
+
integer number of up/down segments and the resulting rectangle is centered
|
437
|
+
in the original rectangle)</doc>
|
438
|
+
<return-value transfer-ownership="none">
|
439
|
+
<type name="none" c:type="void"/>
|
440
|
+
</return-value>
|
441
|
+
<parameters>
|
442
|
+
<parameter name="cr" transfer-ownership="none">
|
443
|
+
<doc xml:whitespace="preserve">a Cairo context</doc>
|
444
|
+
<type name="cairo.Context" c:type="cairo_t*"/>
|
445
|
+
</parameter>
|
446
|
+
<parameter name="x" transfer-ownership="none">
|
447
|
+
<doc xml:whitespace="preserve">The X coordinate of one corner of the rectangle</doc>
|
448
|
+
<type name="gdouble" c:type="double"/>
|
449
|
+
</parameter>
|
450
|
+
<parameter name="y" transfer-ownership="none">
|
451
|
+
<doc xml:whitespace="preserve">The Y coordinate of one corner of the rectangle</doc>
|
452
|
+
<type name="gdouble" c:type="double"/>
|
453
|
+
</parameter>
|
454
|
+
<parameter name="width" transfer-ownership="none">
|
455
|
+
<doc xml:whitespace="preserve">Non-negative width of the rectangle</doc>
|
456
|
+
<type name="gdouble" c:type="double"/>
|
457
|
+
</parameter>
|
458
|
+
<parameter name="height" transfer-ownership="none">
|
459
|
+
<doc xml:whitespace="preserve">Non-negative height of the rectangle</doc>
|
460
|
+
<type name="gdouble" c:type="double"/>
|
461
|
+
</parameter>
|
462
|
+
</parameters>
|
463
|
+
</function>
|
464
|
+
<function name="font_map_get_default"
|
465
|
+
c:identifier="pango_cairo_font_map_get_default"
|
466
|
+
moved-to="FontMap.get_default"
|
467
|
+
version="1.10">
|
468
|
+
<doc xml:whitespace="preserve">Gets a default #PangoCairoFontMap to use with Cairo.
|
469
|
+
|
470
|
+
Note that the type of the returned object will depend
|
471
|
+
on the particular font backend Cairo was compiled to use;
|
472
|
+
You generally should only use the #PangoFontMap and
|
473
|
+
#PangoCairoFontMap interfaces on the returned object.
|
474
|
+
|
475
|
+
The default Cairo fontmap can be changed by using
|
476
|
+
pango_cairo_font_map_set_default(). This can be used to
|
477
|
+
change the Cairo font backend that the default fontmap
|
478
|
+
uses for example.
|
479
|
+
|
480
|
+
Note that since Pango 1.32.6, the default fontmap is per-thread.
|
481
|
+
Each thread gets its own default fontmap. In this way,
|
482
|
+
PangoCairo can be used safely from multiple threads.</doc>
|
483
|
+
<return-value transfer-ownership="none">
|
484
|
+
<doc xml:whitespace="preserve">the default PangoCairo fontmap for the current thread. This object is owned by Pango and must not be freed.</doc>
|
485
|
+
<type name="Pango.FontMap" c:type="PangoFontMap*"/>
|
486
|
+
</return-value>
|
487
|
+
</function>
|
488
|
+
<function name="font_map_new"
|
489
|
+
c:identifier="pango_cairo_font_map_new"
|
490
|
+
moved-to="FontMap.new"
|
491
|
+
version="1.10">
|
492
|
+
<doc xml:whitespace="preserve">Creates a new #PangoCairoFontMap object; a fontmap is used
|
493
|
+
to cache information about available fonts, and holds
|
494
|
+
certain global parameters such as the resolution.
|
495
|
+
In most cases, you can use pango_cairo_font_map_get_default()
|
496
|
+
instead.
|
497
|
+
|
498
|
+
Note that the type of the returned object will depend
|
499
|
+
on the particular font backend Cairo was compiled to use;
|
500
|
+
You generally should only use the #PangoFontMap and
|
501
|
+
#PangoCairoFontMap interfaces on the returned object.</doc>
|
502
|
+
<return-value transfer-ownership="full">
|
503
|
+
<doc xml:whitespace="preserve">the newly allocated #PangoFontMap, which should be freed with g_object_unref().</doc>
|
504
|
+
<type name="Pango.FontMap" c:type="PangoFontMap*"/>
|
505
|
+
</return-value>
|
506
|
+
</function>
|
507
|
+
<function name="font_map_new_for_font_type"
|
508
|
+
c:identifier="pango_cairo_font_map_new_for_font_type"
|
509
|
+
moved-to="FontMap.new_for_font_type"
|
510
|
+
version="1.18">
|
511
|
+
<doc xml:whitespace="preserve">Creates a new #PangoCairoFontMap object of the type suitable
|
512
|
+
to be used with cairo font backend of type @fonttype.
|
513
|
+
|
514
|
+
In most cases one should simply use @pango_cairo_font_map_new(),
|
515
|
+
or in fact in most of those cases, just use
|
516
|
+
@pango_cairo_font_map_get_default().</doc>
|
517
|
+
<return-value transfer-ownership="full">
|
518
|
+
<doc xml:whitespace="preserve">the newly allocated #PangoFontMap of suitable type which should be freed with g_object_unref(), or %NULL if the requested cairo font backend is not supported / compiled in.</doc>
|
519
|
+
<type name="Pango.FontMap" c:type="PangoFontMap*"/>
|
520
|
+
</return-value>
|
521
|
+
<parameters>
|
522
|
+
<parameter name="fonttype" transfer-ownership="none">
|
523
|
+
<doc xml:whitespace="preserve">desired #cairo_font_type_t</doc>
|
524
|
+
<type name="cairo.FontType" c:type="cairo_font_type_t"/>
|
525
|
+
</parameter>
|
526
|
+
</parameters>
|
527
|
+
</function>
|
528
|
+
<function name="glyph_string_path"
|
529
|
+
c:identifier="pango_cairo_glyph_string_path"
|
530
|
+
version="1.10">
|
531
|
+
<doc xml:whitespace="preserve">Adds the glyphs in @glyphs to the current path in the specified
|
532
|
+
cairo context. The origin of the glyphs (the left edge of the baseline)
|
533
|
+
will be at the current point of the cairo context.</doc>
|
534
|
+
<return-value transfer-ownership="none">
|
535
|
+
<type name="none" c:type="void"/>
|
536
|
+
</return-value>
|
537
|
+
<parameters>
|
538
|
+
<parameter name="cr" transfer-ownership="none">
|
539
|
+
<doc xml:whitespace="preserve">a Cairo context</doc>
|
540
|
+
<type name="cairo.Context" c:type="cairo_t*"/>
|
541
|
+
</parameter>
|
542
|
+
<parameter name="font" transfer-ownership="none">
|
543
|
+
<doc xml:whitespace="preserve">a #PangoFont from a #PangoCairoFontMap</doc>
|
544
|
+
<type name="Pango.Font" c:type="PangoFont*"/>
|
545
|
+
</parameter>
|
546
|
+
<parameter name="glyphs" transfer-ownership="none">
|
547
|
+
<doc xml:whitespace="preserve">a #PangoGlyphString</doc>
|
548
|
+
<type name="Pango.GlyphString" c:type="PangoGlyphString*"/>
|
549
|
+
</parameter>
|
550
|
+
</parameters>
|
551
|
+
</function>
|
552
|
+
<function name="layout_line_path"
|
553
|
+
c:identifier="pango_cairo_layout_line_path"
|
554
|
+
version="1.10">
|
555
|
+
<doc xml:whitespace="preserve">Adds the text in #PangoLayoutLine to the current path in the
|
556
|
+
specified cairo context. The origin of the glyphs (the left edge
|
557
|
+
of the line) will be at the current point of the cairo context.</doc>
|
558
|
+
<return-value transfer-ownership="none">
|
559
|
+
<type name="none" c:type="void"/>
|
560
|
+
</return-value>
|
561
|
+
<parameters>
|
562
|
+
<parameter name="cr" transfer-ownership="none">
|
563
|
+
<doc xml:whitespace="preserve">a Cairo context</doc>
|
564
|
+
<type name="cairo.Context" c:type="cairo_t*"/>
|
565
|
+
</parameter>
|
566
|
+
<parameter name="line" transfer-ownership="none">
|
567
|
+
<doc xml:whitespace="preserve">a #PangoLayoutLine</doc>
|
568
|
+
<type name="Pango.LayoutLine" c:type="PangoLayoutLine*"/>
|
569
|
+
</parameter>
|
570
|
+
</parameters>
|
571
|
+
</function>
|
572
|
+
<function name="layout_path"
|
573
|
+
c:identifier="pango_cairo_layout_path"
|
574
|
+
version="1.10">
|
575
|
+
<doc xml:whitespace="preserve">Adds the text in a #PangoLayout to the current path in the
|
576
|
+
specified cairo context. The top-left corner of the #PangoLayout
|
577
|
+
will be at the current point of the cairo context.</doc>
|
578
|
+
<return-value transfer-ownership="none">
|
579
|
+
<type name="none" c:type="void"/>
|
580
|
+
</return-value>
|
581
|
+
<parameters>
|
582
|
+
<parameter name="cr" transfer-ownership="none">
|
583
|
+
<doc xml:whitespace="preserve">a Cairo context</doc>
|
584
|
+
<type name="cairo.Context" c:type="cairo_t*"/>
|
585
|
+
</parameter>
|
586
|
+
<parameter name="layout" transfer-ownership="none">
|
587
|
+
<doc xml:whitespace="preserve">a Pango layout</doc>
|
588
|
+
<type name="Pango.Layout" c:type="PangoLayout*"/>
|
589
|
+
</parameter>
|
590
|
+
</parameters>
|
591
|
+
</function>
|
592
|
+
<function name="show_error_underline"
|
593
|
+
c:identifier="pango_cairo_show_error_underline"
|
594
|
+
version="1.14">
|
595
|
+
<doc xml:whitespace="preserve">Draw a squiggly line in the specified cairo context that approximately
|
596
|
+
covers the given rectangle in the style of an underline used to indicate a
|
597
|
+
spelling error. (The width of the underline is rounded to an integer
|
598
|
+
number of up/down segments and the resulting rectangle is centered in the
|
599
|
+
original rectangle)</doc>
|
600
|
+
<return-value transfer-ownership="none">
|
601
|
+
<type name="none" c:type="void"/>
|
602
|
+
</return-value>
|
603
|
+
<parameters>
|
604
|
+
<parameter name="cr" transfer-ownership="none">
|
605
|
+
<doc xml:whitespace="preserve">a Cairo context</doc>
|
606
|
+
<type name="cairo.Context" c:type="cairo_t*"/>
|
607
|
+
</parameter>
|
608
|
+
<parameter name="x" transfer-ownership="none">
|
609
|
+
<doc xml:whitespace="preserve">The X coordinate of one corner of the rectangle</doc>
|
610
|
+
<type name="gdouble" c:type="double"/>
|
611
|
+
</parameter>
|
612
|
+
<parameter name="y" transfer-ownership="none">
|
613
|
+
<doc xml:whitespace="preserve">The Y coordinate of one corner of the rectangle</doc>
|
614
|
+
<type name="gdouble" c:type="double"/>
|
615
|
+
</parameter>
|
616
|
+
<parameter name="width" transfer-ownership="none">
|
617
|
+
<doc xml:whitespace="preserve">Non-negative width of the rectangle</doc>
|
618
|
+
<type name="gdouble" c:type="double"/>
|
619
|
+
</parameter>
|
620
|
+
<parameter name="height" transfer-ownership="none">
|
621
|
+
<doc xml:whitespace="preserve">Non-negative height of the rectangle</doc>
|
622
|
+
<type name="gdouble" c:type="double"/>
|
623
|
+
</parameter>
|
624
|
+
</parameters>
|
625
|
+
</function>
|
626
|
+
<function name="show_glyph_item"
|
627
|
+
c:identifier="pango_cairo_show_glyph_item"
|
628
|
+
version="1.22">
|
629
|
+
<doc xml:whitespace="preserve">Draws the glyphs in @glyph_item in the specified cairo context,
|
630
|
+
embedding the text associated with the glyphs in the output if the
|
631
|
+
output format supports it (PDF for example), otherwise it acts
|
632
|
+
similar to pango_cairo_show_glyph_string().
|
633
|
+
|
634
|
+
The origin of the glyphs (the left edge of the baseline) will
|
635
|
+
be drawn at the current point of the cairo context.
|
636
|
+
|
637
|
+
Note that @text is the start of the text for layout, which is then
|
638
|
+
indexed by <literal>@glyph_item->item->offset</literal>.</doc>
|
639
|
+
<return-value transfer-ownership="none">
|
640
|
+
<type name="none" c:type="void"/>
|
641
|
+
</return-value>
|
642
|
+
<parameters>
|
643
|
+
<parameter name="cr" transfer-ownership="none">
|
644
|
+
<doc xml:whitespace="preserve">a Cairo context</doc>
|
645
|
+
<type name="cairo.Context" c:type="cairo_t*"/>
|
646
|
+
</parameter>
|
647
|
+
<parameter name="text" transfer-ownership="none">
|
648
|
+
<doc xml:whitespace="preserve">the UTF-8 text that @glyph_item refers to</doc>
|
649
|
+
<type name="utf8" c:type="const char*"/>
|
650
|
+
</parameter>
|
651
|
+
<parameter name="glyph_item" transfer-ownership="none">
|
652
|
+
<doc xml:whitespace="preserve">a #PangoGlyphItem</doc>
|
653
|
+
<type name="Pango.GlyphItem" c:type="PangoGlyphItem*"/>
|
654
|
+
</parameter>
|
655
|
+
</parameters>
|
656
|
+
</function>
|
657
|
+
<function name="show_glyph_string"
|
658
|
+
c:identifier="pango_cairo_show_glyph_string"
|
659
|
+
version="1.10">
|
660
|
+
<doc xml:whitespace="preserve">Draws the glyphs in @glyphs in the specified cairo context.
|
661
|
+
The origin of the glyphs (the left edge of the baseline) will
|
662
|
+
be drawn at the current point of the cairo context.</doc>
|
663
|
+
<return-value transfer-ownership="none">
|
664
|
+
<type name="none" c:type="void"/>
|
665
|
+
</return-value>
|
666
|
+
<parameters>
|
667
|
+
<parameter name="cr" transfer-ownership="none">
|
668
|
+
<doc xml:whitespace="preserve">a Cairo context</doc>
|
669
|
+
<type name="cairo.Context" c:type="cairo_t*"/>
|
670
|
+
</parameter>
|
671
|
+
<parameter name="font" transfer-ownership="none">
|
672
|
+
<doc xml:whitespace="preserve">a #PangoFont from a #PangoCairoFontMap</doc>
|
673
|
+
<type name="Pango.Font" c:type="PangoFont*"/>
|
674
|
+
</parameter>
|
675
|
+
<parameter name="glyphs" transfer-ownership="none">
|
676
|
+
<doc xml:whitespace="preserve">a #PangoGlyphString</doc>
|
677
|
+
<type name="Pango.GlyphString" c:type="PangoGlyphString*"/>
|
678
|
+
</parameter>
|
679
|
+
</parameters>
|
680
|
+
</function>
|
681
|
+
<function name="show_layout"
|
682
|
+
c:identifier="pango_cairo_show_layout"
|
683
|
+
version="1.10">
|
684
|
+
<doc xml:whitespace="preserve">Draws a #PangoLayout in the specified cairo context.
|
685
|
+
The top-left corner of the #PangoLayout will be drawn
|
686
|
+
at the current point of the cairo context.</doc>
|
687
|
+
<return-value transfer-ownership="none">
|
688
|
+
<type name="none" c:type="void"/>
|
689
|
+
</return-value>
|
690
|
+
<parameters>
|
691
|
+
<parameter name="cr" transfer-ownership="none">
|
692
|
+
<doc xml:whitespace="preserve">a Cairo context</doc>
|
693
|
+
<type name="cairo.Context" c:type="cairo_t*"/>
|
694
|
+
</parameter>
|
695
|
+
<parameter name="layout" transfer-ownership="none">
|
696
|
+
<doc xml:whitespace="preserve">a Pango layout</doc>
|
697
|
+
<type name="Pango.Layout" c:type="PangoLayout*"/>
|
698
|
+
</parameter>
|
699
|
+
</parameters>
|
700
|
+
</function>
|
701
|
+
<function name="show_layout_line"
|
702
|
+
c:identifier="pango_cairo_show_layout_line"
|
703
|
+
version="1.10">
|
704
|
+
<doc xml:whitespace="preserve">Draws a #PangoLayoutLine in the specified cairo context.
|
705
|
+
The origin of the glyphs (the left edge of the line) will
|
706
|
+
be drawn at the current point of the cairo context.</doc>
|
707
|
+
<return-value transfer-ownership="none">
|
708
|
+
<type name="none" c:type="void"/>
|
709
|
+
</return-value>
|
710
|
+
<parameters>
|
711
|
+
<parameter name="cr" transfer-ownership="none">
|
712
|
+
<doc xml:whitespace="preserve">a Cairo context</doc>
|
713
|
+
<type name="cairo.Context" c:type="cairo_t*"/>
|
714
|
+
</parameter>
|
715
|
+
<parameter name="line" transfer-ownership="none">
|
716
|
+
<doc xml:whitespace="preserve">a #PangoLayoutLine</doc>
|
717
|
+
<type name="Pango.LayoutLine" c:type="PangoLayoutLine*"/>
|
718
|
+
</parameter>
|
719
|
+
</parameters>
|
720
|
+
</function>
|
721
|
+
<function name="update_context"
|
722
|
+
c:identifier="pango_cairo_update_context"
|
723
|
+
version="1.10">
|
724
|
+
<doc xml:whitespace="preserve">Updates a #PangoContext previously created for use with Cairo to
|
725
|
+
match the current transformation and target surface of a Cairo
|
726
|
+
context. If any layouts have been created for the context,
|
727
|
+
it's necessary to call pango_layout_context_changed() on those
|
728
|
+
layouts.</doc>
|
729
|
+
<return-value transfer-ownership="none">
|
730
|
+
<type name="none" c:type="void"/>
|
731
|
+
</return-value>
|
732
|
+
<parameters>
|
733
|
+
<parameter name="cr" transfer-ownership="none">
|
734
|
+
<doc xml:whitespace="preserve">a Cairo context</doc>
|
735
|
+
<type name="cairo.Context" c:type="cairo_t*"/>
|
736
|
+
</parameter>
|
737
|
+
<parameter name="context" transfer-ownership="none">
|
738
|
+
<doc xml:whitespace="preserve">a #PangoContext, from a pangocairo font map</doc>
|
739
|
+
<type name="Pango.Context" c:type="PangoContext*"/>
|
740
|
+
</parameter>
|
741
|
+
</parameters>
|
742
|
+
</function>
|
743
|
+
<function name="update_layout"
|
744
|
+
c:identifier="pango_cairo_update_layout"
|
745
|
+
version="1.10">
|
746
|
+
<doc xml:whitespace="preserve">Updates the private #PangoContext of a #PangoLayout created with
|
747
|
+
pango_cairo_create_layout() to match the current transformation
|
748
|
+
and target surface of a Cairo context.</doc>
|
749
|
+
<return-value transfer-ownership="none">
|
750
|
+
<type name="none" c:type="void"/>
|
751
|
+
</return-value>
|
752
|
+
<parameters>
|
753
|
+
<parameter name="cr" transfer-ownership="none">
|
754
|
+
<doc xml:whitespace="preserve">a Cairo context</doc>
|
755
|
+
<type name="cairo.Context" c:type="cairo_t*"/>
|
756
|
+
</parameter>
|
757
|
+
<parameter name="layout" transfer-ownership="none">
|
758
|
+
<doc xml:whitespace="preserve">a #PangoLayout, from pango_cairo_create_layout()</doc>
|
759
|
+
<type name="Pango.Layout" c:type="PangoLayout*"/>
|
760
|
+
</parameter>
|
761
|
+
</parameters>
|
762
|
+
</function>
|
763
|
+
</namespace>
|
764
|
+
</repository>
|