18
18
<namespace name="PangoCairo"
20
20
shared-library="libpangocairo-1.0.so.0"
21
c:prefix="PangoCairo">
21
c:identifier-prefixes="PangoCairo"
22
c:symbol-prefixes="pango_cairo">
22
23
<class name="FcFontMap"
24
c:symbol-prefix="fc_font_map"
23
25
c:type="PangoCairoFcFontMap"
24
parent="PangoFT2.PangoFcFontMap"
26
parent="Pango.FontMap"
25
27
glib:type-name="PangoCairoFcFontMap"
26
28
glib:get-type="pango_cairo_fc_font_map_get_type">
27
29
<implements name="FontMap"/>
28
<field name="parent_instance">
29
<type name="PangoFT2.PangoFcFontMap" c:type="PangoFcFontMap"/>
30
<field name="parent_instance" introspectable="0">
31
<type c:type="PangoFcFontMap"/>
32
<type name="double" c:type="double"/>
34
<type name="gdouble" c:type="double"/>
34
36
<field name="library">
35
37
<type name="freetype2.Library" c:type="FT_Library"/>
38
40
<interface name="Font"
41
c:symbol-prefix="font"
39
42
c:type="PangoCairoFont"
40
doc="#PangoCairoFont is an interface exported by fonts for
41
use with Cairo. The actual type of the font will depend
42
on the particular font technology Cairo was compiled to use."
44
44
glib:type-name="PangoCairoFont"
45
glib:get-type="pango_cairo_font_get_type"
46
glib:type-struct="FontIface">
45
glib:get-type="pango_cairo_font_get_type">
46
<doc xml:whitespace="preserve">#PangoCairoFont is an interface exported by fonts for
47
use with Cairo. The actual type of the font will depend
48
on the particular font technology Cairo was compiled to use.</doc>
47
49
<prerequisite name="Pango.Font"/>
48
<virtual-method name="create_font_face">
49
<return-value transfer-ownership="full">
50
<type name="cairo.FontFace" c:type="cairo_font_face_t*"/>
53
<virtual-method name="create_base_metrics_for_context">
54
<return-value transfer-ownership="full">
55
<type name="Pango.FontMetrics" c:type="PangoFontMetrics*"/>
58
<parameter name="context" transfer-ownership="none">
59
<type name="Pango.Context" c:type="PangoContext*"/>
63
50
<method name="get_scaled_font"
64
51
c:identifier="pango_cairo_font_get_scaled_font"
65
doc="Gets the #cairo_scaled_font_t used by @font.
53
<doc xml:whitespace="preserve">Gets the #cairo_scaled_font_t used by @font.
66
54
The scaled font can be referenced and kept using
67
55
cairo_scaled_font_reference().
68
or %NULL if @font is %NULL."
56
or %NULL if @font is %NULL.</doc>
70
57
<return-value transfer-ownership="full">
58
<doc xml:whitespace="preserve">the #cairo_scaled_font_t used by @font,</doc>
71
59
<type name="cairo.ScaledFont" c:type="cairo_scaled_font_t*"/>
75
<record name="FontGlyphExtentsCacheEntry"
76
c:type="PangoCairoFontGlyphExtentsCacheEntry">
78
<record name="FontHexBoxInfo" c:type="PangoCairoFontHexBoxInfo">
79
<field name="font" writable="1">
80
<type name="Font" c:type="PangoCairoFont*"/>
82
<field name="rows" writable="1">
83
<type name="int" c:type="int"/>
85
<field name="digit_width" writable="1">
86
<type name="double" c:type="double"/>
88
<field name="digit_height" writable="1">
89
<type name="double" c:type="double"/>
91
<field name="pad_x" writable="1">
92
<type name="double" c:type="double"/>
94
<field name="pad_y" writable="1">
95
<type name="double" c:type="double"/>
97
<field name="line_width" writable="1">
98
<type name="double" c:type="double"/>
100
<field name="box_descent" writable="1">
101
<type name="double" c:type="double"/>
103
<field name="box_height" writable="1">
104
<type name="double" c:type="double"/>
107
<record name="FontIface"
108
c:type="PangoCairoFontIface"
109
glib:is-gtype-struct-for="Font">
110
<field name="g_iface">
111
<type name="GObject.TypeInterface" c:type="GTypeInterface"/>
113
<field name="create_font_face">
114
<callback name="create_font_face" c:type="create_font_face">
115
<return-value transfer-ownership="full">
116
<type name="cairo.FontFace" c:type="cairo_font_face_t*"/>
119
<parameter name="cfont" transfer-ownership="none">
120
<type name="Font" c:type="PangoCairoFont*"/>
125
<field name="create_base_metrics_for_context">
126
<callback name="create_base_metrics_for_context"
127
c:type="create_base_metrics_for_context">
128
<return-value transfer-ownership="full">
129
<type name="Pango.FontMetrics" c:type="PangoFontMetrics*"/>
132
<parameter name="cfont" transfer-ownership="none">
133
<type name="Font" c:type="PangoCairoFont*"/>
135
<parameter name="context" transfer-ownership="none">
136
<type name="Pango.Context" c:type="PangoContext*"/>
141
<field name="cf_priv_offset">
142
<type name="ssize_t" c:type="gssize"/>
145
63
<interface name="FontMap"
64
c:symbol-prefix="font_map"
146
65
c:type="PangoCairoFontMap"
147
doc="#PangoCairoFontMap is an interface exported by font maps for
148
use with Cairo. The actual type of the font map will depend
149
on the particular font technology Cairo was compiled to use."
151
67
glib:type-name="PangoCairoFontMap"
152
glib:get-type="pango_cairo_font_map_get_type"
153
glib:type-struct="FontMapIface">
68
glib:get-type="pango_cairo_font_map_get_type">
69
<doc xml:whitespace="preserve">#PangoCairoFontMap is an interface exported by font maps for
70
use with Cairo. The actual type of the font map will depend
71
on the particular font technology Cairo was compiled to use.</doc>
154
72
<prerequisite name="Pango.FontMap"/>
155
<virtual-method name="set_resolution" invoker="set_resolution">
156
<return-value transfer-ownership="none">
157
<type name="none" c:type="void"/>
160
<parameter name="dpi" transfer-ownership="none">
161
<type name="double" c:type="double"/>
165
<virtual-method name="get_resolution" invoker="get_resolution">
166
<return-value transfer-ownership="none">
167
<type name="double" c:type="double"/>
170
<virtual-method name="get_font_type" invoker="get_font_type">
73
<method name="create_context"
74
c:identifier="pango_cairo_font_map_create_context"
77
deprecated="Use pango_font_map_create_context() instead."
78
deprecated-version="1.22">
79
<doc xml:whitespace="preserve">Create a #PangoContext for the given fontmap.</doc>
81
<doc xml:whitespace="preserve">the newly created context; free with g_object_unref().</doc>
82
<type name="Pango.Context" c:type="PangoContext*"/>
85
<method name="get_font_type"
86
c:identifier="pango_cairo_font_map_get_font_type"
88
<doc xml:whitespace="preserve">Gets the type of Cairo font backend that @fontmap uses.</doc>
171
89
<return-value transfer-ownership="full">
90
<doc xml:whitespace="preserve">the #cairo_font_type_t cairo font backend type</doc>
172
91
<type name="cairo.FontType" c:type="cairo_font_type_t"/>
94
<method name="get_resolution"
95
c:identifier="pango_cairo_font_map_get_resolution"
97
<doc xml:whitespace="preserve">Gets the resolution for the fontmap. See pango_cairo_font_map_set_resolution()</doc>
98
<return-value transfer-ownership="none">
99
<doc xml:whitespace="preserve">the resolution in "dots per inch"</doc>
100
<type name="gdouble" c:type="double"/>
175
103
<method name="set_default"
176
104
c:identifier="pango_cairo_font_map_set_default"
177
doc="Sets a default #PangoCairoFontMap to use with Cairo.
106
<doc xml:whitespace="preserve">Sets a default #PangoCairoFontMap to use with Cairo.
178
107
This can be used to change the Cairo font backend that the
179
108
default fontmap uses for example. The old default font map
180
109
is unreffed and the new font map referenced.
181
110
A value of %NULL for @fontmap will cause the current default
182
111
font map to be released and a new default font
183
map to be created on demand, using pango_cairo_font_map_new()."
112
map to be created on demand, using pango_cairo_font_map_new().</doc>
185
113
<return-value transfer-ownership="none">
186
114
<type name="none" c:type="void"/>
189
<method name="get_font_type"
190
c:identifier="pango_cairo_font_map_get_font_type"
191
doc="Gets the type of Cairo font backend that @fontmap uses."
193
<return-value transfer-ownership="full">
194
<type name="cairo.FontType" c:type="cairo_font_type_t"/>
197
117
<method name="set_resolution"
198
118
c:identifier="pango_cairo_font_map_set_resolution"
199
doc="involved; the terminology is conventional.)
200
Sets the resolution for the fontmap. This is a scale factor between
120
<doc xml:whitespace="preserve">Sets the resolution for the fontmap. This is a scale factor between
201
121
points specified in a #PangoFontDescription and Cairo units. The
202
122
default value is 96, meaning that a 10 point font will be 13
203
units high. (10 * 96. / 72. = 13.3)."
123
units high. (10 * 96. / 72. = 13.3).</doc>
205
124
<return-value transfer-ownership="none">
206
125
<type name="none" c:type="void"/>
209
128
<parameter name="dpi" transfer-ownership="none">
210
<type name="double" c:type="double"/>
129
<doc xml:whitespace="preserve">the resolution in "dots per inch". (Physical inches aren't actually involved; the terminology is conventional.)</doc>
130
<type name="gdouble" c:type="double"/>
214
<method name="get_resolution"
215
c:identifier="pango_cairo_font_map_get_resolution"
216
doc="Gets the resolution for the fontmap. See pango_cairo_font_map_set_resolution()"
218
<return-value transfer-ownership="none">
219
<type name="double" c:type="double"/>
222
<method name="create_context"
223
c:identifier="pango_cairo_font_map_create_context"
224
doc="Create a #PangoContext for the given fontmap."
226
deprecated="Use pango_font_map_create_context() instead."
227
deprecated-version="1.22">
228
<return-value transfer-ownership="full">
229
<type name="Pango.Context" c:type="PangoContext*"/>
233
<record name="FontMapIface"
234
c:type="PangoCairoFontMapIface"
235
glib:is-gtype-struct-for="FontMap">
236
<field name="g_iface">
237
<type name="GObject.TypeInterface" c:type="GTypeInterface"/>
239
<field name="set_resolution">
240
<callback name="set_resolution" c:type="set_resolution">
241
<return-value transfer-ownership="none">
242
<type name="none" c:type="void"/>
245
<parameter name="fontmap" transfer-ownership="none">
246
<type name="FontMap" c:type="PangoCairoFontMap*"/>
248
<parameter name="dpi" transfer-ownership="none">
249
<type name="double" c:type="double"/>
254
<field name="get_resolution">
255
<callback name="get_resolution" c:type="get_resolution">
256
<return-value transfer-ownership="none">
257
<type name="double" c:type="double"/>
260
<parameter name="fontmap" transfer-ownership="none">
261
<type name="FontMap" c:type="PangoCairoFontMap*"/>
266
<field name="get_font_type">
267
<callback name="get_font_type" c:type="get_font_type">
268
<return-value transfer-ownership="full">
269
<type name="cairo.FontType" c:type="cairo_font_type_t"/>
272
<parameter name="fontmap" transfer-ownership="none">
273
<type name="FontMap" c:type="PangoCairoFontMap*"/>
279
<record name="FontPrivate" c:type="PangoCairoFontPrivate">
280
<field name="cfont" writable="1">
281
<type name="Font" c:type="PangoCairoFont*"/>
283
<field name="data" writable="1">
284
<type name="FontPrivateScaledFontData"
285
c:type="PangoCairoFontPrivateScaledFontData*"/>
287
<field name="scaled_font" writable="1">
288
<type name="cairo.ScaledFont" c:type="cairo_scaled_font_t*"/>
290
<field name="hbi" writable="1">
291
<type name="FontHexBoxInfo" c:type="PangoCairoFontHexBoxInfo*"/>
293
<field name="is_hinted" writable="1">
294
<type name="boolean" c:type="gboolean"/>
296
<field name="gravity" writable="1">
297
<type name="Pango.Gravity" c:type="PangoGravity"/>
299
<field name="font_extents" writable="1">
300
<type name="Pango.Rectangle" c:type="PangoRectangle"/>
302
<field name="glyph_extents_cache" writable="1">
303
<type name="FontGlyphExtentsCacheEntry"
304
c:type="PangoCairoFontGlyphExtentsCacheEntry*"/>
306
<field name="metrics_by_lang" writable="1">
307
<type name="GLib.SList" c:type="GSList*"/>
310
<record name="FontPrivateScaledFontData"
311
c:type="PangoCairoFontPrivateScaledFontData">
312
<field name="font_matrix" writable="1">
313
<type name="cairo.Matrix" c:type="cairo_matrix_t"/>
315
<field name="ctm" writable="1">
316
<type name="cairo.Matrix" c:type="cairo_matrix_t"/>
318
<field name="options" writable="1">
319
<type name="cairo.FontOptions" c:type="cairo_font_options_t*"/>
322
<constant name="HEIGHT_SQUARES" value="2.5">
323
<type name="double"/>
325
<class name="Renderer"
326
c:type="PangoCairoRenderer"
327
parent="Pango.Renderer"
328
glib:type-name="PangoCairoRenderer"
329
glib:get-type="pango_cairo_renderer_get_type">
331
135
<callback name="ShapeRendererFunc" c:type="PangoCairoShapeRendererFunc">
332
136
<return-value transfer-ownership="none">
333
137
<type name="none" c:type="void"/>
340
144
<type name="Pango.AttrShape" c:type="PangoAttrShape*"/>
342
146
<parameter name="do_path" transfer-ownership="none">
343
<type name="boolean" c:type="gboolean"/>
147
<type name="gboolean" c:type="gboolean"/>
345
149
<parameter name="data" transfer-ownership="none">
346
<type name="any" c:type="gpointer"/>
150
<type name="gpointer" c:type="gpointer"/>
350
154
<function name="context_get_font_options"
351
155
c:identifier="pango_cairo_context_get_font_options"
352
doc="Retrieves any font rendering options previously set with
157
<doc xml:whitespace="preserve">Retrieves any font rendering options previously set with
353
158
pango_cairo_font_map_set_font_options(). This function does not report options
354
159
that are derived from the target surface by pango_cairo_update_context()
355
160
if no options have been set. This value is owned by the context
356
and must not be modified or freed."
161
and must not be modified or freed.</doc>
358
162
<return-value transfer-ownership="none">
163
<doc xml:whitespace="preserve">the font options previously set on the context, or %NULL</doc>
359
164
<type name="cairo.FontOptions" c:type="cairo_font_options_t*"/>
362
167
<parameter name="context" transfer-ownership="none">
168
<doc xml:whitespace="preserve">a #PangoContext, from a pangocairo font map</doc>
363
169
<type name="Pango.Context" c:type="PangoContext*"/>
367
173
<function name="context_get_resolution"
368
174
c:identifier="pango_cairo_context_get_resolution"
369
doc="Gets the resolution for the context. See pango_cairo_context_set_resolution()
370
be returned if no resolution has previously been set."
176
<doc xml:whitespace="preserve">Gets the resolution for the context. See pango_cairo_context_set_resolution()
177
be returned if no resolution has previously been set.</doc>
372
178
<return-value transfer-ownership="none">
373
<type name="double" c:type="double"/>
179
<doc xml:whitespace="preserve">the resolution in "dots per inch". A negative value will</doc>
180
<type name="gdouble" c:type="double"/>
376
183
<parameter name="context" transfer-ownership="none">
184
<doc xml:whitespace="preserve">a #PangoContext, from a pangocairo font map</doc>
377
185
<type name="Pango.Context" c:type="PangoContext*"/>
381
189
<function name="context_get_shape_renderer"
382
190
c:identifier="pango_cairo_context_get_shape_renderer"
383
doc="Sets callback function for context to use for rendering attributes
193
<doc xml:whitespace="preserve">Sets callback function for context to use for rendering attributes
384
194
of type %PANGO_ATTR_SHAPE. See #PangoCairoShapeRendererFunc for
386
196
Retrieves callback function and associated user data for rendering
387
197
attributes of type %PANGO_ATTR_SHAPE as set by
388
198
pango_cairo_context_set_shape_renderer(), if any.
389
if no shape rendering callback have been set."
391
<return-value transfer-ownership="full">
199
if no shape rendering callback have been set.</doc>
201
<doc xml:whitespace="preserve">the shape rendering callback previously set on the context, or %NULL</doc>
392
202
<type name="ShapeRendererFunc" c:type="PangoCairoShapeRendererFunc"/>
395
205
<parameter name="context" transfer-ownership="none">
206
<doc xml:whitespace="preserve">a #PangoContext, from a pangocairo font map</doc>
396
207
<type name="Pango.Context" c:type="PangoContext*"/>
398
209
<parameter name="data" transfer-ownership="none">
399
<type name="any" c:type="gpointer*"/>
210
<doc xml:whitespace="preserve">Pointer to #gpointer to return user data</doc>
211
<type name="gpointer" c:type="gpointer*"/>
403
215
<function name="context_set_font_options"
404
216
c:identifier="pango_cairo_context_set_font_options"
405
doc="options. A copy is made.
406
Sets the font options used when rendering text with this context.
218
<doc xml:whitespace="preserve">Sets the font options used when rendering text with this context.
407
219
These options override any options that pango_cairo_update_context()
408
derives from the target surface."
220
derives from the target surface.</doc>
410
221
<return-value transfer-ownership="none">
411
222
<type name="none" c:type="void"/>
414
225
<parameter name="context" transfer-ownership="none">
226
<doc xml:whitespace="preserve">a #PangoContext, from a pangocairo font map</doc>
415
227
<type name="Pango.Context" c:type="PangoContext*"/>
417
229
<parameter name="options" transfer-ownership="none">
230
<doc xml:whitespace="preserve">a #cairo_font_options_t, or %NULL to unset any previously set options. A copy is made.</doc>
418
231
<type name="cairo.FontOptions" c:type="cairo_font_options_t*"/>
422
235
<function name="context_set_resolution"
423
236
c:identifier="pango_cairo_context_set_resolution"
424
doc="involved; the terminology is conventional.) A 0 or negative value
425
means to use the resolution from the font map.
426
Sets the resolution for the context. This is a scale factor between
238
<doc xml:whitespace="preserve">Sets the resolution for the context. This is a scale factor between
427
239
points specified in a #PangoFontDescription and Cairo units. The
428
240
default value is 96, meaning that a 10 point font will be 13
429
units high. (10 * 96. / 72. = 13.3)."
241
units high. (10 * 96. / 72. = 13.3).</doc>
431
242
<return-value transfer-ownership="none">
432
243
<type name="none" c:type="void"/>
435
246
<parameter name="context" transfer-ownership="none">
247
<doc xml:whitespace="preserve">a #PangoContext, from a pangocairo font map</doc>
436
248
<type name="Pango.Context" c:type="PangoContext*"/>
438
250
<parameter name="dpi" transfer-ownership="none">
439
<type name="double" c:type="double"/>
251
<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>
252
<type name="gdouble" c:type="double"/>
443
256
<function name="context_set_shape_renderer"
444
257
c:identifier="pango_cairo_context_set_shape_renderer"
445
doc="%PANGO_ATTR_SHAPE, or %NULL to disable shape rendering.
446
context is freed to release @data, or %NULL.
447
Sets callback function for context to use for rendering attributes
259
<doc xml:whitespace="preserve">Sets callback function for context to use for rendering attributes
448
260
of type %PANGO_ATTR_SHAPE. See #PangoCairoShapeRendererFunc for
451
262
<return-value transfer-ownership="none">
452
263
<type name="none" c:type="void"/>
455
266
<parameter name="context" transfer-ownership="none">
267
<doc xml:whitespace="preserve">a #PangoContext, from a pangocairo font map</doc>
456
268
<type name="Pango.Context" c:type="PangoContext*"/>
458
270
<parameter name="func"
502
322
however it is slightly inefficient since it creates a separate
503
323
#PangoContext object for each layout. This might matter in an
504
324
application that was laying out large amounts of text.
507
<return-value transfer-ownership="full">
325
g_object_unref().</doc>
327
<doc xml:whitespace="preserve">the newly created #PangoLayout. Free with</doc>
508
328
<type name="Pango.Layout" c:type="PangoLayout*"/>
511
331
<parameter name="cr" transfer-ownership="none">
332
<doc xml:whitespace="preserve">a Cairo context</doc>
512
333
<type name="cairo.Context" c:type="cairo_t*"/>
516
337
<function name="error_underline_path"
517
338
c:identifier="pango_cairo_error_underline_path"
518
doc="Add a squiggly line to the current path in the specified cairo context that
340
<doc xml:whitespace="preserve">Add a squiggly line to the current path in the specified cairo context that
519
341
approximately covers the given rectangle in the style of an underline used
520
342
to indicate a spelling error. (The width of the underline is rounded to an
521
343
integer number of up/down segments and the resulting rectangle is centered
522
in the original rectangle)"
344
in the original rectangle)</doc>
524
345
<return-value transfer-ownership="none">
525
346
<type name="none" c:type="void"/>
528
349
<parameter name="cr" transfer-ownership="none">
350
<doc xml:whitespace="preserve">a Cairo context</doc>
529
351
<type name="cairo.Context" c:type="cairo_t*"/>
531
353
<parameter name="x" transfer-ownership="none">
532
<type name="double" c:type="double"/>
354
<doc xml:whitespace="preserve">The X coordinate of one corner of the rectangle</doc>
355
<type name="gdouble" c:type="double"/>
534
357
<parameter name="y" transfer-ownership="none">
535
<type name="double" c:type="double"/>
358
<doc xml:whitespace="preserve">The Y coordinate of one corner of the rectangle</doc>
359
<type name="gdouble" c:type="double"/>
537
361
<parameter name="width" transfer-ownership="none">
538
<type name="double" c:type="double"/>
362
<doc xml:whitespace="preserve">Non-negative width of the rectangle</doc>
363
<type name="gdouble" c:type="double"/>
540
365
<parameter name="height" transfer-ownership="none">
541
<type name="double" c:type="double"/>
366
<doc xml:whitespace="preserve">Non-negative height of the rectangle</doc>
367
<type name="gdouble" c:type="double"/>
545
371
<function name="font_map_get_default"
546
372
c:identifier="pango_cairo_font_map_get_default"
547
doc="Gets a default #PangoCairoFontMap to use with Cairo.
375
<doc xml:whitespace="preserve">Gets a default #PangoCairoFontMap to use with Cairo.
548
376
Note that the type of the returned object will depend
549
377
on the particular font backend Cairo was compiled to use;
550
378
You generally should only use the #PangoFontMap and
615
448
<function name="layout_line_path"
616
449
c:identifier="pango_cairo_layout_line_path"
617
doc="Adds the text in #PangoLayoutLine to the current path in the
451
<doc xml:whitespace="preserve">Adds the text in #PangoLayoutLine to the current path in the
618
452
specified cairo context. The origin of the glyphs (the left edge
619
of the line) will be at the current point of the cairo context."
453
of the line) will be at the current point of the cairo context.</doc>
621
454
<return-value transfer-ownership="none">
622
455
<type name="none" c:type="void"/>
625
458
<parameter name="cr" transfer-ownership="none">
459
<doc xml:whitespace="preserve">a Cairo context</doc>
626
460
<type name="cairo.Context" c:type="cairo_t*"/>
628
462
<parameter name="line" transfer-ownership="none">
463
<doc xml:whitespace="preserve">a #PangoLayoutLine</doc>
629
464
<type name="Pango.LayoutLine" c:type="PangoLayoutLine*"/>
633
468
<function name="layout_path"
634
469
c:identifier="pango_cairo_layout_path"
635
doc="Adds the text in a #PangoLayout to the current path in the
471
<doc xml:whitespace="preserve">Adds the text in a #PangoLayout to the current path in the
636
472
specified cairo context. The top-left corner of the #PangoLayout
637
will be at the current point of the cairo context."
473
will be at the current point of the cairo context.</doc>
639
474
<return-value transfer-ownership="none">
640
475
<type name="none" c:type="void"/>
643
478
<parameter name="cr" transfer-ownership="none">
479
<doc xml:whitespace="preserve">a Cairo context</doc>
644
480
<type name="cairo.Context" c:type="cairo_t*"/>
646
482
<parameter name="layout" transfer-ownership="none">
483
<doc xml:whitespace="preserve">a Pango layout</doc>
647
484
<type name="Pango.Layout" c:type="PangoLayout*"/>
651
488
<function name="show_error_underline"
652
489
c:identifier="pango_cairo_show_error_underline"
653
doc="Draw a squiggly line in the specified cairo context that approximately
491
<doc xml:whitespace="preserve">Draw a squiggly line in the specified cairo context that approximately
654
492
covers the given rectangle in the style of an underline used to indicate a
655
493
spelling error. (The width of the underline is rounded to an integer
656
494
number of up/down segments and the resulting rectangle is centered in the
495
original rectangle)</doc>
659
496
<return-value transfer-ownership="none">
660
497
<type name="none" c:type="void"/>
663
500
<parameter name="cr" transfer-ownership="none">
501
<doc xml:whitespace="preserve">a Cairo context</doc>
664
502
<type name="cairo.Context" c:type="cairo_t*"/>
666
504
<parameter name="x" transfer-ownership="none">
667
<type name="double" c:type="double"/>
505
<doc xml:whitespace="preserve">The X coordinate of one corner of the rectangle</doc>
506
<type name="gdouble" c:type="double"/>
669
508
<parameter name="y" transfer-ownership="none">
670
<type name="double" c:type="double"/>
509
<doc xml:whitespace="preserve">The Y coordinate of one corner of the rectangle</doc>
510
<type name="gdouble" c:type="double"/>
672
512
<parameter name="width" transfer-ownership="none">
673
<type name="double" c:type="double"/>
513
<doc xml:whitespace="preserve">Non-negative width of the rectangle</doc>
514
<type name="gdouble" c:type="double"/>
675
516
<parameter name="height" transfer-ownership="none">
676
<type name="double" c:type="double"/>
517
<doc xml:whitespace="preserve">Non-negative height of the rectangle</doc>
518
<type name="gdouble" c:type="double"/>
680
522
<function name="show_glyph_item"
681
523
c:identifier="pango_cairo_show_glyph_item"
682
doc="Draws the glyphs in @glyph_item in the specified cairo context,
525
<doc xml:whitespace="preserve">Draws the glyphs in @glyph_item in the specified cairo context,
683
526
embedding the text associated with the glyphs in the output if the
684
527
output format supports it (PDF for example), otherwise it acts
685
528
similar to pango_cairo_show_glyph_string().
686
529
The origin of the glyphs (the left edge of the baseline) will
687
530
be drawn at the current point of the cairo context.
688
531
Note that @text is the start of the text for layout, which is then
689
indexed by <literal>@glyph_item->item->offset</literal>."
532
indexed by <literal>@glyph_item->item->offset</literal>.</doc>
691
533
<return-value transfer-ownership="none">
692
534
<type name="none" c:type="void"/>
695
537
<parameter name="cr" transfer-ownership="none">
538
<doc xml:whitespace="preserve">a Cairo context</doc>
696
539
<type name="cairo.Context" c:type="cairo_t*"/>
698
541
<parameter name="text" transfer-ownership="none">
542
<doc xml:whitespace="preserve">the UTF-8 text that @glyph_item refers to</doc>
699
543
<type name="utf8" c:type="char*"/>
701
545
<parameter name="glyph_item" transfer-ownership="none">
546
<doc xml:whitespace="preserve">a #PangoGlyphItem</doc>
702
547
<type name="Pango.GlyphItem" c:type="PangoGlyphItem*"/>
706
551
<function name="show_glyph_string"
707
552
c:identifier="pango_cairo_show_glyph_string"
708
doc="Draws the glyphs in @glyphs in the specified cairo context.
554
<doc xml:whitespace="preserve">Draws the glyphs in @glyphs in the specified cairo context.
709
555
The origin of the glyphs (the left edge of the baseline) will
710
be drawn at the current point of the cairo context."
556
be drawn at the current point of the cairo context.</doc>
712
557
<return-value transfer-ownership="none">
713
558
<type name="none" c:type="void"/>
716
561
<parameter name="cr" transfer-ownership="none">
562
<doc xml:whitespace="preserve">a Cairo context</doc>
717
563
<type name="cairo.Context" c:type="cairo_t*"/>
719
565
<parameter name="font" transfer-ownership="none">
566
<doc xml:whitespace="preserve">a #PangoFont from a #PangoCairoFontMap</doc>
720
567
<type name="Pango.Font" c:type="PangoFont*"/>
722
569
<parameter name="glyphs" transfer-ownership="none">
570
<doc xml:whitespace="preserve">a #PangoGlyphString</doc>
723
571
<type name="Pango.GlyphString" c:type="PangoGlyphString*"/>
727
575
<function name="show_layout"
728
576
c:identifier="pango_cairo_show_layout"
729
doc="Draws a #PangoLayout in the specified cairo context.
578
<doc xml:whitespace="preserve">Draws a #PangoLayout in the specified cairo context.
730
579
The top-left corner of the #PangoLayout will be drawn
731
at the current point of the cairo context."
580
at the current point of the cairo context.</doc>
733
581
<return-value transfer-ownership="none">
734
582
<type name="none" c:type="void"/>
737
585
<parameter name="cr" transfer-ownership="none">
586
<doc xml:whitespace="preserve">a Cairo context</doc>
738
587
<type name="cairo.Context" c:type="cairo_t*"/>
740
589
<parameter name="layout" transfer-ownership="none">
590
<doc xml:whitespace="preserve">a Pango layout</doc>
741
591
<type name="Pango.Layout" c:type="PangoLayout*"/>
745
595
<function name="show_layout_line"
746
596
c:identifier="pango_cairo_show_layout_line"
747
doc="Draws a #PangoLayoutLine in the specified cairo context.
598
<doc xml:whitespace="preserve">Draws a #PangoLayoutLine in the specified cairo context.
748
599
The origin of the glyphs (the left edge of the line) will
749
be drawn at the current point of the cairo context."
600
be drawn at the current point of the cairo context.</doc>
751
601
<return-value transfer-ownership="none">
752
602
<type name="none" c:type="void"/>
755
605
<parameter name="cr" transfer-ownership="none">
606
<doc xml:whitespace="preserve">a Cairo context</doc>
756
607
<type name="cairo.Context" c:type="cairo_t*"/>
758
609
<parameter name="line" transfer-ownership="none">
610
<doc xml:whitespace="preserve">a #PangoLayoutLine</doc>
759
611
<type name="Pango.LayoutLine" c:type="PangoLayoutLine*"/>
763
615
<function name="update_context"
764
616
c:identifier="pango_cairo_update_context"
765
doc="Updates a #PangoContext previously created for use with Cairo to
618
<doc xml:whitespace="preserve">Updates a #PangoContext previously created for use with Cairo to
766
619
match the current transformation and target surface of a Cairo
767
620
context. If any layouts have been created for the context,
768
it's necessary to call pango_layout_context_changed() on those
621
it's necessary to call pango_layout_context_changed() on those
771
623
<return-value transfer-ownership="none">
772
624
<type name="none" c:type="void"/>
775
627
<parameter name="cr" transfer-ownership="none">
628
<doc xml:whitespace="preserve">a Cairo context</doc>
776
629
<type name="cairo.Context" c:type="cairo_t*"/>
778
631
<parameter name="context" transfer-ownership="none">
632
<doc xml:whitespace="preserve">a #PangoContext, from a pangocairo font map</doc>
779
633
<type name="Pango.Context" c:type="PangoContext*"/>
783
637
<function name="update_layout"
784
638
c:identifier="pango_cairo_update_layout"
785
doc="Updates the private #PangoContext of a #PangoLayout created with
640
<doc xml:whitespace="preserve">Updates the private #PangoContext of a #PangoLayout created with
786
641
pango_cairo_create_layout() to match the current transformation
787
and target surface of a Cairo context."
642
and target surface of a Cairo context.</doc>
789
643
<return-value transfer-ownership="none">
790
644
<type name="none" c:type="void"/>
793
647
<parameter name="cr" transfer-ownership="none">
648
<doc xml:whitespace="preserve">a Cairo context</doc>
794
649
<type name="cairo.Context" c:type="cairo_t*"/>
796
651
<parameter name="layout" transfer-ownership="none">
652
<doc xml:whitespace="preserve">a #PangoLayout, from pango_cairo_create_layout()</doc>
797
653
<type name="Pango.Layout" c:type="PangoLayout*"/>