]> gitweb.factorcode.org Git - factor.git/blob - basis/pango/Pango-1.0.gir
inverse: Fix docs
[factor.git] / basis / pango / Pango-1.0.gir
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="GLib" version="2.0"/>
10   <include name="GObject" version="2.0"/>
11   <include name="cairo" version="1.0"/>
12   <package name="cairo"/>
13   <package name="freetype2"/>
14   <package name="gobject-2.0"/>
15   <namespace name="Pango"
16              version="1.0"
17              shared-library="libpango-1.0.so.0"
18              c:identifier-prefixes="Pango"
19              c:symbol-prefixes="pango">
20     <alias name="Glyph" c:type="PangoGlyph">
21       <type name="guint32" c:type="guint32"/>
22     </alias>
23     <alias name="GlyphUnit" c:type="PangoGlyphUnit">
24       <type name="gint32" c:type="gint32"/>
25     </alias>
26     <alias name="LayoutRun" c:type="PangoLayoutRun">
27       <type name="GlyphItem" c:type="PangoGlyphItem"/>
28     </alias>
29     <constant name="ANALYSIS_FLAG_CENTERED_BASELINE" value="1">
30       <type name="gint" c:type="gint"/>
31     </constant>
32     <constant name="ATTR_INDEX_FROM_TEXT_BEGINNING" value="0">
33       <type name="gint" c:type="gint"/>
34     </constant>
35     <enumeration name="Alignment"
36                  glib:type-name="PangoAlignment"
37                  glib:get-type="pango_alignment_get_type"
38                  c:type="PangoAlignment">
39       <member name="left"
40               value="0"
41               c:identifier="PANGO_ALIGN_LEFT"
42               glib:nick="left"/>
43       <member name="center"
44               value="1"
45               c:identifier="PANGO_ALIGN_CENTER"
46               glib:nick="center"/>
47       <member name="right"
48               value="2"
49               c:identifier="PANGO_ALIGN_RIGHT"
50               glib:nick="right"/>
51     </enumeration>
52     <record name="Analysis" c:type="PangoAnalysis">
53       <field name="shape_engine" writable="1">
54         <type name="EngineShape" c:type="PangoEngineShape*"/>
55       </field>
56       <field name="lang_engine" writable="1">
57         <type name="EngineLang" c:type="PangoEngineLang*"/>
58       </field>
59       <field name="font" writable="1">
60         <type name="Font" c:type="PangoFont*"/>
61       </field>
62       <field name="level" writable="1">
63         <type name="guint8" c:type="guint8"/>
64       </field>
65       <field name="gravity" writable="1">
66         <type name="guint8" c:type="guint8"/>
67       </field>
68       <field name="flags" writable="1">
69         <type name="guint8" c:type="guint8"/>
70       </field>
71       <field name="script" writable="1">
72         <type name="guint8" c:type="guint8"/>
73       </field>
74       <field name="language" writable="1">
75         <type name="Language" c:type="PangoLanguage*"/>
76       </field>
77       <field name="extra_attrs" writable="1">
78         <type name="GLib.SList" c:type="GSList*">
79           <type name="gpointer" c:type="gpointer"/>
80         </type>
81       </field>
82     </record>
83     <record name="AttrClass" c:type="PangoAttrClass">
84       <field name="type" writable="1">
85         <type name="AttrType" c:type="PangoAttrType"/>
86       </field>
87       <field name="copy" introspectable="0">
88         <callback name="copy" introspectable="0">
89           <return-value>
90             <type name="Attribute" c:type="PangoAttribute*"/>
91           </return-value>
92           <parameters>
93             <parameter name="attr" transfer-ownership="none">
94               <type name="Attribute" c:type="PangoAttribute*"/>
95             </parameter>
96           </parameters>
97         </callback>
98       </field>
99       <field name="destroy">
100         <callback name="destroy">
101           <return-value transfer-ownership="none">
102             <type name="none" c:type="void"/>
103           </return-value>
104           <parameters>
105             <parameter name="attr" transfer-ownership="none">
106               <type name="Attribute" c:type="PangoAttribute*"/>
107             </parameter>
108           </parameters>
109         </callback>
110       </field>
111       <field name="equal">
112         <callback name="equal">
113           <return-value transfer-ownership="none">
114             <type name="gboolean" c:type="gboolean"/>
115           </return-value>
116           <parameters>
117             <parameter name="attr1" transfer-ownership="none">
118               <type name="Attribute" c:type="PangoAttribute*"/>
119             </parameter>
120             <parameter name="attr2" transfer-ownership="none">
121               <type name="Attribute" c:type="PangoAttribute*"/>
122             </parameter>
123           </parameters>
124         </callback>
125       </field>
126     </record>
127     <record name="AttrColor" c:type="PangoAttrColor">
128       <field name="attr" writable="1">
129         <type name="Attribute" c:type="PangoAttribute"/>
130       </field>
131       <field name="color" writable="1">
132         <type name="Color" c:type="PangoColor"/>
133       </field>
134     </record>
135     <callback name="AttrDataCopyFunc"
136               c:type="PangoAttrDataCopyFunc"
137               introspectable="0">
138       <return-value>
139         <type name="gpointer" c:type="gpointer"/>
140       </return-value>
141       <parameters>
142         <parameter name="data" transfer-ownership="none">
143           <type name="gpointer" c:type="gconstpointer"/>
144         </parameter>
145       </parameters>
146     </callback>
147     <callback name="AttrFilterFunc" c:type="PangoAttrFilterFunc">
148       <return-value transfer-ownership="none">
149         <type name="gboolean" c:type="gboolean"/>
150       </return-value>
151       <parameters>
152         <parameter name="attribute" transfer-ownership="none">
153           <type name="Attribute" c:type="PangoAttribute*"/>
154         </parameter>
155         <parameter name="data" transfer-ownership="none">
156           <type name="gpointer" c:type="gpointer"/>
157         </parameter>
158       </parameters>
159     </callback>
160     <record name="AttrFloat" c:type="PangoAttrFloat">
161       <field name="attr" writable="1">
162         <type name="Attribute" c:type="PangoAttribute"/>
163       </field>
164       <field name="value" writable="1">
165         <type name="gdouble" c:type="double"/>
166       </field>
167     </record>
168     <record name="AttrFontDesc" c:type="PangoAttrFontDesc">
169       <field name="attr" writable="1">
170         <type name="Attribute" c:type="PangoAttribute"/>
171       </field>
172       <field name="desc" writable="1">
173         <type name="FontDescription" c:type="PangoFontDescription*"/>
174       </field>
175     </record>
176     <record name="AttrInt" c:type="PangoAttrInt">
177       <field name="attr" writable="1">
178         <type name="Attribute" c:type="PangoAttribute"/>
179       </field>
180       <field name="value" writable="1">
181         <type name="gint" c:type="int"/>
182       </field>
183     </record>
184     <record name="AttrIterator" c:type="PangoAttrIterator" disguised="1">
185       <method name="copy"
186               c:identifier="pango_attr_iterator_copy"
187               introspectable="0">
188         <doc xml:whitespace="preserve">Copy a #PangoAttrIterator
189 be freed with pango_attr_iterator_destroy().</doc>
190         <return-value>
191           <doc xml:whitespace="preserve">the newly allocated #PangoAttrIterator, which should</doc>
192           <type name="AttrIterator" c:type="PangoAttrIterator*"/>
193         </return-value>
194       </method>
195       <method name="destroy" c:identifier="pango_attr_iterator_destroy">
196         <doc xml:whitespace="preserve">Destroy a #PangoAttrIterator and free all associated memory.</doc>
197         <return-value transfer-ownership="none">
198           <type name="none" c:type="void"/>
199         </return-value>
200       </method>
201       <method name="get"
202               c:identifier="pango_attr_iterator_get"
203               introspectable="0">
204         <doc xml:whitespace="preserve">Find the current attribute of a particular type at the iterator
205 location. When multiple attributes of the same type overlap,
206 the attribute whose range starts closest to the current location
207 is used.
208 if no attribute of that type applies to the current
209 location.</doc>
210         <return-value>
211           <doc xml:whitespace="preserve">the current attribute of the given type, or %NULL</doc>
212           <type name="Attribute" c:type="PangoAttribute*"/>
213         </return-value>
214         <parameters>
215           <parameter name="type" transfer-ownership="none">
216             <doc xml:whitespace="preserve">the type of attribute to find.</doc>
217             <type name="AttrType" c:type="PangoAttrType"/>
218           </parameter>
219         </parameters>
220       </method>
221       <method name="get_attrs"
222               c:identifier="pango_attr_iterator_get_attrs"
223               version="1.2">
224         <doc xml:whitespace="preserve">Gets a list of all attributes at the current position of the
225 iterator.
226 all attributes for the current range.
227 To free this value, call pango_attribute_destroy() on
228 each value and g_slist_free() on the list.</doc>
229         <return-value transfer-ownership="full">
230           <doc xml:whitespace="preserve">a list of</doc>
231           <type name="GLib.SList" c:type="GSList*">
232             <type name="Attribute"/>
233           </type>
234         </return-value>
235       </method>
236       <method name="get_font" c:identifier="pango_attr_iterator_get_font">
237         <doc xml:whitespace="preserve">Get the font and other attributes at the current iterator position.</doc>
238         <return-value transfer-ownership="none">
239           <type name="none" c:type="void"/>
240         </return-value>
241         <parameters>
242           <parameter name="desc" transfer-ownership="none">
243             <doc xml:whitespace="preserve">a #PangoFontDescription to fill in with the current values. The family name in this structure will be set using pango_font_description_set_family_static() using values from an attribute in the #PangoAttrList associated with the iterator, so if you plan to keep it around, you must call: &lt;literal&gt;pango_font_description_set_family (desc, pango_font_description_get_family (desc))&lt;/literal&gt;.</doc>
244             <type name="FontDescription" c:type="PangoFontDescription*"/>
245           </parameter>
246           <parameter name="language" transfer-ownership="none">
247             <doc xml:whitespace="preserve">if non-%NULL, location to store language tag for item, or %NULL if none is found.</doc>
248             <type name="Language" c:type="PangoLanguage**"/>
249           </parameter>
250           <parameter name="extra_attrs" transfer-ownership="full">
251             <doc xml:whitespace="preserve">if non-%NULL, location in which to store a list of non-font attributes at the the current position; only the highest priority value of each attribute will be added to this list. In order to free this value, you must call pango_attribute_destroy() on each member.</doc>
252             <type name="GLib.SList" c:type="GSList**">
253               <type name="gpointer" c:type="gpointer"/>
254             </type>
255           </parameter>
256         </parameters>
257       </method>
258       <method name="next" c:identifier="pango_attr_iterator_next">
259         <doc xml:whitespace="preserve">Advance the iterator until the next change of style.</doc>
260         <return-value transfer-ownership="none">
261           <doc xml:whitespace="preserve">%FALSE if the iterator is at the end of the list, otherwise %TRUE</doc>
262           <type name="gboolean" c:type="gboolean"/>
263         </return-value>
264       </method>
265       <method name="range" c:identifier="pango_attr_iterator_range">
266         <doc xml:whitespace="preserve">Get the range of the current segment. Note that the
267 stored return values are signed, not unsigned like
268 the values in #PangoAttribute. To deal with this API
269 oversight, stored return values that wouldn't fit into
270 a signed integer are clamped to %G_MAXINT.</doc>
271         <return-value transfer-ownership="none">
272           <type name="none" c:type="void"/>
273         </return-value>
274         <parameters>
275           <parameter name="start" transfer-ownership="none">
276             <doc xml:whitespace="preserve">location to store the start of the range</doc>
277             <type name="gint" c:type="gint*"/>
278           </parameter>
279           <parameter name="end" transfer-ownership="none">
280             <doc xml:whitespace="preserve">location to store the end of the range</doc>
281             <type name="gint" c:type="gint*"/>
282           </parameter>
283         </parameters>
284       </method>
285     </record>
286     <record name="AttrLanguage" c:type="PangoAttrLanguage">
287       <field name="attr" writable="1">
288         <type name="Attribute" c:type="PangoAttribute"/>
289       </field>
290       <field name="value" writable="1">
291         <type name="Language" c:type="PangoLanguage*"/>
292       </field>
293     </record>
294     <record name="AttrList"
295             c:type="PangoAttrList"
296             glib:type-name="PangoAttrList"
297             glib:get-type="pango_attr_list_get_type"
298             c:symbol-prefix="attr_list">
299       <constructor name="new" c:identifier="pango_attr_list_new">
300         <doc xml:whitespace="preserve">Create a new empty attribute list with a reference count of one.
301 be freed with pango_attr_list_unref().</doc>
302         <return-value transfer-ownership="full">
303           <doc xml:whitespace="preserve">the newly allocated #PangoAttrList, which should</doc>
304           <type name="AttrList" c:type="PangoAttrList*"/>
305         </return-value>
306       </constructor>
307       <method name="change" c:identifier="pango_attr_list_change">
308         <doc xml:whitespace="preserve">Insert the given attribute into the #PangoAttrList. It will
309 replace any attributes of the same type on that segment
310 and be merged with any adjoining attributes that are identical.
311 This function is slower than pango_attr_list_insert() for
312 creating a attribute list in order (potentially much slower
313 for large lists). However, pango_attr_list_insert() is not
314 suitable for continually changing a set of attributes
315 since it never removes or combines existing attributes.</doc>
316         <return-value transfer-ownership="none">
317           <type name="none" c:type="void"/>
318         </return-value>
319         <parameters>
320           <parameter name="attr" transfer-ownership="none">
321             <doc xml:whitespace="preserve">the attribute to insert. Ownership of this value is assumed by the list.</doc>
322             <type name="Attribute" c:type="PangoAttribute*"/>
323           </parameter>
324         </parameters>
325       </method>
326       <method name="copy" c:identifier="pango_attr_list_copy">
327         <doc xml:whitespace="preserve">Copy @list and return an identical new list.
328 reference count of one, which should
329 be freed with pango_attr_list_unref().
330 Returns %NULL if @list was %NULL.</doc>
331         <return-value transfer-ownership="full">
332           <doc xml:whitespace="preserve">the newly allocated #PangoAttrList, with a</doc>
333           <type name="AttrList" c:type="PangoAttrList*"/>
334         </return-value>
335       </method>
336       <method name="filter"
337               c:identifier="pango_attr_list_filter"
338               version="1.2"
339               introspectable="0">
340         <doc xml:whitespace="preserve">Given a #PangoAttrList and callback function, removes any elements
341 of @list for which @func returns %TRUE and inserts them into
342 a new list.
343 no attributes of the given types were found.</doc>
344         <return-value transfer-ownership="full">
345           <doc xml:whitespace="preserve">the new #PangoAttrList or %NULL if</doc>
346           <type name="AttrList" c:type="PangoAttrList*"/>
347         </return-value>
348         <parameters>
349           <parameter name="func" transfer-ownership="none" closure="1">
350             <doc xml:whitespace="preserve">callback function; returns %TRUE if an attribute should be filtered out.</doc>
351             <type name="AttrFilterFunc" c:type="PangoAttrFilterFunc"/>
352           </parameter>
353           <parameter name="data" transfer-ownership="none">
354             <doc xml:whitespace="preserve">Data to be passed to @func</doc>
355             <type name="gpointer" c:type="gpointer"/>
356           </parameter>
357         </parameters>
358       </method>
359       <method name="get_iterator"
360               c:identifier="pango_attr_list_get_iterator"
361               introspectable="0">
362         <doc xml:whitespace="preserve">Create a iterator initialized to the beginning of the list.
363 be freed with pango_attr_iterator_destroy().</doc>
364         <return-value>
365           <doc xml:whitespace="preserve">the newly allocated #PangoAttrIterator, which should</doc>
366           <type name="AttrIterator" c:type="PangoAttrIterator*"/>
367         </return-value>
368       </method>
369       <method name="insert" c:identifier="pango_attr_list_insert">
370         <doc xml:whitespace="preserve">Insert the given attribute into the #PangoAttrList. It will
371 be inserted after all other attributes with a matching</doc>
372         <return-value transfer-ownership="none">
373           <type name="none" c:type="void"/>
374         </return-value>
375         <parameters>
376           <parameter name="attr" transfer-ownership="none">
377             <doc xml:whitespace="preserve">the attribute to insert. Ownership of this value is assumed by the list.</doc>
378             <type name="Attribute" c:type="PangoAttribute*"/>
379           </parameter>
380         </parameters>
381       </method>
382       <method name="insert_before"
383               c:identifier="pango_attr_list_insert_before">
384         <doc xml:whitespace="preserve">Insert the given attribute into the #PangoAttrList. It will
385 be inserted before all other attributes with a matching</doc>
386         <return-value transfer-ownership="none">
387           <type name="none" c:type="void"/>
388         </return-value>
389         <parameters>
390           <parameter name="attr" transfer-ownership="none">
391             <doc xml:whitespace="preserve">the attribute to insert. Ownership of this value is assumed by the list.</doc>
392             <type name="Attribute" c:type="PangoAttribute*"/>
393           </parameter>
394         </parameters>
395       </method>
396       <method name="ref" c:identifier="pango_attr_list_ref" version="1.10">
397         <doc xml:whitespace="preserve">Increase the reference count of the given attribute list by one.</doc>
398         <return-value transfer-ownership="full">
399           <doc xml:whitespace="preserve">The attribute list passed in</doc>
400           <type name="AttrList" c:type="PangoAttrList*"/>
401         </return-value>
402       </method>
403       <method name="splice" c:identifier="pango_attr_list_splice">
404         <doc xml:whitespace="preserve">This function opens up a hole in @list, fills it in with attributes from
405 the left, and then merges @other on top of the hole.
406 This operation is equivalent to stretching every attribute
407 that applies at position @pos in @list by an amount @len,
408 and then calling pango_attr_list_change() with a copy
409 of each attribute in @other in sequence (offset in position by @pos).
410 This operation proves useful for, for instance, inserting
411 a pre-edit string in the middle of an edit buffer.</doc>
412         <return-value transfer-ownership="none">
413           <type name="none" c:type="void"/>
414         </return-value>
415         <parameters>
416           <parameter name="other" transfer-ownership="none">
417             <doc xml:whitespace="preserve">another #PangoAttrList</doc>
418             <type name="AttrList" c:type="PangoAttrList*"/>
419           </parameter>
420           <parameter name="pos" transfer-ownership="none">
421             <doc xml:whitespace="preserve">the position in @list at which to insert @other</doc>
422             <type name="gint" c:type="gint"/>
423           </parameter>
424           <parameter name="len" transfer-ownership="none">
425             <doc xml:whitespace="preserve">the length of the spliced segment. (Note that this must be specified since the attributes in @other may only be present at some subsection of this range)</doc>
426             <type name="gint" c:type="gint"/>
427           </parameter>
428         </parameters>
429       </method>
430       <method name="unref" c:identifier="pango_attr_list_unref">
431         <doc xml:whitespace="preserve">Decrease the reference count of the given attribute list by one.
432 If the result is zero, free the attribute list and the attributes
433 it contains.</doc>
434         <return-value transfer-ownership="none">
435           <type name="none" c:type="void"/>
436         </return-value>
437       </method>
438     </record>
439     <record name="AttrShape" c:type="PangoAttrShape">
440       <field name="attr" writable="1">
441         <type name="Attribute" c:type="PangoAttribute"/>
442       </field>
443       <field name="ink_rect" writable="1">
444         <type name="Rectangle" c:type="PangoRectangle"/>
445       </field>
446       <field name="logical_rect" writable="1">
447         <type name="Rectangle" c:type="PangoRectangle"/>
448       </field>
449       <field name="data" writable="1">
450         <type name="gpointer" c:type="gpointer"/>
451       </field>
452       <field name="copy_func" introspectable="0" writable="1">
453         <type name="AttrDataCopyFunc" c:type="PangoAttrDataCopyFunc"/>
454       </field>
455       <field name="destroy_func" writable="1">
456         <type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
457       </field>
458     </record>
459     <record name="AttrSize" c:type="PangoAttrSize">
460       <field name="attr" writable="1">
461         <type name="Attribute" c:type="PangoAttribute"/>
462       </field>
463       <field name="size" writable="1">
464         <type name="gint" c:type="int"/>
465       </field>
466       <field name="absolute" writable="1" bits="1">
467         <type name="guint" c:type="guint"/>
468       </field>
469     </record>
470     <record name="AttrString" c:type="PangoAttrString">
471       <field name="attr" writable="1">
472         <type name="Attribute" c:type="PangoAttribute"/>
473       </field>
474       <field name="value" writable="1">
475         <type name="utf8" c:type="char*"/>
476       </field>
477     </record>
478     <enumeration name="AttrType"
479                  glib:type-name="PangoAttrType"
480                  glib:get-type="pango_attr_type_get_type"
481                  c:type="PangoAttrType">
482       <member name="invalid"
483               value="0"
484               c:identifier="PANGO_ATTR_INVALID"
485               glib:nick="invalid"/>
486       <member name="language"
487               value="1"
488               c:identifier="PANGO_ATTR_LANGUAGE"
489               glib:nick="language"/>
490       <member name="family"
491               value="2"
492               c:identifier="PANGO_ATTR_FAMILY"
493               glib:nick="family"/>
494       <member name="style"
495               value="3"
496               c:identifier="PANGO_ATTR_STYLE"
497               glib:nick="style"/>
498       <member name="weight"
499               value="4"
500               c:identifier="PANGO_ATTR_WEIGHT"
501               glib:nick="weight"/>
502       <member name="variant"
503               value="5"
504               c:identifier="PANGO_ATTR_VARIANT"
505               glib:nick="variant"/>
506       <member name="stretch"
507               value="6"
508               c:identifier="PANGO_ATTR_STRETCH"
509               glib:nick="stretch"/>
510       <member name="size"
511               value="7"
512               c:identifier="PANGO_ATTR_SIZE"
513               glib:nick="size"/>
514       <member name="font_desc"
515               value="8"
516               c:identifier="PANGO_ATTR_FONT_DESC"
517               glib:nick="font-desc"/>
518       <member name="foreground"
519               value="9"
520               c:identifier="PANGO_ATTR_FOREGROUND"
521               glib:nick="foreground"/>
522       <member name="background"
523               value="10"
524               c:identifier="PANGO_ATTR_BACKGROUND"
525               glib:nick="background"/>
526       <member name="underline"
527               value="11"
528               c:identifier="PANGO_ATTR_UNDERLINE"
529               glib:nick="underline"/>
530       <member name="strikethrough"
531               value="12"
532               c:identifier="PANGO_ATTR_STRIKETHROUGH"
533               glib:nick="strikethrough"/>
534       <member name="rise"
535               value="13"
536               c:identifier="PANGO_ATTR_RISE"
537               glib:nick="rise"/>
538       <member name="shape"
539               value="14"
540               c:identifier="PANGO_ATTR_SHAPE"
541               glib:nick="shape"/>
542       <member name="scale"
543               value="15"
544               c:identifier="PANGO_ATTR_SCALE"
545               glib:nick="scale"/>
546       <member name="fallback"
547               value="16"
548               c:identifier="PANGO_ATTR_FALLBACK"
549               glib:nick="fallback"/>
550       <member name="letter_spacing"
551               value="17"
552               c:identifier="PANGO_ATTR_LETTER_SPACING"
553               glib:nick="letter-spacing"/>
554       <member name="underline_color"
555               value="18"
556               c:identifier="PANGO_ATTR_UNDERLINE_COLOR"
557               glib:nick="underline-color"/>
558       <member name="strikethrough_color"
559               value="19"
560               c:identifier="PANGO_ATTR_STRIKETHROUGH_COLOR"
561               glib:nick="strikethrough-color"/>
562       <member name="absolute_size"
563               value="20"
564               c:identifier="PANGO_ATTR_ABSOLUTE_SIZE"
565               glib:nick="absolute-size"/>
566       <member name="gravity"
567               value="21"
568               c:identifier="PANGO_ATTR_GRAVITY"
569               glib:nick="gravity"/>
570       <member name="gravity_hint"
571               value="22"
572               c:identifier="PANGO_ATTR_GRAVITY_HINT"
573               glib:nick="gravity-hint"/>
574     </enumeration>
575     <record name="Attribute" c:type="PangoAttribute">
576       <field name="klass" writable="1">
577         <type name="AttrClass" c:type="PangoAttrClass*"/>
578       </field>
579       <field name="start_index" writable="1">
580         <type name="guint" c:type="guint"/>
581       </field>
582       <field name="end_index" writable="1">
583         <type name="guint" c:type="guint"/>
584       </field>
585       <method name="copy"
586               c:identifier="pango_attribute_copy"
587               introspectable="0">
588         <doc xml:whitespace="preserve">Make a copy of an attribute.
589 freed with pango_attribute_destroy().</doc>
590         <return-value>
591           <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
592           <type name="Attribute" c:type="PangoAttribute*"/>
593         </return-value>
594       </method>
595       <method name="destroy" c:identifier="pango_attribute_destroy">
596         <doc xml:whitespace="preserve">Destroy a #PangoAttribute and free all associated memory.</doc>
597         <return-value transfer-ownership="none">
598           <type name="none" c:type="void"/>
599         </return-value>
600       </method>
601       <method name="equal" c:identifier="pango_attribute_equal">
602         <doc xml:whitespace="preserve">Compare two attributes for equality. This compares only the
603 actual value of the two attributes and not the ranges that the
604 attributes apply to.</doc>
605         <return-value transfer-ownership="none">
606           <doc xml:whitespace="preserve">%TRUE if the two attributes have the same value.</doc>
607           <type name="gboolean" c:type="gboolean"/>
608         </return-value>
609         <parameters>
610           <parameter name="attr2" transfer-ownership="none">
611             <doc xml:whitespace="preserve">another #PangoAttribute</doc>
612             <type name="Attribute" c:type="PangoAttribute*"/>
613           </parameter>
614         </parameters>
615       </method>
616       <method name="init" c:identifier="pango_attribute_init" version="1.20">
617         <doc xml:whitespace="preserve">Initializes @attr's klass to @klass,
618 it's start_index to %PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING
619 and end_index to %PANGO_ATTR_INDEX_TO_TEXT_END
620 such that the attribute applies
621 to the entire text by default.</doc>
622         <return-value transfer-ownership="none">
623           <type name="none" c:type="void"/>
624         </return-value>
625         <parameters>
626           <parameter name="klass" transfer-ownership="none">
627             <doc xml:whitespace="preserve">a #PangoAttributeClass</doc>
628             <type name="AttrClass" c:type="PangoAttrClass*"/>
629           </parameter>
630         </parameters>
631       </method>
632     </record>
633     <enumeration name="BidiType"
634                  version="1.22"
635                  glib:type-name="PangoBidiType"
636                  glib:get-type="pango_bidi_type_get_type"
637                  c:type="PangoBidiType">
638       <doc xml:whitespace="preserve">The #PangoBidiType type represents the bidirectional character
639 type of a Unicode character as specified by the
640 &lt;ulink url="http://www.unicode.org/reports/tr9/"&gt;Unicode bidirectional algorithm&lt;/ulink&gt;.</doc>
641       <member name="l"
642               value="0"
643               c:identifier="PANGO_BIDI_TYPE_L"
644               glib:nick="l"/>
645       <member name="lre"
646               value="1"
647               c:identifier="PANGO_BIDI_TYPE_LRE"
648               glib:nick="lre"/>
649       <member name="lro"
650               value="2"
651               c:identifier="PANGO_BIDI_TYPE_LRO"
652               glib:nick="lro"/>
653       <member name="r"
654               value="3"
655               c:identifier="PANGO_BIDI_TYPE_R"
656               glib:nick="r"/>
657       <member name="al"
658               value="4"
659               c:identifier="PANGO_BIDI_TYPE_AL"
660               glib:nick="al"/>
661       <member name="rle"
662               value="5"
663               c:identifier="PANGO_BIDI_TYPE_RLE"
664               glib:nick="rle"/>
665       <member name="rlo"
666               value="6"
667               c:identifier="PANGO_BIDI_TYPE_RLO"
668               glib:nick="rlo"/>
669       <member name="pdf"
670               value="7"
671               c:identifier="PANGO_BIDI_TYPE_PDF"
672               glib:nick="pdf"/>
673       <member name="en"
674               value="8"
675               c:identifier="PANGO_BIDI_TYPE_EN"
676               glib:nick="en"/>
677       <member name="es"
678               value="9"
679               c:identifier="PANGO_BIDI_TYPE_ES"
680               glib:nick="es"/>
681       <member name="et"
682               value="10"
683               c:identifier="PANGO_BIDI_TYPE_ET"
684               glib:nick="et"/>
685       <member name="an"
686               value="11"
687               c:identifier="PANGO_BIDI_TYPE_AN"
688               glib:nick="an"/>
689       <member name="cs"
690               value="12"
691               c:identifier="PANGO_BIDI_TYPE_CS"
692               glib:nick="cs"/>
693       <member name="nsm"
694               value="13"
695               c:identifier="PANGO_BIDI_TYPE_NSM"
696               glib:nick="nsm"/>
697       <member name="bn"
698               value="14"
699               c:identifier="PANGO_BIDI_TYPE_BN"
700               glib:nick="bn"/>
701       <member name="b"
702               value="15"
703               c:identifier="PANGO_BIDI_TYPE_B"
704               glib:nick="b"/>
705       <member name="s"
706               value="16"
707               c:identifier="PANGO_BIDI_TYPE_S"
708               glib:nick="s"/>
709       <member name="ws"
710               value="17"
711               c:identifier="PANGO_BIDI_TYPE_WS"
712               glib:nick="ws"/>
713       <member name="on"
714               value="18"
715               c:identifier="PANGO_BIDI_TYPE_ON"
716               glib:nick="on"/>
717     </enumeration>
718     <record name="Color"
719             c:type="PangoColor"
720             glib:type-name="PangoColor"
721             glib:get-type="pango_color_get_type"
722             c:symbol-prefix="color">
723       <field name="red" writable="1">
724         <type name="guint16" c:type="guint16"/>
725       </field>
726       <field name="green" writable="1">
727         <type name="guint16" c:type="guint16"/>
728       </field>
729       <field name="blue" writable="1">
730         <type name="guint16" c:type="guint16"/>
731       </field>
732       <method name="copy" c:identifier="pango_color_copy">
733         <doc xml:whitespace="preserve">Creates a copy of @src, which should be freed with
734 pango_color_free(). Primarily used by language bindings,
735 not that useful otherwise (since colors can just be copied
736 by assignment in C).
737 be freed with pango_color_free(), or %NULL
738 if @src was %NULL.</doc>
739         <return-value transfer-ownership="full">
740           <doc xml:whitespace="preserve">the newly allocated #PangoColor, which should</doc>
741           <type name="Color" c:type="PangoColor*"/>
742         </return-value>
743       </method>
744       <method name="free" c:identifier="pango_color_free">
745         <doc xml:whitespace="preserve">Frees a color allocated by pango_color_copy().</doc>
746         <return-value transfer-ownership="none">
747           <type name="none" c:type="void"/>
748         </return-value>
749       </method>
750       <method name="parse" c:identifier="pango_color_parse">
751         <doc xml:whitespace="preserve">Fill in the fields of a color from a string specification. The
752 string can either one of a large set of standard names. (Taken
753 from the X11 &lt;filename&gt;rgb.txt&lt;/filename&gt; file), or it can be a hex value in the
754 form '&amp;num;rgb' '&amp;num;rrggbb' '&amp;num;rrrgggbbb' or '&amp;num;rrrrggggbbbb' where
755 'r', 'g' and 'b' are hex digits of the red, green, and blue
756 components of the color, respectively. (White in the four
757 forms is '&amp;num;fff' '&amp;num;ffffff' '&amp;num;fffffffff' and '&amp;num;ffffffffffff')
758 otherwise false.</doc>
759         <return-value transfer-ownership="none">
760           <doc xml:whitespace="preserve">%TRUE if parsing of the specifier succeeded,</doc>
761           <type name="gboolean" c:type="gboolean"/>
762         </return-value>
763         <parameters>
764           <parameter name="spec" transfer-ownership="none">
765             <doc xml:whitespace="preserve">a string specifying the new color</doc>
766             <type name="utf8" c:type="char*"/>
767           </parameter>
768         </parameters>
769       </method>
770       <method name="to_string"
771               c:identifier="pango_color_to_string"
772               version="1.16">
773         <doc xml:whitespace="preserve">Returns a textual specification of @color in the hexadecimal form
774 &lt;literal&gt;&amp;num;rrrrggggbbbb&lt;/literal&gt;, where &lt;literal&gt;r&lt;/literal&gt;,
775 &lt;literal&gt;g&lt;/literal&gt; and &lt;literal&gt;b&lt;/literal&gt; are hex digits representing
776 the red, green, and blue components respectively.</doc>
777         <return-value transfer-ownership="full">
778           <doc xml:whitespace="preserve">a newly-allocated text string that must be freed with g_free().</doc>
779           <type name="utf8" c:type="gchar*"/>
780         </return-value>
781       </method>
782     </record>
783     <class name="Context"
784            c:symbol-prefix="context"
785            c:type="PangoContext"
786            parent="GObject.Object"
787            glib:type-name="PangoContext"
788            glib:get-type="pango_context_get_type"
789            glib:type-struct="ContextClass">
790       <constructor name="new" c:identifier="pango_context_new">
791         <doc xml:whitespace="preserve">Creates a new #PangoContext initialized to default values.
792 This function is not particularly useful as it should always
793 be followed by a pango_context_set_font_map() call, and the
794 function pango_font_map_create_context() does these two steps
795 together and hence users are recommended to use that.
796 If you are using Pango as part of a higher-level system,
797 that system may have it's own way of create a #PangoContext.
798 For instance, the GTK+ toolkit has, among others,
799 gdk_pango_context_get_for_screen(), and
800 gtk_widget_get_pango_context().  Use those instead.
801 be freed with g_object_unref().</doc>
802         <return-value transfer-ownership="full">
803           <doc xml:whitespace="preserve">the newly allocated #PangoContext, which should</doc>
804           <type name="Context" c:type="PangoContext*"/>
805         </return-value>
806       </constructor>
807       <method name="get_base_dir" c:identifier="pango_context_get_base_dir">
808         <doc xml:whitespace="preserve">Retrieves the base direction for the context. See
809 pango_context_set_base_dir().</doc>
810         <return-value transfer-ownership="none">
811           <doc xml:whitespace="preserve">the base direction for the context.</doc>
812           <type name="Direction" c:type="PangoDirection"/>
813         </return-value>
814       </method>
815       <method name="get_base_gravity"
816               c:identifier="pango_context_get_base_gravity"
817               version="1.16">
818         <doc xml:whitespace="preserve">Retrieves the base gravity for the context. See
819 pango_context_set_base_gravity().</doc>
820         <return-value transfer-ownership="none">
821           <doc xml:whitespace="preserve">the base gravity for the context.</doc>
822           <type name="Gravity" c:type="PangoGravity"/>
823         </return-value>
824       </method>
825       <method name="get_font_description"
826               c:identifier="pango_context_get_font_description">
827         <doc xml:whitespace="preserve">Retrieve the default font description for the context.
828 This value must not be modified or freed.</doc>
829         <return-value transfer-ownership="full">
830           <doc xml:whitespace="preserve">a pointer to the context's default font description.</doc>
831           <type name="FontDescription" c:type="PangoFontDescription*"/>
832         </return-value>
833       </method>
834       <method name="get_font_map"
835               c:identifier="pango_context_get_font_map"
836               version="1.6"
837               introspectable="0">
838         <doc xml:whitespace="preserve">Gets the #PangoFontmap used to look up fonts for this context.
839 is owned by Pango and should not be unreferenced.</doc>
840         <return-value>
841           <doc xml:whitespace="preserve">the font map for the #PangoContext. This value</doc>
842           <type name="FontMap" c:type="PangoFontMap*"/>
843         </return-value>
844       </method>
845       <method name="get_gravity"
846               c:identifier="pango_context_get_gravity"
847               version="1.16">
848         <doc xml:whitespace="preserve">Retrieves the gravity for the context. This is similar to
849 pango_context_get_base_gravity(), except for when the base gravity
850 is %PANGO_GRAVITY_AUTO for which pango_gravity_get_for_matrix() is used
851 to return the gravity from the current context matrix.</doc>
852         <return-value transfer-ownership="none">
853           <doc xml:whitespace="preserve">the resolved gravity for the context.</doc>
854           <type name="Gravity" c:type="PangoGravity"/>
855         </return-value>
856       </method>
857       <method name="get_gravity_hint"
858               c:identifier="pango_context_get_gravity_hint"
859               version="1.16">
860         <doc xml:whitespace="preserve">Retrieves the gravity hint for the context. See
861 pango_context_set_gravity_hint() for details.</doc>
862         <return-value transfer-ownership="none">
863           <doc xml:whitespace="preserve">the gravity hint for the context.</doc>
864           <type name="GravityHint" c:type="PangoGravityHint"/>
865         </return-value>
866       </method>
867       <method name="get_language" c:identifier="pango_context_get_language">
868         <doc xml:whitespace="preserve">Retrieves the global language tag for the context.</doc>
869         <return-value transfer-ownership="full">
870           <doc xml:whitespace="preserve">the global language tag.</doc>
871           <type name="Language" c:type="PangoLanguage*"/>
872         </return-value>
873       </method>
874       <method name="get_matrix"
875               c:identifier="pango_context_get_matrix"
876               version="1.6">
877         <doc xml:whitespace="preserve">Gets the transformation matrix that will be applied when
878 rendering with this context. See pango_context_set_matrix().
879 (which is the same as the identity matrix). The returned
880 matrix is owned by Pango and must not be modified or
881 freed.</doc>
882         <return-value transfer-ownership="none">
883           <doc xml:whitespace="preserve">the matrix, or %NULL if no matrix has been set</doc>
884           <type name="Matrix" c:type="PangoMatrix*"/>
885         </return-value>
886       </method>
887       <method name="get_metrics" c:identifier="pango_context_get_metrics">
888         <doc xml:whitespace="preserve">Get overall metric information for a particular font
889 description.  Since the metrics may be substantially different for
890 different scripts, a language tag can be provided to indicate that
891 the metrics should be retrieved that correspond to the script(s)
892 used by that language.
893 The #PangoFontDescription is interpreted in the same way as
894 by pango_itemize(), and the family name may be a comma separated
895 list of figures. If characters from multiple of these families
896 would be used to render the string, then the returned fonts would
897 be a composite of the metrics for the fonts loaded for the
898 individual families.
899 when finished using the object.</doc>
900         <return-value transfer-ownership="full">
901           <doc xml:whitespace="preserve">a #PangoFontMetrics object. The caller must call pango_font_metrics_unref()</doc>
902           <type name="FontMetrics" c:type="PangoFontMetrics*"/>
903         </return-value>
904         <parameters>
905           <parameter name="desc" transfer-ownership="none">
906             <doc xml:whitespace="preserve">a #PangoFontDescription structure.  %NULL means that the font description from the context will be used.</doc>
907             <type name="FontDescription" c:type="PangoFontDescription*"/>
908           </parameter>
909           <parameter name="language" transfer-ownership="none">
910             <doc xml:whitespace="preserve">language tag used to determine which script to get the metrics for. %NULL means that the language tag from the context will be used. If no language tag is set on the context, metrics for the default language (as determined by pango_language_get_default()) will be returned.</doc>
911             <type name="Language" c:type="PangoLanguage*"/>
912           </parameter>
913         </parameters>
914       </method>
915       <method name="list_families" c:identifier="pango_context_list_families">
916         <doc xml:whitespace="preserve">List all families for a context.</doc>
917         <return-value transfer-ownership="none">
918           <type name="none" c:type="void"/>
919         </return-value>
920         <parameters>
921           <parameter name="families" transfer-ownership="none">
922             <doc xml:whitespace="preserve">location to store a pointer to an array of #PangoFontFamily *. This array should be freed with g_free().</doc>
923             <type name="FontFamily" c:type="PangoFontFamily***"/>
924           </parameter>
925           <parameter name="n_families" transfer-ownership="none">
926             <doc xml:whitespace="preserve">location to store the number of elements in @descs</doc>
927             <type name="gint" c:type="int*"/>
928           </parameter>
929         </parameters>
930       </method>
931       <method name="load_font"
932               c:identifier="pango_context_load_font"
933               introspectable="0">
934         <doc xml:whitespace="preserve">Loads the font in one of the fontmaps in the context
935 that is the closest match for @desc.</doc>
936         <return-value>
937           <doc xml:whitespace="preserve">the font loaded, or %NULL if no font matched.</doc>
938           <type name="Font" c:type="PangoFont*"/>
939         </return-value>
940         <parameters>
941           <parameter name="desc" transfer-ownership="none">
942             <doc xml:whitespace="preserve">a #PangoFontDescription describing the font to load</doc>
943             <type name="FontDescription" c:type="PangoFontDescription*"/>
944           </parameter>
945         </parameters>
946       </method>
947       <method name="load_fontset"
948               c:identifier="pango_context_load_fontset"
949               introspectable="0">
950         <doc xml:whitespace="preserve">Load a set of fonts in the context that can be used to render
951 a font matching @desc.</doc>
952         <return-value>
953           <doc xml:whitespace="preserve">the fontset, or %NULL if no font matched.</doc>
954           <type name="Fontset" c:type="PangoFontset*"/>
955         </return-value>
956         <parameters>
957           <parameter name="desc" transfer-ownership="none">
958             <doc xml:whitespace="preserve">a #PangoFontDescription describing the fonts to load</doc>
959             <type name="FontDescription" c:type="PangoFontDescription*"/>
960           </parameter>
961           <parameter name="language" transfer-ownership="none">
962             <doc xml:whitespace="preserve">a #PangoLanguage the fonts will be used for</doc>
963             <type name="Language" c:type="PangoLanguage*"/>
964           </parameter>
965         </parameters>
966       </method>
967       <method name="set_base_dir" c:identifier="pango_context_set_base_dir">
968         <doc xml:whitespace="preserve">Sets the base direction for the context.
969 The base direction is used in applying the Unicode bidirectional
970 algorithm; if the @direction is %PANGO_DIRECTION_LTR or
971 %PANGO_DIRECTION_RTL, then the value will be used as the paragraph
972 direction in the Unicode bidirectional algorithm.  A value of
973 %PANGO_DIRECTION_WEAK_LTR or %PANGO_DIRECTION_WEAK_RTL is used only
974 for paragraphs that do not contain any strong characters themselves.</doc>
975         <return-value transfer-ownership="none">
976           <type name="none" c:type="void"/>
977         </return-value>
978         <parameters>
979           <parameter name="direction" transfer-ownership="none">
980             <doc xml:whitespace="preserve">the new base direction</doc>
981             <type name="Direction" c:type="PangoDirection"/>
982           </parameter>
983         </parameters>
984       </method>
985       <method name="set_base_gravity"
986               c:identifier="pango_context_set_base_gravity"
987               version="1.16">
988         <doc xml:whitespace="preserve">Sets the base gravity for the context.
989 The base gravity is used in laying vertical text out.</doc>
990         <return-value transfer-ownership="none">
991           <type name="none" c:type="void"/>
992         </return-value>
993         <parameters>
994           <parameter name="gravity" transfer-ownership="none">
995             <doc xml:whitespace="preserve">the new base gravity</doc>
996             <type name="Gravity" c:type="PangoGravity"/>
997           </parameter>
998         </parameters>
999       </method>
1000       <method name="set_font_description"
1001               c:identifier="pango_context_set_font_description">
1002         <doc xml:whitespace="preserve">Set the default font description for the context</doc>
1003         <return-value transfer-ownership="none">
1004           <type name="none" c:type="void"/>
1005         </return-value>
1006         <parameters>
1007           <parameter name="desc" transfer-ownership="none">
1008             <doc xml:whitespace="preserve">the new pango font description</doc>
1009             <type name="FontDescription" c:type="PangoFontDescription*"/>
1010           </parameter>
1011         </parameters>
1012       </method>
1013       <method name="set_font_map" c:identifier="pango_context_set_font_map">
1014         <doc xml:whitespace="preserve">Sets the font map to be searched when fonts are looked-up in this context.
1015 This is only for internal use by Pango backends, a #PangoContext obtained
1016 via one of the recommended methods should already have a suitable font map.</doc>
1017         <return-value transfer-ownership="none">
1018           <type name="none" c:type="void"/>
1019         </return-value>
1020         <parameters>
1021           <parameter name="font_map" transfer-ownership="none">
1022             <doc xml:whitespace="preserve">the #PangoFontMap to set.</doc>
1023             <type name="FontMap" c:type="PangoFontMap*"/>
1024           </parameter>
1025         </parameters>
1026       </method>
1027       <method name="set_gravity_hint"
1028               c:identifier="pango_context_set_gravity_hint"
1029               version="1.16">
1030         <doc xml:whitespace="preserve">Sets the gravity hint for the context.
1031 The gravity hint is used in laying vertical text out, and is only relevant
1032 if gravity of the context as returned by pango_context_get_gravity()
1033 is set %PANGO_GRAVITY_EAST or %PANGO_GRAVITY_WEST.</doc>
1034         <return-value transfer-ownership="none">
1035           <type name="none" c:type="void"/>
1036         </return-value>
1037         <parameters>
1038           <parameter name="hint" transfer-ownership="none">
1039             <doc xml:whitespace="preserve">the new gravity hint</doc>
1040             <type name="GravityHint" c:type="PangoGravityHint"/>
1041           </parameter>
1042         </parameters>
1043       </method>
1044       <method name="set_language" c:identifier="pango_context_set_language">
1045         <doc xml:whitespace="preserve">Sets the global language tag for the context.  The default language
1046 for the locale of the running process can be found using
1047 pango_language_get_default().</doc>
1048         <return-value transfer-ownership="none">
1049           <type name="none" c:type="void"/>
1050         </return-value>
1051         <parameters>
1052           <parameter name="language" transfer-ownership="none">
1053             <doc xml:whitespace="preserve">the new language tag.</doc>
1054             <type name="Language" c:type="PangoLanguage*"/>
1055           </parameter>
1056         </parameters>
1057       </method>
1058       <method name="set_matrix"
1059               c:identifier="pango_context_set_matrix"
1060               version="1.6">
1061         <doc xml:whitespace="preserve">Sets the transformation matrix that will be applied when rendering
1062 with this context. Note that reported metrics are in the user space
1063 coordinates before the application of the matrix, not device-space
1064 coordinates after the application of the matrix. So, they don't scale
1065 with the matrix, though they may change slightly for different
1066 matrices, depending on how the text is fit to the pixel grid.</doc>
1067         <return-value transfer-ownership="none">
1068           <type name="none" c:type="void"/>
1069         </return-value>
1070         <parameters>
1071           <parameter name="matrix" transfer-ownership="none">
1072             <doc xml:whitespace="preserve">a #PangoMatrix, or %NULL to unset any existing matrix. (No matrix set is the same as setting the identity matrix.)</doc>
1073             <type name="Matrix" c:type="PangoMatrix*"/>
1074           </parameter>
1075         </parameters>
1076       </method>
1077     </class>
1078     <record name="ContextClass"
1079             c:type="PangoContextClass"
1080             disguised="1"
1081             glib:is-gtype-struct-for="Context">
1082     </record>
1083     <record name="Coverage" c:type="PangoCoverage" disguised="1">
1084       <method name="copy"
1085               c:identifier="pango_coverage_copy"
1086               introspectable="0">
1087         <doc xml:whitespace="preserve">Copy an existing #PangoCoverage. (This function may now be unnecessary
1088 since we refcount the structure. File a bug if you use it.)
1089 with a reference count of one, which
1090 should be freed with pango_coverage_unref().</doc>
1091         <return-value>
1092           <doc xml:whitespace="preserve">the newly allocated #PangoCoverage,</doc>
1093           <type name="Coverage" c:type="PangoCoverage*"/>
1094         </return-value>
1095       </method>
1096       <method name="get" c:identifier="pango_coverage_get">
1097         <doc xml:whitespace="preserve">Determine whether a particular index is covered by @coverage</doc>
1098         <return-value transfer-ownership="none">
1099           <doc xml:whitespace="preserve">the coverage level of @coverage for character @index_.</doc>
1100           <type name="CoverageLevel" c:type="PangoCoverageLevel"/>
1101         </return-value>
1102         <parameters>
1103           <parameter name="index_" transfer-ownership="none">
1104             <doc xml:whitespace="preserve">the index to check</doc>
1105             <type name="gint" c:type="int"/>
1106           </parameter>
1107         </parameters>
1108       </method>
1109       <method name="max" c:identifier="pango_coverage_max">
1110         <doc xml:whitespace="preserve">Set the coverage for each index in @coverage to be the max (better)
1111 value of the current coverage for the index and the coverage for
1112 the corresponding index in @other.</doc>
1113         <return-value transfer-ownership="none">
1114           <type name="none" c:type="void"/>
1115         </return-value>
1116         <parameters>
1117           <parameter name="other" transfer-ownership="none">
1118             <doc xml:whitespace="preserve">another #PangoCoverage</doc>
1119             <type name="Coverage" c:type="PangoCoverage*"/>
1120           </parameter>
1121         </parameters>
1122       </method>
1123       <method name="ref" c:identifier="pango_coverage_ref" introspectable="0">
1124         <doc xml:whitespace="preserve">Increase the reference count on the #PangoCoverage by one</doc>
1125         <return-value>
1126           <doc xml:whitespace="preserve">@coverage</doc>
1127           <type name="Coverage" c:type="PangoCoverage*"/>
1128         </return-value>
1129       </method>
1130       <method name="set" c:identifier="pango_coverage_set">
1131         <doc xml:whitespace="preserve">Modify a particular index within @coverage</doc>
1132         <return-value transfer-ownership="none">
1133           <type name="none" c:type="void"/>
1134         </return-value>
1135         <parameters>
1136           <parameter name="index_" transfer-ownership="none">
1137             <doc xml:whitespace="preserve">the index to modify</doc>
1138             <type name="gint" c:type="int"/>
1139           </parameter>
1140           <parameter name="level" transfer-ownership="none">
1141             <doc xml:whitespace="preserve">the new level for @index_</doc>
1142             <type name="CoverageLevel" c:type="PangoCoverageLevel"/>
1143           </parameter>
1144         </parameters>
1145       </method>
1146       <method name="to_bytes" c:identifier="pango_coverage_to_bytes">
1147         <doc xml:whitespace="preserve">Convert a #PangoCoverage structure into a flat binary format</doc>
1148         <return-value transfer-ownership="none">
1149           <type name="none" c:type="void"/>
1150         </return-value>
1151         <parameters>
1152           <parameter name="bytes" transfer-ownership="none">
1153             <doc xml:whitespace="preserve">location to store result (must be freed with g_free())</doc>
1154             <type name="guint8" c:type="guchar**"/>
1155           </parameter>
1156           <parameter name="n_bytes" transfer-ownership="none">
1157             <doc xml:whitespace="preserve">location to store size of result</doc>
1158             <type name="gint" c:type="int*"/>
1159           </parameter>
1160         </parameters>
1161       </method>
1162       <method name="unref" c:identifier="pango_coverage_unref">
1163         <doc xml:whitespace="preserve">Decrease the reference count on the #PangoCoverage by one.
1164 If the result is zero, free the coverage and all associated memory.</doc>
1165         <return-value transfer-ownership="none">
1166           <type name="none" c:type="void"/>
1167         </return-value>
1168       </method>
1169     </record>
1170     <enumeration name="CoverageLevel"
1171                  glib:type-name="PangoCoverageLevel"
1172                  glib:get-type="pango_coverage_level_get_type"
1173                  c:type="PangoCoverageLevel">
1174       <member name="none"
1175               value="0"
1176               c:identifier="PANGO_COVERAGE_NONE"
1177               glib:nick="none"/>
1178       <member name="fallback"
1179               value="1"
1180               c:identifier="PANGO_COVERAGE_FALLBACK"
1181               glib:nick="fallback"/>
1182       <member name="approximate"
1183               value="2"
1184               c:identifier="PANGO_COVERAGE_APPROXIMATE"
1185               glib:nick="approximate"/>
1186       <member name="exact"
1187               value="3"
1188               c:identifier="PANGO_COVERAGE_EXACT"
1189               glib:nick="exact"/>
1190     </enumeration>
1191     <enumeration name="Direction"
1192                  glib:type-name="PangoDirection"
1193                  glib:get-type="pango_direction_get_type"
1194                  c:type="PangoDirection">
1195       <doc xml:whitespace="preserve">The #PangoDirection type represents a direction in the
1196 Unicode bidirectional algorithm; not every value in this
1197 enumeration makes sense for every usage of #PangoDirection;
1198 for example, the return value of pango_unichar_direction()
1199 and pango_find_base_dir() cannot be %PANGO_DIRECTION_WEAK_LTR
1200 or %PANGO_DIRECTION_WEAK_RTL, since every character is either
1201 neutral or has a strong direction; on the other hand
1202 %PANGO_DIRECTION_NEUTRAL doesn't make sense to pass
1203 to pango_itemize_with_base_dir().
1204 The %PANGO_DIRECTION_TTB_LTR, %PANGO_DIRECTION_TTB_RTL
1205 values come from an earlier interpretation of this
1206 enumeration as the writing direction of a block of
1207 text and are no longer used; See #PangoGravity for how
1208 vertical text is handled in Pango.</doc>
1209       <member name="ltr"
1210               value="0"
1211               c:identifier="PANGO_DIRECTION_LTR"
1212               glib:nick="ltr"/>
1213       <member name="rtl"
1214               value="1"
1215               c:identifier="PANGO_DIRECTION_RTL"
1216               glib:nick="rtl"/>
1217       <member name="ttb_ltr"
1218               value="2"
1219               c:identifier="PANGO_DIRECTION_TTB_LTR"
1220               glib:nick="ttb-ltr"/>
1221       <member name="ttb_rtl"
1222               value="3"
1223               c:identifier="PANGO_DIRECTION_TTB_RTL"
1224               glib:nick="ttb-rtl"/>
1225       <member name="weak_ltr"
1226               value="4"
1227               c:identifier="PANGO_DIRECTION_WEAK_LTR"
1228               glib:nick="weak-ltr"/>
1229       <member name="weak_rtl"
1230               value="5"
1231               c:identifier="PANGO_DIRECTION_WEAK_RTL"
1232               glib:nick="weak-rtl"/>
1233       <member name="neutral"
1234               value="6"
1235               c:identifier="PANGO_DIRECTION_NEUTRAL"
1236               glib:nick="neutral"/>
1237     </enumeration>
1238     <constant name="ENGINE_TYPE_LANG" value="PangoEngineLang">
1239       <type name="utf8" c:type="gchar*"/>
1240     </constant>
1241     <constant name="ENGINE_TYPE_SHAPE" value="PangoEngineShape">
1242       <type name="utf8" c:type="gchar*"/>
1243     </constant>
1244     <enumeration name="EllipsizeMode"
1245                  glib:type-name="PangoEllipsizeMode"
1246                  glib:get-type="pango_ellipsize_mode_get_type"
1247                  c:type="PangoEllipsizeMode">
1248       <member name="none"
1249               value="0"
1250               c:identifier="PANGO_ELLIPSIZE_NONE"
1251               glib:nick="none"/>
1252       <member name="start"
1253               value="1"
1254               c:identifier="PANGO_ELLIPSIZE_START"
1255               glib:nick="start"/>
1256       <member name="middle"
1257               value="2"
1258               c:identifier="PANGO_ELLIPSIZE_MIDDLE"
1259               glib:nick="middle"/>
1260       <member name="end"
1261               value="3"
1262               c:identifier="PANGO_ELLIPSIZE_END"
1263               glib:nick="end"/>
1264     </enumeration>
1265     <record name="EngineLang" c:type="PangoEngineLang" disguised="1">
1266     </record>
1267     <record name="EngineShape" c:type="PangoEngineShape" disguised="1">
1268     </record>
1269     <class name="Font"
1270            c:symbol-prefix="font"
1271            c:type="PangoFont"
1272            parent="GObject.Object"
1273            abstract="1"
1274            glib:type-name="PangoFont"
1275            glib:get-type="pango_font_get_type">
1276       <function name="descriptions_free"
1277                 c:identifier="pango_font_descriptions_free">
1278         <doc xml:whitespace="preserve">Frees an array of font descriptions.</doc>
1279         <return-value transfer-ownership="none">
1280           <type name="none" c:type="void"/>
1281         </return-value>
1282         <parameters>
1283           <parameter name="descs" transfer-ownership="none">
1284             <doc xml:whitespace="preserve">a pointer to an array of #PangoFontDescription, may be %NULL</doc>
1285             <type name="FontDescription" c:type="PangoFontDescription**"/>
1286           </parameter>
1287           <parameter name="n_descs" transfer-ownership="none">
1288             <doc xml:whitespace="preserve">number of font descriptions in @descs</doc>
1289             <type name="gint" c:type="int"/>
1290           </parameter>
1291         </parameters>
1292       </function>
1293       <method name="describe" c:identifier="pango_font_describe">
1294         <doc xml:whitespace="preserve">Returns a description of the font, with font size set in points.
1295 Use pango_font_describe_with_absolute_size() if you want the font
1296 size in device units.</doc>
1297         <return-value transfer-ownership="full">
1298           <doc xml:whitespace="preserve">a newly-allocated #PangoFontDescription object.</doc>
1299           <type name="FontDescription" c:type="PangoFontDescription*"/>
1300         </return-value>
1301       </method>
1302       <method name="describe_with_absolute_size"
1303               c:identifier="pango_font_describe_with_absolute_size"
1304               version="1.14">
1305         <doc xml:whitespace="preserve">Returns a description of the font, with absolute font size set
1306 (in device units). Use pango_font_describe() if you want the font
1307 size in points.</doc>
1308         <return-value transfer-ownership="full">
1309           <doc xml:whitespace="preserve">a newly-allocated #PangoFontDescription object.</doc>
1310           <type name="FontDescription" c:type="PangoFontDescription*"/>
1311         </return-value>
1312       </method>
1313       <method name="find_shaper"
1314               c:identifier="pango_font_find_shaper"
1315               introspectable="0">
1316         <doc xml:whitespace="preserve">Finds the best matching shaper for a font for a particular
1317 language tag and character point.</doc>
1318         <return-value>
1319           <doc xml:whitespace="preserve">the best matching shaper.</doc>
1320           <type name="EngineShape" c:type="PangoEngineShape*"/>
1321         </return-value>
1322         <parameters>
1323           <parameter name="language" transfer-ownership="none">
1324             <doc xml:whitespace="preserve">the language tag</doc>
1325             <type name="Language" c:type="PangoLanguage*"/>
1326           </parameter>
1327           <parameter name="ch" transfer-ownership="none">
1328             <doc xml:whitespace="preserve">a Unicode character.</doc>
1329             <type name="guint32" c:type="guint32"/>
1330           </parameter>
1331         </parameters>
1332       </method>
1333       <method name="get_coverage"
1334               c:identifier="pango_font_get_coverage"
1335               introspectable="0">
1336         <doc xml:whitespace="preserve">Computes the coverage map for a given font and language tag.</doc>
1337         <return-value>
1338           <doc xml:whitespace="preserve">a newly-allocated #PangoCoverage object.</doc>
1339           <type name="Coverage" c:type="PangoCoverage*"/>
1340         </return-value>
1341         <parameters>
1342           <parameter name="language" transfer-ownership="none">
1343             <doc xml:whitespace="preserve">the language tag</doc>
1344             <type name="Language" c:type="PangoLanguage*"/>
1345           </parameter>
1346         </parameters>
1347       </method>
1348       <method name="get_font_map"
1349               c:identifier="pango_font_get_font_map"
1350               version="1.10"
1351               introspectable="0">
1352         <doc xml:whitespace="preserve">Gets the font map for which the font was created.
1353 Note that the font maintains a &lt;firstterm&gt;weak&lt;/firstterm&gt; reference
1354 to the font map, so if all references to font map are dropped, the font
1355 map will be finalized even if there are fonts created with the font
1356 map that are still alive.  In that case this function will return %NULL.
1357 It is the responsibility of the user to ensure that the font map is kept
1358 alive.  In most uses this is not an issue as a #PangoContext holds
1359 a reference to the font map.</doc>
1360         <return-value>
1361           <doc xml:whitespace="preserve">the #PangoFontMap for the font, or %NULL if @font is %NULL.</doc>
1362           <type name="FontMap" c:type="PangoFontMap*"/>
1363         </return-value>
1364       </method>
1365       <method name="get_glyph_extents"
1366               c:identifier="pango_font_get_glyph_extents">
1367         <doc xml:whitespace="preserve">Gets the logical and ink extents of a glyph within a font. The
1368 coordinate system for each rectangle has its origin at the
1369 base line and horizontal origin of the character with increasing
1370 coordinates extending to the right and down. The macros PANGO_ASCENT(),
1371 PANGO_DESCENT(), PANGO_LBEARING(), and PANGO_RBEARING() can be used to convert
1372 from the extents rectangle to more traditional font metrics. The units
1373 of the rectangles are in 1/PANGO_SCALE of a device unit.
1374 If @font is %NULL, this function gracefully sets some sane values in the
1375 output variables and returns.</doc>
1376         <return-value transfer-ownership="none">
1377           <type name="none" c:type="void"/>
1378         </return-value>
1379         <parameters>
1380           <parameter name="glyph" transfer-ownership="none">
1381             <doc xml:whitespace="preserve">the glyph index</doc>
1382             <type name="Glyph" c:type="PangoGlyph"/>
1383           </parameter>
1384           <parameter name="ink_rect" transfer-ownership="none">
1385             <doc xml:whitespace="preserve">rectangle used to store the extents of the glyph as drawn or %NULL to indicate that the result is not needed.</doc>
1386             <type name="Rectangle" c:type="PangoRectangle*"/>
1387           </parameter>
1388           <parameter name="logical_rect" transfer-ownership="none">
1389             <doc xml:whitespace="preserve">rectangle used to store the logical extents of the glyph or %NULL to indicate that the result is not needed.</doc>
1390             <type name="Rectangle" c:type="PangoRectangle*"/>
1391           </parameter>
1392         </parameters>
1393       </method>
1394       <method name="get_metrics" c:identifier="pango_font_get_metrics">
1395         <doc xml:whitespace="preserve">Gets overall metric information for a font. Since the metrics may be
1396 substantially different for different scripts, a language tag can
1397 be provided to indicate that the metrics should be retrieved that
1398 correspond to the script(s) used by that language.
1399 If @font is %NULL, this function gracefully sets some sane values in the
1400 output variables and returns.
1401 when finished using the object.</doc>
1402         <return-value transfer-ownership="full">
1403           <doc xml:whitespace="preserve">a #PangoFontMetrics object. The caller must call pango_font_metrics_unref()</doc>
1404           <type name="FontMetrics" c:type="PangoFontMetrics*"/>
1405         </return-value>
1406         <parameters>
1407           <parameter name="language" transfer-ownership="none">
1408             <doc xml:whitespace="preserve">language tag used to determine which script to get the metrics for, or %NULL to indicate to get the metrics for the entire font.</doc>
1409             <type name="Language" c:type="PangoLanguage*"/>
1410           </parameter>
1411         </parameters>
1412       </method>
1413     </class>
1414     <record name="FontDescription"
1415             c:type="PangoFontDescription"
1416             glib:type-name="PangoFontDescription"
1417             glib:get-type="pango_font_description_get_type"
1418             c:symbol-prefix="font_description">
1419       <constructor name="new" c:identifier="pango_font_description_new">
1420         <doc xml:whitespace="preserve">Creates a new font description structure with all fields unset.
1421 should be freed using pango_font_description_free().</doc>
1422         <return-value transfer-ownership="full">
1423           <doc xml:whitespace="preserve">the newly allocated #PangoFontDescription, which</doc>
1424           <type name="FontDescription" c:type="PangoFontDescription*"/>
1425         </return-value>
1426       </constructor>
1427       <method name="better_match"
1428               c:identifier="pango_font_description_better_match">
1429         <doc xml:whitespace="preserve">Determines if the style attributes of @new_match are a closer match
1430 for @desc than those of @old_match are, or if @old_match is %NULL,
1431 determines if @new_match is a match at all.
1432 Approximate matching is done for
1433 weight and style; other style attributes must match exactly.
1434 Style attributes are all attributes other than family and size-related
1435 attributes.  Approximate matching for style considers PANGO_STYLE_OBLIQUE
1436 and PANGO_STYLE_ITALIC as matches, but not as good a match as when the
1437 styles are equal.
1438 Note that @old_match must match @desc.</doc>
1439         <return-value transfer-ownership="none">
1440           <doc xml:whitespace="preserve">%TRUE if @new_match is a better match</doc>
1441           <type name="gboolean" c:type="gboolean"/>
1442         </return-value>
1443         <parameters>
1444           <parameter name="old_match" transfer-ownership="none">
1445             <doc xml:whitespace="preserve">a #PangoFontDescription, or %NULL</doc>
1446             <type name="FontDescription" c:type="PangoFontDescription*"/>
1447           </parameter>
1448           <parameter name="new_match" transfer-ownership="none">
1449             <doc xml:whitespace="preserve">a #PangoFontDescription</doc>
1450             <type name="FontDescription" c:type="PangoFontDescription*"/>
1451           </parameter>
1452         </parameters>
1453       </method>
1454       <method name="copy" c:identifier="pango_font_description_copy">
1455         <doc xml:whitespace="preserve">Make a copy of a #PangoFontDescription.
1456 be freed with pango_font_description_free(), or %NULL
1457 if @desc was %NULL.</doc>
1458         <return-value transfer-ownership="full">
1459           <doc xml:whitespace="preserve">the newly allocated #PangoFontDescription, which should</doc>
1460           <type name="FontDescription" c:type="PangoFontDescription*"/>
1461         </return-value>
1462       </method>
1463       <method name="copy_static"
1464               c:identifier="pango_font_description_copy_static">
1465         <doc xml:whitespace="preserve">Like pango_font_description_copy(), but only a shallow copy is made
1466 of the family name and other allocated fields. The result can only
1467 be used until @desc is modified or freed. This is meant to be used
1468 when the copy is only needed temporarily.
1469 be freed with pango_font_description_free(), or %NULL
1470 if @desc was %NULL.</doc>
1471         <return-value transfer-ownership="full">
1472           <doc xml:whitespace="preserve">the newly allocated #PangoFontDescription, which should</doc>
1473           <type name="FontDescription" c:type="PangoFontDescription*"/>
1474         </return-value>
1475       </method>
1476       <method name="equal" c:identifier="pango_font_description_equal">
1477         <doc xml:whitespace="preserve">Compares two font descriptions for equality. Two font descriptions
1478 are considered equal if the fonts they describe are provably identical.
1479 This means that their masks do not have to match, as long as other fields
1480 are all the same. (Two font descriptions may result in identical fonts
1481 being loaded, but still compare %FALSE.)
1482 %FALSE otherwise.</doc>
1483         <return-value transfer-ownership="none">
1484           <doc xml:whitespace="preserve">%TRUE if the two font descriptions are identical,</doc>
1485           <type name="gboolean" c:type="gboolean"/>
1486         </return-value>
1487         <parameters>
1488           <parameter name="desc2" transfer-ownership="none">
1489             <doc xml:whitespace="preserve">another #PangoFontDescription</doc>
1490             <type name="FontDescription" c:type="PangoFontDescription*"/>
1491           </parameter>
1492         </parameters>
1493       </method>
1494       <method name="free" c:identifier="pango_font_description_free">
1495         <doc xml:whitespace="preserve">Frees a font description.</doc>
1496         <return-value transfer-ownership="none">
1497           <type name="none" c:type="void"/>
1498         </return-value>
1499       </method>
1500       <method name="get_family"
1501               c:identifier="pango_font_description_get_family">
1502         <doc xml:whitespace="preserve">Gets the family name field of a font description. See
1503 pango_font_description_set_family().
1504 %NULL if not previously set.  This has the same life-time
1505 as the font description itself and should not be freed.</doc>
1506         <return-value transfer-ownership="none">
1507           <doc xml:whitespace="preserve">the family name field for the font description, or</doc>
1508           <type name="utf8" c:type="char*"/>
1509         </return-value>
1510       </method>
1511       <method name="get_gravity"
1512               c:identifier="pango_font_description_get_gravity"
1513               version="1.16">
1514         <doc xml:whitespace="preserve">Gets the gravity field of a font description. See
1515 pango_font_description_set_gravity().
1516 pango_font_description_get_set_fields() to find out if
1517 the field was explicitly set or not.</doc>
1518         <return-value transfer-ownership="none">
1519           <doc xml:whitespace="preserve">the gravity field for the font description. Use</doc>
1520           <type name="Gravity" c:type="PangoGravity"/>
1521         </return-value>
1522       </method>
1523       <method name="get_set_fields"
1524               c:identifier="pango_font_description_get_set_fields">
1525         <doc xml:whitespace="preserve">Determines which fields in a font description have been set.
1526 fields in @desc that have been set.</doc>
1527         <return-value transfer-ownership="none">
1528           <doc xml:whitespace="preserve">a bitmask with bits set corresponding to the</doc>
1529           <type name="FontMask" c:type="PangoFontMask"/>
1530         </return-value>
1531       </method>
1532       <method name="get_size" c:identifier="pango_font_description_get_size">
1533         <doc xml:whitespace="preserve">Gets the size field of a font description.
1534 See pango_font_description_set_size().
1535 You must call pango_font_description_get_size_is_absolute()
1536 to find out which is the case. Returns 0 if the size field has not
1537 previously been set or it has been set to 0 explicitly.
1538 Use pango_font_description_get_set_fields() to
1539 find out if the field was explicitly set or not.</doc>
1540         <return-value transfer-ownership="none">
1541           <doc xml:whitespace="preserve">the size field for the font description in points or device units.</doc>
1542           <type name="gint" c:type="gint"/>
1543         </return-value>
1544       </method>
1545       <method name="get_size_is_absolute"
1546               c:identifier="pango_font_description_get_size_is_absolute"
1547               version="1.8">
1548         <doc xml:whitespace="preserve">Determines whether the size of the font is in points (not absolute) or device units (absolute).
1549 See pango_font_description_set_size() and pango_font_description_set_absolute_size().
1550 points or device units.  Use pango_font_description_get_set_fields() to
1551 find out if the size field of the font description was explicitly set or not.</doc>
1552         <return-value transfer-ownership="none">
1553           <doc xml:whitespace="preserve">whether the size for the font description is in</doc>
1554           <type name="gboolean" c:type="gboolean"/>
1555         </return-value>
1556       </method>
1557       <method name="get_stretch"
1558               c:identifier="pango_font_description_get_stretch">
1559         <doc xml:whitespace="preserve">Gets the stretch field of a font description.
1560 See pango_font_description_set_stretch().
1561 pango_font_description_get_set_fields() to find out if
1562 the field was explicitly set or not.</doc>
1563         <return-value transfer-ownership="none">
1564           <doc xml:whitespace="preserve">the stretch field for the font description. Use</doc>
1565           <type name="Stretch" c:type="PangoStretch"/>
1566         </return-value>
1567       </method>
1568       <method name="get_style" c:identifier="pango_font_description_get_style">
1569         <doc xml:whitespace="preserve">Gets the style field of a #PangoFontDescription. See
1570 pango_font_description_set_style().
1571 Use pango_font_description_get_set_fields() to find out if
1572 the field was explicitly set or not.</doc>
1573         <return-value transfer-ownership="none">
1574           <doc xml:whitespace="preserve">the style field for the font description.</doc>
1575           <type name="Style" c:type="PangoStyle"/>
1576         </return-value>
1577       </method>
1578       <method name="get_variant"
1579               c:identifier="pango_font_description_get_variant">
1580         <doc xml:whitespace="preserve">Gets the variant field of a #PangoFontDescription. See
1581 pango_font_description_set_variant().
1582 pango_font_description_get_set_fields() to find out if
1583 the field was explicitly set or not.</doc>
1584         <return-value transfer-ownership="none">
1585           <doc xml:whitespace="preserve">the variant field for the font description. Use</doc>
1586           <type name="Variant" c:type="PangoVariant"/>
1587         </return-value>
1588       </method>
1589       <method name="get_weight"
1590               c:identifier="pango_font_description_get_weight">
1591         <doc xml:whitespace="preserve">Gets the weight field of a font description. See
1592 pango_font_description_set_weight().
1593 pango_font_description_get_set_fields() to find out if
1594 the field was explicitly set or not.</doc>
1595         <return-value transfer-ownership="none">
1596           <doc xml:whitespace="preserve">the weight field for the font description. Use</doc>
1597           <type name="Weight" c:type="PangoWeight"/>
1598         </return-value>
1599       </method>
1600       <method name="hash" c:identifier="pango_font_description_hash">
1601         <doc xml:whitespace="preserve">Computes a hash of a #PangoFontDescription structure suitable
1602 to be used, for example, as an argument to g_hash_table_new().
1603 The hash value is independent of @desc-&gt;mask.</doc>
1604         <return-value transfer-ownership="none">
1605           <doc xml:whitespace="preserve">the hash value.</doc>
1606           <type name="guint" c:type="guint"/>
1607         </return-value>
1608       </method>
1609       <method name="merge" c:identifier="pango_font_description_merge">
1610         <doc xml:whitespace="preserve">Merges the fields that are set in @desc_to_merge into the fields in
1611 are not already set are affected. If %TRUE, then fields that are
1612 already set will be replaced as well.
1613 If @desc_to_merge is %NULL, this function performs nothing.</doc>
1614         <return-value transfer-ownership="none">
1615           <type name="none" c:type="void"/>
1616         </return-value>
1617         <parameters>
1618           <parameter name="desc_to_merge" transfer-ownership="none">
1619             <doc xml:whitespace="preserve">the #PangoFontDescription to merge from, or %NULL</doc>
1620             <type name="FontDescription" c:type="PangoFontDescription*"/>
1621           </parameter>
1622           <parameter name="replace_existing" transfer-ownership="none">
1623             <doc xml:whitespace="preserve">if %TRUE, replace fields in @desc with the corresponding values from @desc_to_merge, even if they are already exist.</doc>
1624             <type name="gboolean" c:type="gboolean"/>
1625           </parameter>
1626         </parameters>
1627       </method>
1628       <method name="merge_static"
1629               c:identifier="pango_font_description_merge_static">
1630         <doc xml:whitespace="preserve">Like pango_font_description_merge(), but only a shallow copy is made
1631 of the family name and other allocated fields. @desc can only be
1632 used until @desc_to_merge is modified or freed. This is meant
1633 to be used when the merged font description is only needed temporarily.</doc>
1634         <return-value transfer-ownership="none">
1635           <type name="none" c:type="void"/>
1636         </return-value>
1637         <parameters>
1638           <parameter name="desc_to_merge" transfer-ownership="none">
1639             <doc xml:whitespace="preserve">the #PangoFontDescription to merge from</doc>
1640             <type name="FontDescription" c:type="PangoFontDescription*"/>
1641           </parameter>
1642           <parameter name="replace_existing" transfer-ownership="none">
1643             <doc xml:whitespace="preserve">if %TRUE, replace fields in @desc with the corresponding values from @desc_to_merge, even if they are already exist.</doc>
1644             <type name="gboolean" c:type="gboolean"/>
1645           </parameter>
1646         </parameters>
1647       </method>
1648       <method name="set_absolute_size"
1649               c:identifier="pango_font_description_set_absolute_size"
1650               version="1.8">
1651         <doc xml:whitespace="preserve">Sets the size field of a font description, in device units. This is mutually
1652 exclusive with pango_font_description_set_size() which sets the font size
1653 in points.</doc>
1654         <return-value transfer-ownership="none">
1655           <type name="none" c:type="void"/>
1656         </return-value>
1657         <parameters>
1658           <parameter name="size" transfer-ownership="none">
1659             <doc xml:whitespace="preserve">the new size, in Pango units. There are %PANGO_SCALE Pango units in one device unit. For an output backend where a device unit is a pixel, a @size value of 10 * PANGO_SCALE gives a 10 pixel font.</doc>
1660             <type name="gdouble" c:type="double"/>
1661           </parameter>
1662         </parameters>
1663       </method>
1664       <method name="set_family"
1665               c:identifier="pango_font_description_set_family">
1666         <doc xml:whitespace="preserve">Sets the family name field of a font description. The family
1667 name represents a family of related font styles, and will
1668 resolve to a particular #PangoFontFamily. In some uses of
1669 #PangoFontDescription, it is also possible to use a comma
1670 separated list of family names for this field.</doc>
1671         <return-value transfer-ownership="none">
1672           <type name="none" c:type="void"/>
1673         </return-value>
1674         <parameters>
1675           <parameter name="family" transfer-ownership="none">
1676             <doc xml:whitespace="preserve">a string representing the family name.</doc>
1677             <type name="utf8" c:type="char*"/>
1678           </parameter>
1679         </parameters>
1680       </method>
1681       <method name="set_family_static"
1682               c:identifier="pango_font_description_set_family_static">
1683         <doc xml:whitespace="preserve">Like pango_font_description_set_family(), except that no
1684 copy of @family is made. The caller must make sure that the
1685 string passed in stays around until @desc has been freed
1686 or the name is set again. This function can be used if
1687 if @desc is only needed temporarily.</doc>
1688         <return-value transfer-ownership="none">
1689           <type name="none" c:type="void"/>
1690         </return-value>
1691         <parameters>
1692           <parameter name="family" transfer-ownership="none">
1693             <doc xml:whitespace="preserve">a string representing the family name.</doc>
1694             <type name="utf8" c:type="char*"/>
1695           </parameter>
1696         </parameters>
1697       </method>
1698       <method name="set_gravity"
1699               c:identifier="pango_font_description_set_gravity"
1700               version="1.16">
1701         <doc xml:whitespace="preserve">Sets the gravity field of a font description. The gravity field
1702 specifies how the glyphs should be rotated.  If @gravity is
1703 %PANGO_GRAVITY_AUTO, this actually unsets the gravity mask on
1704 the font description.
1705 This function is seldom useful to the user.  Gravity should normally
1706 be set on a #PangoContext.</doc>
1707         <return-value transfer-ownership="none">
1708           <type name="none" c:type="void"/>
1709         </return-value>
1710         <parameters>
1711           <parameter name="gravity" transfer-ownership="none">
1712             <doc xml:whitespace="preserve">the gravity for the font description.</doc>
1713             <type name="Gravity" c:type="PangoGravity"/>
1714           </parameter>
1715         </parameters>
1716       </method>
1717       <method name="set_size" c:identifier="pango_font_description_set_size">
1718         <doc xml:whitespace="preserve">Sets the size field of a font description in fractional points. This is mutually
1719 exclusive with pango_font_description_set_absolute_size().</doc>
1720         <return-value transfer-ownership="none">
1721           <type name="none" c:type="void"/>
1722         </return-value>
1723         <parameters>
1724           <parameter name="size" transfer-ownership="none">
1725             <doc xml:whitespace="preserve">the size of the font in points, scaled by PANGO_SCALE. (That is, a @size value of 10 * PANGO_SCALE is a 10 point font. The conversion factor between points and device units depends on system configuration and the output device. For screen display, a logical DPI of 96 is common, in which case a 10 point font corresponds to a 10 * (96 / 72) = 13.3 pixel font. Use pango_font_description_set_absolute_size() if you need a particular size in device units.</doc>
1726             <type name="gint" c:type="gint"/>
1727           </parameter>
1728         </parameters>
1729       </method>
1730       <method name="set_stretch"
1731               c:identifier="pango_font_description_set_stretch">
1732         <doc xml:whitespace="preserve">Sets the stretch field of a font description. The stretch field
1733 specifies how narrow or wide the font should be.</doc>
1734         <return-value transfer-ownership="none">
1735           <type name="none" c:type="void"/>
1736         </return-value>
1737         <parameters>
1738           <parameter name="stretch" transfer-ownership="none">
1739             <doc xml:whitespace="preserve">the stretch for the font description</doc>
1740             <type name="Stretch" c:type="PangoStretch"/>
1741           </parameter>
1742         </parameters>
1743       </method>
1744       <method name="set_style" c:identifier="pango_font_description_set_style">
1745         <doc xml:whitespace="preserve">Sets the style field of a #PangoFontDescription. The
1746 #PangoStyle enumeration describes whether the font is slanted and
1747 the manner in which it is slanted; it can be either
1748 #PANGO_STYLE_NORMAL, #PANGO_STYLE_ITALIC, or #PANGO_STYLE_OBLIQUE.
1749 Most fonts will either have a italic style or an oblique
1750 style, but not both, and font matching in Pango will
1751 match italic specifications with oblique fonts and vice-versa
1752 if an exact match is not found.</doc>
1753         <return-value transfer-ownership="none">
1754           <type name="none" c:type="void"/>
1755         </return-value>
1756         <parameters>
1757           <parameter name="style" transfer-ownership="none">
1758             <doc xml:whitespace="preserve">the style for the font description</doc>
1759             <type name="Style" c:type="PangoStyle"/>
1760           </parameter>
1761         </parameters>
1762       </method>
1763       <method name="set_variant"
1764               c:identifier="pango_font_description_set_variant">
1765         <doc xml:whitespace="preserve">Sets the variant field of a font description. The #PangoVariant
1766 can either be %PANGO_VARIANT_NORMAL or %PANGO_VARIANT_SMALL_CAPS.</doc>
1767         <return-value transfer-ownership="none">
1768           <type name="none" c:type="void"/>
1769         </return-value>
1770         <parameters>
1771           <parameter name="variant" transfer-ownership="none">
1772             <doc xml:whitespace="preserve">the variant type for the font description.</doc>
1773             <type name="Variant" c:type="PangoVariant"/>
1774           </parameter>
1775         </parameters>
1776       </method>
1777       <method name="set_weight"
1778               c:identifier="pango_font_description_set_weight">
1779         <doc xml:whitespace="preserve">Sets the weight field of a font description. The weight field
1780 specifies how bold or light the font should be. In addition
1781 to the values of the #PangoWeight enumeration, other intermediate
1782 numeric values are possible.</doc>
1783         <return-value transfer-ownership="none">
1784           <type name="none" c:type="void"/>
1785         </return-value>
1786         <parameters>
1787           <parameter name="weight" transfer-ownership="none">
1788             <doc xml:whitespace="preserve">the weight for the font description.</doc>
1789             <type name="Weight" c:type="PangoWeight"/>
1790           </parameter>
1791         </parameters>
1792       </method>
1793       <method name="to_filename"
1794               c:identifier="pango_font_description_to_filename">
1795         <doc xml:whitespace="preserve">Creates a filename representation of a font description. The
1796 filename is identical to the result from calling
1797 pango_font_description_to_string(), but with underscores instead of
1798 characters that are untypical in filenames, and in lower case only.</doc>
1799         <return-value transfer-ownership="full">
1800           <doc xml:whitespace="preserve">a new string that must be freed with g_free().</doc>
1801           <type name="utf8" c:type="char*"/>
1802         </return-value>
1803       </method>
1804       <method name="to_string" c:identifier="pango_font_description_to_string">
1805         <doc xml:whitespace="preserve">Creates a string representation of a font description. See
1806 pango_font_description_from_string() for a description of the
1807 format of the string representation. The family list in the
1808 string description will only have a terminating comma if the
1809 last word of the list is a valid style option.</doc>
1810         <return-value transfer-ownership="full">
1811           <doc xml:whitespace="preserve">a new string that must be freed with g_free().</doc>
1812           <type name="utf8" c:type="char*"/>
1813         </return-value>
1814       </method>
1815       <method name="unset_fields"
1816               c:identifier="pango_font_description_unset_fields">
1817         <doc xml:whitespace="preserve">Unsets some of the fields in a #PangoFontDescription.  The unset
1818 fields will get back to their default values.</doc>
1819         <return-value transfer-ownership="none">
1820           <type name="none" c:type="void"/>
1821         </return-value>
1822         <parameters>
1823           <parameter name="to_unset" transfer-ownership="none">
1824             <doc xml:whitespace="preserve">bitmask of fields in the @desc to unset.</doc>
1825             <type name="FontMask" c:type="PangoFontMask"/>
1826           </parameter>
1827         </parameters>
1828       </method>
1829     </record>
1830     <class name="FontFace"
1831            c:symbol-prefix="font_face"
1832            c:type="PangoFontFace"
1833            parent="GObject.Object"
1834            abstract="1"
1835            glib:type-name="PangoFontFace"
1836            glib:get-type="pango_font_face_get_type">
1837       <method name="describe" c:identifier="pango_font_face_describe">
1838         <doc xml:whitespace="preserve">Returns the family, style, variant, weight and stretch of
1839 a #PangoFontFace. The size field of the resulting font description
1840 will be unset.
1841 holding the description of the face. Use pango_font_description_free()
1842 to free the result.</doc>
1843         <return-value transfer-ownership="full">
1844           <doc xml:whitespace="preserve">a newly-created #PangoFontDescription structure</doc>
1845           <type name="FontDescription" c:type="PangoFontDescription*"/>
1846         </return-value>
1847       </method>
1848       <method name="get_face_name"
1849               c:identifier="pango_font_face_get_face_name">
1850         <doc xml:whitespace="preserve">Gets a name representing the style of this face among the
1851 different faces in the #PangoFontFamily for the face. This
1852 name is unique among all faces in the family and is suitable
1853 for displaying to users.
1854 owned by the face object and must not be modified or freed.</doc>
1855         <return-value transfer-ownership="none">
1856           <doc xml:whitespace="preserve">the face name for the face. This string is</doc>
1857           <type name="utf8" c:type="char*"/>
1858         </return-value>
1859       </method>
1860       <method name="is_synthesized"
1861               c:identifier="pango_font_face_is_synthesized"
1862               version="1.18">
1863         <doc xml:whitespace="preserve">Returns whether a #PangoFontFace is synthesized by the underlying
1864 font rendering engine from another face, perhaps by shearing, emboldening,
1865 or lightening it.</doc>
1866         <return-value transfer-ownership="none">
1867           <doc xml:whitespace="preserve">whether @face is synthesized.</doc>
1868           <type name="gboolean" c:type="gboolean"/>
1869         </return-value>
1870       </method>
1871       <method name="list_sizes"
1872               c:identifier="pango_font_face_list_sizes"
1873               version="1.4">
1874         <doc xml:whitespace="preserve">List the available sizes for a font. This is only applicable to bitmap
1875 fonts. For scalable fonts, stores %NULL at the location pointed to by
1876 are in Pango units and are sorted in ascending order.</doc>
1877         <return-value transfer-ownership="none">
1878           <type name="none" c:type="void"/>
1879         </return-value>
1880         <parameters>
1881           <parameter name="sizes" transfer-ownership="none">
1882             <doc xml:whitespace="preserve">location to store a pointer to an array of int. This array should be freed with g_free().</doc>
1883             <type name="gint" c:type="int**"/>
1884           </parameter>
1885           <parameter name="n_sizes" transfer-ownership="none">
1886             <doc xml:whitespace="preserve">location to store the number of elements in @sizes</doc>
1887             <type name="gint" c:type="int*"/>
1888           </parameter>
1889         </parameters>
1890       </method>
1891     </class>
1892     <class name="FontFamily"
1893            c:symbol-prefix="font_family"
1894            c:type="PangoFontFamily"
1895            parent="GObject.Object"
1896            abstract="1"
1897            glib:type-name="PangoFontFamily"
1898            glib:get-type="pango_font_family_get_type">
1899       <method name="get_name" c:identifier="pango_font_family_get_name">
1900         <doc xml:whitespace="preserve">Gets the name of the family. The name is unique among all
1901 fonts for the font backend and can be used in a #PangoFontDescription
1902 to specify that a face from this family is desired.
1903 by the family object and must not be modified or freed.</doc>
1904         <return-value transfer-ownership="none">
1905           <doc xml:whitespace="preserve">the name of the family. This string is owned</doc>
1906           <type name="utf8" c:type="char*"/>
1907         </return-value>
1908       </method>
1909       <method name="is_monospace"
1910               c:identifier="pango_font_family_is_monospace"
1911               version="1.4">
1912         <doc xml:whitespace="preserve">A monospace font is a font designed for text display where the the
1913 characters form a regular grid. For Western languages this would
1914 mean that the advance width of all characters are the same, but
1915 this categorization also includes Asian fonts which include
1916 g_unichar_iswide() returns a result that indicates whether a
1917 character is typically double-width in a monospace font.
1918 The best way to find out the grid-cell size is to call
1919 pango_font_metrics_get_approximate_digit_width(), since the results
1920 of pango_font_metrics_get_approximate_char_width() may be affected
1921 by double-width characters.</doc>
1922         <return-value transfer-ownership="none">
1923           <doc xml:whitespace="preserve">%TRUE if the family is monospace.</doc>
1924           <type name="gboolean" c:type="gboolean"/>
1925         </return-value>
1926       </method>
1927       <method name="list_faces" c:identifier="pango_font_family_list_faces">
1928         <doc xml:whitespace="preserve">Lists the different font faces that make up @family. The faces
1929 in a family share a common design, but differ in slant, weight,
1930 width and other aspects.</doc>
1931         <return-value transfer-ownership="none">
1932           <type name="none" c:type="void"/>
1933         </return-value>
1934         <parameters>
1935           <parameter name="faces" transfer-ownership="none">
1936             <doc xml:whitespace="preserve">location to store an array of pointers to #PangoFontFace objects, or %NULL. This array should be freed with g_free() when it is no longer needed.</doc>
1937             <type name="FontFace" c:type="PangoFontFace***"/>
1938           </parameter>
1939           <parameter name="n_faces" transfer-ownership="none">
1940             <doc xml:whitespace="preserve">location to store number of elements in @faces.</doc>
1941             <type name="gint" c:type="int*"/>
1942           </parameter>
1943         </parameters>
1944       </method>
1945     </class>
1946     <class name="FontMap"
1947            c:symbol-prefix="font_map"
1948            c:type="PangoFontMap"
1949            parent="GObject.Object"
1950            abstract="1"
1951            glib:type-name="PangoFontMap"
1952            glib:get-type="pango_font_map_get_type">
1953       <method name="create_context"
1954               c:identifier="pango_font_map_create_context"
1955               version="1.22"
1956               introspectable="0">
1957         <doc xml:whitespace="preserve">Creates a #PangoContext connected to @fontmap.  This is equivalent
1958 to pango_context_new() followed by pango_context_set_font_map().
1959 If you are using Pango as part of a higher-level system,
1960 that system may have it's own way of create a #PangoContext.
1961 For instance, the GTK+ toolkit has, among others,
1962 gdk_pango_context_get_for_screen(), and
1963 gtk_widget_get_pango_context().  Use those instead.
1964 be freed with g_object_unref().</doc>
1965         <return-value>
1966           <doc xml:whitespace="preserve">the newly allocated #PangoContext, which should</doc>
1967           <type name="Context" c:type="PangoContext*"/>
1968         </return-value>
1969       </method>
1970       <method name="list_families" c:identifier="pango_font_map_list_families">
1971         <doc xml:whitespace="preserve">List all families for a fontmap.</doc>
1972         <return-value transfer-ownership="none">
1973           <type name="none" c:type="void"/>
1974         </return-value>
1975         <parameters>
1976           <parameter name="families" transfer-ownership="none">
1977             <doc xml:whitespace="preserve">location to store a pointer to an array of #PangoFontFamily *. This array should be freed with g_free().</doc>
1978             <type name="FontFamily" c:type="PangoFontFamily***"/>
1979           </parameter>
1980           <parameter name="n_families" transfer-ownership="none">
1981             <doc xml:whitespace="preserve">location to store the number of elements in @families</doc>
1982             <type name="gint" c:type="int*"/>
1983           </parameter>
1984         </parameters>
1985       </method>
1986       <method name="load_font"
1987               c:identifier="pango_font_map_load_font"
1988               introspectable="0">
1989         <doc xml:whitespace="preserve">Load the font in the fontmap that is the closest match for @desc.</doc>
1990         <return-value>
1991           <doc xml:whitespace="preserve">the font loaded, or %NULL if no font matched.</doc>
1992           <type name="Font" c:type="PangoFont*"/>
1993         </return-value>
1994         <parameters>
1995           <parameter name="context" transfer-ownership="none">
1996             <doc xml:whitespace="preserve">the #PangoContext the font will be used with</doc>
1997             <type name="Context" c:type="PangoContext*"/>
1998           </parameter>
1999           <parameter name="desc" transfer-ownership="none">
2000             <doc xml:whitespace="preserve">a #PangoFontDescription describing the font to load</doc>
2001             <type name="FontDescription" c:type="PangoFontDescription*"/>
2002           </parameter>
2003         </parameters>
2004       </method>
2005       <method name="load_fontset"
2006               c:identifier="pango_font_map_load_fontset"
2007               introspectable="0">
2008         <doc xml:whitespace="preserve">Load a set of fonts in the fontmap that can be used to render
2009 a font matching @desc.</doc>
2010         <return-value>
2011           <doc xml:whitespace="preserve">the fontset, or %NULL if no font matched.</doc>
2012           <type name="Fontset" c:type="PangoFontset*"/>
2013         </return-value>
2014         <parameters>
2015           <parameter name="context" transfer-ownership="none">
2016             <doc xml:whitespace="preserve">the #PangoContext the font will be used with</doc>
2017             <type name="Context" c:type="PangoContext*"/>
2018           </parameter>
2019           <parameter name="desc" transfer-ownership="none">
2020             <doc xml:whitespace="preserve">a #PangoFontDescription describing the font to load</doc>
2021             <type name="FontDescription" c:type="PangoFontDescription*"/>
2022           </parameter>
2023           <parameter name="language" transfer-ownership="none">
2024             <doc xml:whitespace="preserve">a #PangoLanguage the fonts will be used for</doc>
2025             <type name="Language" c:type="PangoLanguage*"/>
2026           </parameter>
2027         </parameters>
2028       </method>
2029     </class>
2030     <bitfield name="FontMask"
2031               glib:type-name="PangoFontMask"
2032               glib:get-type="pango_font_mask_get_type"
2033               c:type="PangoFontMask">
2034       <member name="family"
2035               value="1"
2036               c:identifier="PANGO_FONT_MASK_FAMILY"
2037               glib:nick="family"/>
2038       <member name="style"
2039               value="2"
2040               c:identifier="PANGO_FONT_MASK_STYLE"
2041               glib:nick="style"/>
2042       <member name="variant"
2043               value="4"
2044               c:identifier="PANGO_FONT_MASK_VARIANT"
2045               glib:nick="variant"/>
2046       <member name="weight"
2047               value="8"
2048               c:identifier="PANGO_FONT_MASK_WEIGHT"
2049               glib:nick="weight"/>
2050       <member name="stretch"
2051               value="16"
2052               c:identifier="PANGO_FONT_MASK_STRETCH"
2053               glib:nick="stretch"/>
2054       <member name="size"
2055               value="32"
2056               c:identifier="PANGO_FONT_MASK_SIZE"
2057               glib:nick="size"/>
2058       <member name="gravity"
2059               value="64"
2060               c:identifier="PANGO_FONT_MASK_GRAVITY"
2061               glib:nick="gravity"/>
2062     </bitfield>
2063     <record name="FontMetrics"
2064             c:type="PangoFontMetrics"
2065             glib:type-name="PangoFontMetrics"
2066             glib:get-type="pango_font_metrics_get_type"
2067             c:symbol-prefix="font_metrics">
2068       <method name="get_approximate_char_width"
2069               c:identifier="pango_font_metrics_get_approximate_char_width">
2070         <doc xml:whitespace="preserve">Gets the approximate character width for a font metrics structure.
2071 This is merely a representative value useful, for example, for
2072 determining the initial size for a window. Actual characters in
2073 text will be wider and narrower than this.</doc>
2074         <return-value transfer-ownership="none">
2075           <doc xml:whitespace="preserve">the character width, in Pango units.</doc>
2076           <type name="gint" c:type="int"/>
2077         </return-value>
2078       </method>
2079       <method name="get_approximate_digit_width"
2080               c:identifier="pango_font_metrics_get_approximate_digit_width">
2081         <doc xml:whitespace="preserve">Gets the approximate digit width for a font metrics structure.
2082 This is merely a representative value useful, for example, for
2083 determining the initial size for a window. Actual digits in
2084 text can be wider or narrower than this, though this value
2085 is generally somewhat more accurate than the result of
2086 pango_font_metrics_get_approximate_char_width() for digits.</doc>
2087         <return-value transfer-ownership="none">
2088           <doc xml:whitespace="preserve">the digit width, in Pango units.</doc>
2089           <type name="gint" c:type="int"/>
2090         </return-value>
2091       </method>
2092       <method name="get_ascent" c:identifier="pango_font_metrics_get_ascent">
2093         <doc xml:whitespace="preserve">Gets the ascent from a font metrics structure. The ascent is
2094 the distance from the baseline to the logical top of a line
2095 of text. (The logical top may be above or below the top of the
2096 actual drawn ink. It is necessary to lay out the text to figure
2097 where the ink will be.)</doc>
2098         <return-value transfer-ownership="none">
2099           <doc xml:whitespace="preserve">the ascent, in Pango units.</doc>
2100           <type name="gint" c:type="int"/>
2101         </return-value>
2102       </method>
2103       <method name="get_descent" c:identifier="pango_font_metrics_get_descent">
2104         <doc xml:whitespace="preserve">Gets the descent from a font metrics structure. The descent is
2105 the distance from the baseline to the logical bottom of a line
2106 of text. (The logical bottom may be above or below the bottom of the
2107 actual drawn ink. It is necessary to lay out the text to figure
2108 where the ink will be.)</doc>
2109         <return-value transfer-ownership="none">
2110           <doc xml:whitespace="preserve">the descent, in Pango units.</doc>
2111           <type name="gint" c:type="int"/>
2112         </return-value>
2113       </method>
2114       <method name="get_strikethrough_position"
2115               c:identifier="pango_font_metrics_get_strikethrough_position"
2116               version="1.6">
2117         <doc xml:whitespace="preserve">Gets the suggested position to draw the strikethrough.
2118 The value returned is the distance &lt;emphasis&gt;above&lt;/emphasis&gt; the
2119 baseline of the top of the strikethrough.</doc>
2120         <return-value transfer-ownership="none">
2121           <doc xml:whitespace="preserve">the suggested strikethrough position, in Pango units.</doc>
2122           <type name="gint" c:type="int"/>
2123         </return-value>
2124       </method>
2125       <method name="get_strikethrough_thickness"
2126               c:identifier="pango_font_metrics_get_strikethrough_thickness"
2127               version="1.6">
2128         <doc xml:whitespace="preserve">Gets the suggested thickness to draw for the strikethrough.</doc>
2129         <return-value transfer-ownership="none">
2130           <doc xml:whitespace="preserve">the suggested strikethrough thickness, in Pango units.</doc>
2131           <type name="gint" c:type="int"/>
2132         </return-value>
2133       </method>
2134       <method name="get_underline_position"
2135               c:identifier="pango_font_metrics_get_underline_position"
2136               version="1.6">
2137         <doc xml:whitespace="preserve">Gets the suggested position to draw the underline.
2138 The value returned is the distance &lt;emphasis&gt;above&lt;/emphasis&gt; the
2139 baseline of the top of the underline. Since most fonts have
2140 underline positions beneath the baseline, this value is typically
2141 negative.</doc>
2142         <return-value transfer-ownership="none">
2143           <doc xml:whitespace="preserve">the suggested underline position, in Pango units.</doc>
2144           <type name="gint" c:type="int"/>
2145         </return-value>
2146       </method>
2147       <method name="get_underline_thickness"
2148               c:identifier="pango_font_metrics_get_underline_thickness"
2149               version="1.6">
2150         <doc xml:whitespace="preserve">Gets the suggested thickness to draw for the underline.</doc>
2151         <return-value transfer-ownership="none">
2152           <doc xml:whitespace="preserve">the suggested underline thickness, in Pango units.</doc>
2153           <type name="gint" c:type="int"/>
2154         </return-value>
2155       </method>
2156       <method name="ref" c:identifier="pango_font_metrics_ref">
2157         <doc xml:whitespace="preserve">Increase the reference count of a font metrics structure by one.</doc>
2158         <return-value transfer-ownership="full">
2159           <doc xml:whitespace="preserve">@metrics</doc>
2160           <type name="FontMetrics" c:type="PangoFontMetrics*"/>
2161         </return-value>
2162       </method>
2163       <method name="unref" c:identifier="pango_font_metrics_unref">
2164         <doc xml:whitespace="preserve">Decrease the reference count of a font metrics structure by one. If
2165 the result is zero, frees the structure and any associated
2166 memory.</doc>
2167         <return-value transfer-ownership="none">
2168           <type name="none" c:type="void"/>
2169         </return-value>
2170       </method>
2171     </record>
2172     <class name="Fontset"
2173            c:symbol-prefix="fontset"
2174            c:type="PangoFontset"
2175            parent="GObject.Object"
2176            abstract="1"
2177            glib:type-name="PangoFontset"
2178            glib:get-type="pango_fontset_get_type">
2179       <method name="foreach"
2180               c:identifier="pango_fontset_foreach"
2181               version="1.4"
2182               introspectable="0">
2183         <doc xml:whitespace="preserve">Iterates through all the fonts in a fontset, calling @func for
2184 each one. If @func returns %TRUE, that stops the iteration.</doc>
2185         <return-value transfer-ownership="none">
2186           <type name="none" c:type="void"/>
2187         </return-value>
2188         <parameters>
2189           <parameter name="func" transfer-ownership="none" closure="1">
2190             <doc xml:whitespace="preserve">Callback function</doc>
2191             <type name="FontsetForeachFunc" c:type="PangoFontsetForeachFunc"/>
2192           </parameter>
2193           <parameter name="data" transfer-ownership="none">
2194             <doc xml:whitespace="preserve">data to pass to the callback function</doc>
2195             <type name="gpointer" c:type="gpointer"/>
2196           </parameter>
2197         </parameters>
2198       </method>
2199       <method name="get_font"
2200               c:identifier="pango_fontset_get_font"
2201               introspectable="0">
2202         <doc xml:whitespace="preserve">Returns the font in the fontset that contains the best glyph for the
2203 Unicode character @wc.
2204 with the font.</doc>
2205         <return-value>
2206           <doc xml:whitespace="preserve">a #PangoFont. The caller must call g_object_unref when finished</doc>
2207           <type name="Font" c:type="PangoFont*"/>
2208         </return-value>
2209         <parameters>
2210           <parameter name="wc" transfer-ownership="none">
2211             <doc xml:whitespace="preserve">a Unicode character</doc>
2212             <type name="guint" c:type="guint"/>
2213           </parameter>
2214         </parameters>
2215       </method>
2216       <method name="get_metrics" c:identifier="pango_fontset_get_metrics">
2217         <doc xml:whitespace="preserve">Get overall metric information for the fonts in the fontset.
2218 when finished using the object.</doc>
2219         <return-value transfer-ownership="full">
2220           <doc xml:whitespace="preserve">a #PangoFontMetrics object. The caller must call pango_font_metrics_unref()</doc>
2221           <type name="FontMetrics" c:type="PangoFontMetrics*"/>
2222         </return-value>
2223       </method>
2224     </class>
2225     <callback name="FontsetForeachFunc" c:type="PangoFontsetForeachFunc">
2226       <return-value transfer-ownership="none">
2227         <type name="gboolean" c:type="gboolean"/>
2228       </return-value>
2229       <parameters>
2230         <parameter name="fontset" transfer-ownership="none">
2231           <type name="Fontset" c:type="PangoFontset*"/>
2232         </parameter>
2233         <parameter name="font" transfer-ownership="none">
2234           <type name="Font" c:type="PangoFont*"/>
2235         </parameter>
2236         <parameter name="data" transfer-ownership="none">
2237           <type name="gpointer" c:type="gpointer"/>
2238         </parameter>
2239       </parameters>
2240     </callback>
2241     <record name="GlyphGeometry" c:type="PangoGlyphGeometry">
2242       <field name="width" writable="1">
2243         <type name="GlyphUnit" c:type="PangoGlyphUnit"/>
2244       </field>
2245       <field name="x_offset" writable="1">
2246         <type name="GlyphUnit" c:type="PangoGlyphUnit"/>
2247       </field>
2248       <field name="y_offset" writable="1">
2249         <type name="GlyphUnit" c:type="PangoGlyphUnit"/>
2250       </field>
2251     </record>
2252     <record name="GlyphInfo" c:type="PangoGlyphInfo">
2253       <field name="glyph" writable="1">
2254         <type name="Glyph" c:type="PangoGlyph"/>
2255       </field>
2256       <field name="geometry" writable="1">
2257         <type name="GlyphGeometry" c:type="PangoGlyphGeometry"/>
2258       </field>
2259       <field name="attr" writable="1">
2260         <type name="GlyphVisAttr" c:type="PangoGlyphVisAttr"/>
2261       </field>
2262     </record>
2263     <record name="GlyphItem"
2264             c:type="PangoGlyphItem"
2265             glib:type-name="PangoGlyphItem"
2266             glib:get-type="pango_glyph_item_get_type"
2267             c:symbol-prefix="glyph_item">
2268       <field name="item" writable="1">
2269         <type name="Item" c:type="PangoItem*"/>
2270       </field>
2271       <field name="glyphs" writable="1">
2272         <type name="GlyphString" c:type="PangoGlyphString*"/>
2273       </field>
2274       <method name="apply_attrs"
2275               c:identifier="pango_glyph_item_apply_attrs"
2276               version="1.2"
2277               introspectable="0">
2278         <doc xml:whitespace="preserve">Splits a shaped item (PangoGlyphItem) into multiple items based
2279 on an attribute list. The idea is that if you have attributes
2280 that don't affect shaping, such as color or underline, to avoid
2281 affecting shaping, you filter them out (pango_attr_list_filter()),
2282 apply the shaping process and then reapply them to the result using
2283 this function.
2284 All attributes that start or end inside a cluster are applied
2285 to that cluster; for instance, if half of a cluster is underlined
2286 and the other-half strikethrough, then the cluster will end
2287 up with both underline and strikethrough attributes. In these
2288 cases, it may happen that item-&gt;extra_attrs for some of the
2289 result items can have multiple attributes of the same type.
2290 This function takes ownership of @glyph_item; it will be reused
2291 as one of the elements in the list.
2292 the list using g_slist_free().</doc>
2293         <return-value>
2294           <doc xml:whitespace="preserve">a list of glyph items resulting from splitting</doc>
2295           <type name="GLib.SList" c:type="GSList*">
2296             <type name="gpointer" c:type="gpointer"/>
2297           </type>
2298         </return-value>
2299         <parameters>
2300           <parameter name="text" transfer-ownership="none">
2301             <doc xml:whitespace="preserve">text that @list applies to</doc>
2302             <type name="utf8" c:type="char*"/>
2303           </parameter>
2304           <parameter name="list" transfer-ownership="none">
2305             <doc xml:whitespace="preserve">a #PangoAttrList</doc>
2306             <type name="AttrList" c:type="PangoAttrList*"/>
2307           </parameter>
2308         </parameters>
2309       </method>
2310       <method name="copy" c:identifier="pango_glyph_item_copy" version="1.20">
2311         <doc xml:whitespace="preserve">Make a deep copy of an existing #PangoGlyphItem structure.
2312 be freed with pango_glyph_item_free(), or %NULL
2313 if @orig was %NULL.</doc>
2314         <return-value transfer-ownership="full">
2315           <doc xml:whitespace="preserve">the newly allocated #PangoGlyphItem, which should</doc>
2316           <type name="GlyphItem" c:type="PangoGlyphItem*"/>
2317         </return-value>
2318       </method>
2319       <method name="free" c:identifier="pango_glyph_item_free" version="1.6">
2320         <doc xml:whitespace="preserve">Frees a #PangoGlyphItem and resources to which it points.</doc>
2321         <return-value transfer-ownership="none">
2322           <type name="none" c:type="void"/>
2323         </return-value>
2324       </method>
2325       <method name="get_logical_widths"
2326               c:identifier="pango_glyph_item_get_logical_widths"
2327               version="1.26">
2328         <doc xml:whitespace="preserve">Given a #PangoGlyphItem and the corresponding
2329 text, determine the screen width corresponding to each character. When
2330 multiple characters compose a single cluster, the width of the entire
2331 cluster is divided equally among the characters.
2332 See also pango_glyph_string_get_logical_widths().</doc>
2333         <return-value transfer-ownership="none">
2334           <type name="none" c:type="void"/>
2335         </return-value>
2336         <parameters>
2337           <parameter name="text" transfer-ownership="none">
2338             <doc xml:whitespace="preserve">text that @glyph_item corresponds to (glyph_item-&gt;item-&gt;offset is an offset from the start of @text)</doc>
2339             <type name="utf8" c:type="char*"/>
2340           </parameter>
2341           <parameter name="logical_widths" transfer-ownership="none">
2342             <doc xml:whitespace="preserve">an array whose length is the number of characters in glyph_item (equal to glyph_item-&gt;item-&gt;num_chars) to be filled in with the resulting character widths.</doc>
2343             <type name="gint" c:type="int*"/>
2344           </parameter>
2345         </parameters>
2346       </method>
2347       <method name="letter_space"
2348               c:identifier="pango_glyph_item_letter_space"
2349               version="1.6">
2350         <doc xml:whitespace="preserve">Adds spacing between the graphemes of @glyph_item to
2351 give the effect of typographic letter spacing.</doc>
2352         <return-value transfer-ownership="none">
2353           <type name="none" c:type="void"/>
2354         </return-value>
2355         <parameters>
2356           <parameter name="text" transfer-ownership="none">
2357             <doc xml:whitespace="preserve">text that @glyph_item corresponds to (glyph_item-&gt;item-&gt;offset is an offset from the start of @text)</doc>
2358             <type name="utf8" c:type="char*"/>
2359           </parameter>
2360           <parameter name="log_attrs" transfer-ownership="none">
2361             <doc xml:whitespace="preserve">logical attributes for the item (the first logical attribute refers to the position before the first character in the item)</doc>
2362             <type name="LogAttr" c:type="PangoLogAttr*"/>
2363           </parameter>
2364           <parameter name="letter_spacing" transfer-ownership="none">
2365             <doc xml:whitespace="preserve">amount of letter spacing to add in Pango units. May be negative, though too large negative values will give ugly results.</doc>
2366             <type name="gint" c:type="int"/>
2367           </parameter>
2368         </parameters>
2369       </method>
2370       <method name="split" c:identifier="pango_glyph_item_split" version="1.2">
2371         <doc xml:whitespace="preserve">Modifies @orig to cover only the text after @split_index, and
2372 returns a new item that covers the text before @split_index that
2373 used to be in @orig. You can think of @split_index as the length of
2374 the returned item. @split_index may not be 0, and it may not be
2375 greater than or equal to the length of @orig (that is, there must
2376 be at least one byte assigned to each item, you can't create a
2377 zero-length item).
2378 This function is similar in function to pango_item_split() (and uses
2379 it internally.)
2380 with pango_glyph_item_free().</doc>
2381         <return-value transfer-ownership="full">
2382           <doc xml:whitespace="preserve">the newly allocated item representing text before</doc>
2383           <type name="GlyphItem" c:type="PangoGlyphItem*"/>
2384         </return-value>
2385         <parameters>
2386           <parameter name="text" transfer-ownership="none">
2387             <doc xml:whitespace="preserve">text to which positions in @orig apply</doc>
2388             <type name="utf8" c:type="char*"/>
2389           </parameter>
2390           <parameter name="split_index" transfer-ownership="none">
2391             <doc xml:whitespace="preserve">byte index of position to split item, relative to the start of the item</doc>
2392             <type name="gint" c:type="int"/>
2393           </parameter>
2394         </parameters>
2395       </method>
2396     </record>
2397     <record name="GlyphItemIter"
2398             c:type="PangoGlyphItemIter"
2399             glib:type-name="PangoGlyphItemIter"
2400             glib:get-type="pango_glyph_item_iter_get_type"
2401             c:symbol-prefix="glyph_item_iter">
2402       <field name="glyph_item" writable="1">
2403         <type name="GlyphItem" c:type="PangoGlyphItem*"/>
2404       </field>
2405       <field name="text" writable="1">
2406         <type name="utf8" c:type="gchar*"/>
2407       </field>
2408       <field name="start_glyph" writable="1">
2409         <type name="gint" c:type="int"/>
2410       </field>
2411       <field name="start_index" writable="1">
2412         <type name="gint" c:type="int"/>
2413       </field>
2414       <field name="start_char" writable="1">
2415         <type name="gint" c:type="int"/>
2416       </field>
2417       <field name="end_glyph" writable="1">
2418         <type name="gint" c:type="int"/>
2419       </field>
2420       <field name="end_index" writable="1">
2421         <type name="gint" c:type="int"/>
2422       </field>
2423       <field name="end_char" writable="1">
2424         <type name="gint" c:type="int"/>
2425       </field>
2426       <method name="copy"
2427               c:identifier="pango_glyph_item_iter_copy"
2428               version="1.22">
2429         <doc xml:whitespace="preserve">Make a shallow copy of an existing #PangoGlyphItemIter structure.
2430 be freed with pango_glyph_item_iter_free(), or %NULL
2431 if @orig was %NULL.</doc>
2432         <return-value transfer-ownership="full">
2433           <doc xml:whitespace="preserve">the newly allocated #PangoGlyphItemIter, which should</doc>
2434           <type name="GlyphItemIter" c:type="PangoGlyphItemIter*"/>
2435         </return-value>
2436       </method>
2437       <method name="free"
2438               c:identifier="pango_glyph_item_iter_free"
2439               version="1.22">
2440         <doc xml:whitespace="preserve">Frees a #PangoGlyphItemIter created by pango_glyph_item_iter_copy().</doc>
2441         <return-value transfer-ownership="none">
2442           <type name="none" c:type="void"/>
2443         </return-value>
2444       </method>
2445       <method name="init_end"
2446               c:identifier="pango_glyph_item_iter_init_end"
2447               version="1.22">
2448         <doc xml:whitespace="preserve">Initializes a #PangoGlyphItemIter structure to point to the
2449 last cluster in a glyph item.
2450 See #PangoGlyphItemIter for details of cluster orders.</doc>
2451         <return-value transfer-ownership="none">
2452           <doc xml:whitespace="preserve">%FALSE if there are no clusters in the glyph item</doc>
2453           <type name="gboolean" c:type="gboolean"/>
2454         </return-value>
2455         <parameters>
2456           <parameter name="glyph_item" transfer-ownership="none">
2457             <doc xml:whitespace="preserve">the glyph item to iterate over</doc>
2458             <type name="GlyphItem" c:type="PangoGlyphItem*"/>
2459           </parameter>
2460           <parameter name="text" transfer-ownership="none">
2461             <doc xml:whitespace="preserve">text corresponding to the glyph item</doc>
2462             <type name="utf8" c:type="char*"/>
2463           </parameter>
2464         </parameters>
2465       </method>
2466       <method name="init_start"
2467               c:identifier="pango_glyph_item_iter_init_start"
2468               version="1.22">
2469         <doc xml:whitespace="preserve">Initializes a #PangoGlyphItemIter structure to point to the
2470 first cluster in a glyph item.
2471 See #PangoGlyphItemIter for details of cluster orders.</doc>
2472         <return-value transfer-ownership="none">
2473           <doc xml:whitespace="preserve">%FALSE if there are no clusters in the glyph item</doc>
2474           <type name="gboolean" c:type="gboolean"/>
2475         </return-value>
2476         <parameters>
2477           <parameter name="glyph_item" transfer-ownership="none">
2478             <doc xml:whitespace="preserve">the glyph item to iterate over</doc>
2479             <type name="GlyphItem" c:type="PangoGlyphItem*"/>
2480           </parameter>
2481           <parameter name="text" transfer-ownership="none">
2482             <doc xml:whitespace="preserve">text corresponding to the glyph item</doc>
2483             <type name="utf8" c:type="char*"/>
2484           </parameter>
2485         </parameters>
2486       </method>
2487       <method name="next_cluster"
2488               c:identifier="pango_glyph_item_iter_next_cluster"
2489               version="1.22">
2490         <doc xml:whitespace="preserve">Advances the iterator to the next cluster in the glyph item.
2491 See #PangoGlyphItemIter for details of cluster orders.
2492 last cluster.</doc>
2493         <return-value transfer-ownership="none">
2494           <doc xml:whitespace="preserve">%TRUE if the iterator was advanced, %FALSE if we were already on the</doc>
2495           <type name="gboolean" c:type="gboolean"/>
2496         </return-value>
2497       </method>
2498       <method name="prev_cluster"
2499               c:identifier="pango_glyph_item_iter_prev_cluster"
2500               version="1.22">
2501         <doc xml:whitespace="preserve">Moves the iterator to the preceding cluster in the glyph item.
2502 See #PangoGlyphItemIter for details of cluster orders.
2503 first cluster.</doc>
2504         <return-value transfer-ownership="none">
2505           <doc xml:whitespace="preserve">%TRUE if the iterator was moved, %FALSE if we were already on the</doc>
2506           <type name="gboolean" c:type="gboolean"/>
2507         </return-value>
2508       </method>
2509     </record>
2510     <record name="GlyphString"
2511             c:type="PangoGlyphString"
2512             glib:type-name="PangoGlyphString"
2513             glib:get-type="pango_glyph_string_get_type"
2514             c:symbol-prefix="glyph_string">
2515       <field name="num_glyphs" writable="1">
2516         <type name="gint" c:type="gint"/>
2517       </field>
2518       <field name="glyphs" writable="1">
2519         <type name="GlyphInfo" c:type="PangoGlyphInfo*"/>
2520       </field>
2521       <field name="log_clusters" writable="1">
2522         <type name="gint" c:type="gint*"/>
2523       </field>
2524       <field name="space" writable="1">
2525         <type name="gint" c:type="gint"/>
2526       </field>
2527       <constructor name="new" c:identifier="pango_glyph_string_new">
2528         <doc xml:whitespace="preserve">Create a new #PangoGlyphString.
2529 should be freed with pango_glyph_string_free().</doc>
2530         <return-value transfer-ownership="full">
2531           <doc xml:whitespace="preserve">the newly allocated #PangoGlyphString, which</doc>
2532           <type name="GlyphString" c:type="PangoGlyphString*"/>
2533         </return-value>
2534       </constructor>
2535       <method name="copy" c:identifier="pango_glyph_string_copy">
2536         <doc xml:whitespace="preserve">Copy a glyph string and associated storage.
2537 should be freed with pango_glyph_string_free(),
2538 or %NULL if @string was %NULL.</doc>
2539         <return-value transfer-ownership="full">
2540           <doc xml:whitespace="preserve">the newly allocated #PangoGlyphString, which</doc>
2541           <type name="GlyphString" c:type="PangoGlyphString*"/>
2542         </return-value>
2543       </method>
2544       <method name="extents" c:identifier="pango_glyph_string_extents">
2545         <doc xml:whitespace="preserve">Compute the logical and ink extents of a glyph string. See the documentation
2546 for pango_font_get_glyph_extents() for details about the interpretation
2547 of the rectangles.</doc>
2548         <return-value transfer-ownership="none">
2549           <type name="none" c:type="void"/>
2550         </return-value>
2551         <parameters>
2552           <parameter name="font" transfer-ownership="none">
2553             <doc xml:whitespace="preserve">a #PangoFont</doc>
2554             <type name="Font" c:type="PangoFont*"/>
2555           </parameter>
2556           <parameter name="ink_rect" transfer-ownership="none">
2557             <doc xml:whitespace="preserve">rectangle used to store the extents of the glyph string as drawn or %NULL to indicate that the result is not needed.</doc>
2558             <type name="Rectangle" c:type="PangoRectangle*"/>
2559           </parameter>
2560           <parameter name="logical_rect" transfer-ownership="none">
2561             <doc xml:whitespace="preserve">rectangle used to store the logical extents of the glyph string or %NULL to indicate that the result is not needed.</doc>
2562             <type name="Rectangle" c:type="PangoRectangle*"/>
2563           </parameter>
2564         </parameters>
2565       </method>
2566       <method name="extents_range"
2567               c:identifier="pango_glyph_string_extents_range">
2568         <doc xml:whitespace="preserve">or %NULL to indicate that the result is not needed.
2569 or %NULL to indicate that the result is not needed.
2570 Computes the extents of a sub-portion of a glyph string. The extents are
2571 relative to the start of the glyph string range (the origin of their
2572 coordinate system is at the start of the range, not at the start of the entire
2573 glyph string).</doc>
2574         <return-value transfer-ownership="none">
2575           <type name="none" c:type="void"/>
2576         </return-value>
2577         <parameters>
2578           <parameter name="start" transfer-ownership="none">
2579             <doc xml:whitespace="preserve">start index</doc>
2580             <type name="gint" c:type="int"/>
2581           </parameter>
2582           <parameter name="end" transfer-ownership="none">
2583             <doc xml:whitespace="preserve">end index (the range is the set of bytes with</doc>
2584             <type name="gint" c:type="int"/>
2585           </parameter>
2586           <parameter name="font" transfer-ownership="none">
2587             <doc xml:whitespace="preserve">a #PangoFont</doc>
2588             <type name="Font" c:type="PangoFont*"/>
2589           </parameter>
2590           <parameter name="ink_rect" transfer-ownership="none">
2591             <doc xml:whitespace="preserve">rectangle used to store the extents of the glyph string range as drawn</doc>
2592             <type name="Rectangle" c:type="PangoRectangle*"/>
2593           </parameter>
2594           <parameter name="logical_rect" transfer-ownership="none">
2595             <doc xml:whitespace="preserve">rectangle used to store the logical extents of the glyph string range</doc>
2596             <type name="Rectangle" c:type="PangoRectangle*"/>
2597           </parameter>
2598         </parameters>
2599       </method>
2600       <method name="free" c:identifier="pango_glyph_string_free">
2601         <doc xml:whitespace="preserve">Free a glyph string and associated storage.</doc>
2602         <return-value transfer-ownership="none">
2603           <type name="none" c:type="void"/>
2604         </return-value>
2605       </method>
2606       <method name="get_logical_widths"
2607               c:identifier="pango_glyph_string_get_logical_widths">
2608         <doc xml:whitespace="preserve">Given a #PangoGlyphString resulting from pango_shape() and the corresponding
2609 text, determine the screen width corresponding to each character. When
2610 multiple characters compose a single cluster, the width of the entire
2611 cluster is divided equally among the characters.
2612 See also pango_glyph_item_get_logical_widths().</doc>
2613         <return-value transfer-ownership="none">
2614           <type name="none" c:type="void"/>
2615         </return-value>
2616         <parameters>
2617           <parameter name="text" transfer-ownership="none">
2618             <doc xml:whitespace="preserve">the text corresponding to the glyphs</doc>
2619             <type name="utf8" c:type="char*"/>
2620           </parameter>
2621           <parameter name="length" transfer-ownership="none">
2622             <doc xml:whitespace="preserve">the length of @text, in bytes</doc>
2623             <type name="gint" c:type="int"/>
2624           </parameter>
2625           <parameter name="embedding_level" transfer-ownership="none">
2626             <doc xml:whitespace="preserve">the embedding level of the string</doc>
2627             <type name="gint" c:type="int"/>
2628           </parameter>
2629           <parameter name="logical_widths" transfer-ownership="none">
2630             <doc xml:whitespace="preserve">an array whose length is the number of characters in text (equal to g_utf8_strlen (text, length) unless text has NUL bytes) to be filled in with the resulting character widths.</doc>
2631             <type name="gint" c:type="int*"/>
2632           </parameter>
2633         </parameters>
2634       </method>
2635       <method name="get_width"
2636               c:identifier="pango_glyph_string_get_width"
2637               version="1.14">
2638         <doc xml:whitespace="preserve">Computes the logical width of the glyph string as can also be computed
2639 using pango_glyph_string_extents().  However, since this only computes the
2640 width, it's much faster.  This is in fact only a convenience function that
2641 computes the sum of geometry.width for each glyph in the @glyphs.</doc>
2642         <return-value transfer-ownership="none">
2643           <doc xml:whitespace="preserve">the logical width of the glyph string.</doc>
2644           <type name="gint" c:type="int"/>
2645         </return-value>
2646       </method>
2647       <method name="index_to_x" c:identifier="pango_glyph_string_index_to_x">
2648         <doc xml:whitespace="preserve">Converts from character position to x position. (X position
2649 is measured from the left edge of the run). Character positions
2650 are computed by dividing up each cluster into equal portions.</doc>
2651         <return-value transfer-ownership="none">
2652           <type name="none" c:type="void"/>
2653         </return-value>
2654         <parameters>
2655           <parameter name="text" transfer-ownership="none">
2656             <doc xml:whitespace="preserve">the text for the run</doc>
2657             <type name="utf8" c:type="char*"/>
2658           </parameter>
2659           <parameter name="length" transfer-ownership="none">
2660             <doc xml:whitespace="preserve">the number of bytes (not characters) in @text.</doc>
2661             <type name="gint" c:type="int"/>
2662           </parameter>
2663           <parameter name="analysis" transfer-ownership="none">
2664             <doc xml:whitespace="preserve">the analysis information return from pango_itemize()</doc>
2665             <type name="Analysis" c:type="PangoAnalysis*"/>
2666           </parameter>
2667           <parameter name="index_" transfer-ownership="none">
2668             <doc xml:whitespace="preserve">the byte index within @text</doc>
2669             <type name="gint" c:type="int"/>
2670           </parameter>
2671           <parameter name="trailing" transfer-ownership="none">
2672             <doc xml:whitespace="preserve">whether we should compute the result for the beginning (%FALSE) or end (%TRUE) of the character.</doc>
2673             <type name="gboolean" c:type="gboolean"/>
2674           </parameter>
2675           <parameter name="x_pos" transfer-ownership="none">
2676             <doc xml:whitespace="preserve">location to store result</doc>
2677             <type name="gint" c:type="int*"/>
2678           </parameter>
2679         </parameters>
2680       </method>
2681       <method name="set_size" c:identifier="pango_glyph_string_set_size">
2682         <doc xml:whitespace="preserve">Resize a glyph string to the given length.</doc>
2683         <return-value transfer-ownership="none">
2684           <type name="none" c:type="void"/>
2685         </return-value>
2686         <parameters>
2687           <parameter name="new_len" transfer-ownership="none">
2688             <doc xml:whitespace="preserve">the new length of the string.</doc>
2689             <type name="gint" c:type="gint"/>
2690           </parameter>
2691         </parameters>
2692       </method>
2693       <method name="x_to_index" c:identifier="pango_glyph_string_x_to_index">
2694         <doc xml:whitespace="preserve">Convert from x offset to character position. Character positions
2695 are computed by dividing up each cluster into equal portions.
2696 In scripts where positioning within a cluster is not allowed
2697 (such as Thai), the returned value may not be a valid cursor
2698 position; the caller must combine the result with the logical
2699 attributes for the text to compute the valid cursor position.</doc>
2700         <return-value transfer-ownership="none">
2701           <type name="none" c:type="void"/>
2702         </return-value>
2703         <parameters>
2704           <parameter name="text" transfer-ownership="none">
2705             <doc xml:whitespace="preserve">the text for the run</doc>
2706             <type name="utf8" c:type="char*"/>
2707           </parameter>
2708           <parameter name="length" transfer-ownership="none">
2709             <doc xml:whitespace="preserve">the number of bytes (not characters) in text.</doc>
2710             <type name="gint" c:type="int"/>
2711           </parameter>
2712           <parameter name="analysis" transfer-ownership="none">
2713             <doc xml:whitespace="preserve">the analysis information return from pango_itemize()</doc>
2714             <type name="Analysis" c:type="PangoAnalysis*"/>
2715           </parameter>
2716           <parameter name="x_pos" transfer-ownership="none">
2717             <doc xml:whitespace="preserve">the x offset (in Pango units)</doc>
2718             <type name="gint" c:type="int"/>
2719           </parameter>
2720           <parameter name="index_" transfer-ownership="none">
2721             <doc xml:whitespace="preserve">location to store calculated byte index within @text</doc>
2722             <type name="gint" c:type="int*"/>
2723           </parameter>
2724           <parameter name="trailing" transfer-ownership="none">
2725             <doc xml:whitespace="preserve">location to store a boolean indicating whether the user clicked on the leading or trailing edge of the character.</doc>
2726             <type name="gint" c:type="int*"/>
2727           </parameter>
2728         </parameters>
2729       </method>
2730     </record>
2731     <record name="GlyphVisAttr" c:type="PangoGlyphVisAttr">
2732       <field name="is_cluster_start" writable="1" bits="1">
2733         <type name="guint" c:type="guint"/>
2734       </field>
2735     </record>
2736     <enumeration name="Gravity"
2737                  version="1.16"
2738                  glib:type-name="PangoGravity"
2739                  glib:get-type="pango_gravity_get_type"
2740                  c:type="PangoGravity">
2741       <doc xml:whitespace="preserve">The #PangoGravity type represents the orientation of glyphs in a segment
2742 of text.  This is useful when rendering vertical text layouts.  In
2743 those situations, the layout is rotated using a non-identity PangoMatrix,
2744 and then glyph orientation is controlled using #PangoGravity.
2745 Not every value in this enumeration makes sense for every usage of
2746 #PangoGravity; for example, %PANGO_GRAVITY_AUTO only can be passed to
2747 pango_context_set_base_gravity() and can only be returned by
2748 pango_context_get_base_gravity().</doc>
2749       <member name="south"
2750               value="0"
2751               c:identifier="PANGO_GRAVITY_SOUTH"
2752               glib:nick="south"/>
2753       <member name="east"
2754               value="1"
2755               c:identifier="PANGO_GRAVITY_EAST"
2756               glib:nick="east"/>
2757       <member name="north"
2758               value="2"
2759               c:identifier="PANGO_GRAVITY_NORTH"
2760               glib:nick="north"/>
2761       <member name="west"
2762               value="3"
2763               c:identifier="PANGO_GRAVITY_WEST"
2764               glib:nick="west"/>
2765       <member name="auto"
2766               value="4"
2767               c:identifier="PANGO_GRAVITY_AUTO"
2768               glib:nick="auto"/>
2769     </enumeration>
2770     <enumeration name="GravityHint"
2771                  version="1.16"
2772                  glib:type-name="PangoGravityHint"
2773                  glib:get-type="pango_gravity_hint_get_type"
2774                  c:type="PangoGravityHint">
2775       <doc xml:whitespace="preserve">The #PangoGravityHint defines how horizontal scripts should behave in a
2776 vertical context.  That is, English excerpt in a vertical paragraph for
2777 example.
2778 See #PangoGravity.</doc>
2779       <member name="natural"
2780               value="0"
2781               c:identifier="PANGO_GRAVITY_HINT_NATURAL"
2782               glib:nick="natural"/>
2783       <member name="strong"
2784               value="1"
2785               c:identifier="PANGO_GRAVITY_HINT_STRONG"
2786               glib:nick="strong"/>
2787       <member name="line"
2788               value="2"
2789               c:identifier="PANGO_GRAVITY_HINT_LINE"
2790               glib:nick="line"/>
2791     </enumeration>
2792     <record name="Item"
2793             c:type="PangoItem"
2794             glib:type-name="PangoItem"
2795             glib:get-type="pango_item_get_type"
2796             c:symbol-prefix="item">
2797       <field name="offset" writable="1">
2798         <type name="gint" c:type="gint"/>
2799       </field>
2800       <field name="length" writable="1">
2801         <type name="gint" c:type="gint"/>
2802       </field>
2803       <field name="num_chars" writable="1">
2804         <type name="gint" c:type="gint"/>
2805       </field>
2806       <field name="analysis" writable="1">
2807         <type name="Analysis" c:type="PangoAnalysis"/>
2808       </field>
2809       <constructor name="new" c:identifier="pango_item_new">
2810         <doc xml:whitespace="preserve">Creates a new #PangoItem structure initialized to default values.
2811 be freed with pango_item_free().</doc>
2812         <return-value transfer-ownership="full">
2813           <doc xml:whitespace="preserve">the newly allocated #PangoItem, which should</doc>
2814           <type name="Item" c:type="PangoItem*"/>
2815         </return-value>
2816       </constructor>
2817       <method name="copy" c:identifier="pango_item_copy">
2818         <doc xml:whitespace="preserve">Copy an existing #PangoItem structure.
2819 be freed with pango_item_free(), or %NULL if</doc>
2820         <return-value transfer-ownership="full">
2821           <doc xml:whitespace="preserve">the newly allocated #PangoItem, which should</doc>
2822           <type name="Item" c:type="PangoItem*"/>
2823         </return-value>
2824       </method>
2825       <method name="free" c:identifier="pango_item_free">
2826         <doc xml:whitespace="preserve">Free a #PangoItem and all associated memory.</doc>
2827         <return-value transfer-ownership="none">
2828           <type name="none" c:type="void"/>
2829         </return-value>
2830       </method>
2831       <method name="split" c:identifier="pango_item_split">
2832         <doc xml:whitespace="preserve">Modifies @orig to cover only the text after @split_index, and
2833 returns a new item that covers the text before @split_index that
2834 used to be in @orig. You can think of @split_index as the length of
2835 the returned item. @split_index may not be 0, and it may not be
2836 greater than or equal to the length of @orig (that is, there must
2837 be at least one byte assigned to each item, you can't create a
2838 zero-length item). @split_offset is the length of the first item in
2839 chars, and must be provided because the text used to generate the
2840 item isn't available, so pango_item_split() can't count the char
2841 length of the split items itself.
2842 should be freed with pango_item_free().</doc>
2843         <return-value transfer-ownership="full">
2844           <doc xml:whitespace="preserve">new item representing text before @split_index, which</doc>
2845           <type name="Item" c:type="PangoItem*"/>
2846         </return-value>
2847         <parameters>
2848           <parameter name="split_index" transfer-ownership="none">
2849             <doc xml:whitespace="preserve">byte index of position to split item, relative to the start of the item</doc>
2850             <type name="gint" c:type="int"/>
2851           </parameter>
2852           <parameter name="split_offset" transfer-ownership="none">
2853             <doc xml:whitespace="preserve">number of chars between start of @orig and @split_index</doc>
2854             <type name="gint" c:type="int"/>
2855           </parameter>
2856         </parameters>
2857       </method>
2858     </record>
2859     <record name="Language"
2860             c:type="PangoLanguage"
2861             glib:type-name="PangoLanguage"
2862             glib:get-type="pango_language_get_type"
2863             c:symbol-prefix="language">
2864       <method name="get_sample_string"
2865               c:identifier="pango_language_get_sample_string">
2866         <doc xml:whitespace="preserve">Get a string that is representative of the characters needed to
2867 render a particular language.
2868 The sample text may be a pangram, but is not necessarily.  It is chosen to
2869 be demonstrative of normal text in the language, as well as exposing font
2870 feature requirements unique to the language.  It is suitable for use
2871 as sample text in a font selection dialog.
2872 If @language is %NULL, the default language as found by
2873 pango_language_get_default() is used.
2874 If Pango does not have a sample string for @language, the classic
2875 "The quick brown fox..." is returned.  This can be detected by
2876 comparing the returned pointer value to that returned for (non-existent)
2877 language code "xx".  That is, compare to:
2878 &lt;informalexample&gt;&lt;programlisting&gt;
2879 pango_language_get_sample_string (pango_language_from_string ("xx"))
2880 &lt;/programlisting&gt;&lt;/informalexample&gt;
2881 and should not be freed.</doc>
2882         <return-value transfer-ownership="none">
2883           <doc xml:whitespace="preserve">the sample string. This value is owned by Pango</doc>
2884           <type name="utf8" c:type="char*"/>
2885         </return-value>
2886       </method>
2887       <method name="get_scripts"
2888               c:identifier="pango_language_get_scripts"
2889               version="1.22">
2890         <doc xml:whitespace="preserve">Determines the scripts used to to write @language.
2891 If nothing is known about the language tag @language,
2892 or if @language is %NULL, then %NULL is returned.
2893 The list of scripts returned starts with the script that the
2894 language uses most and continues to the one it uses least.
2895 The value @num_script points at will be set to the number
2896 of scripts in the returned array (or zero if %NULL is returned).
2897 Most languages use only one script for writing, but there are
2898 some that use two (Latin and Cyrillic for example), and a few
2899 use three (Japanese for example).  Applications should not make
2900 any assumptions on the maximum number of scripts returned
2901 though, except that it is positive if the return value is not
2902 %NULL, and it is a small number.
2903 The pango_language_includes_script() function uses this function
2904 internally.
2905 number of entries in the array stored in @num_scripts, or
2906 %NULL if Pango does not have any information about this
2907 particular language tag (also the case if @language is %NULL).
2908 The returned array is owned by Pango and should not be modified
2909 or freed.</doc>
2910         <return-value transfer-ownership="none">
2911           <doc xml:whitespace="preserve">An array of #PangoScript values, with the</doc>
2912           <type name="Script" c:type="PangoScript*"/>
2913         </return-value>
2914         <parameters>
2915           <parameter name="num_scripts" transfer-ownership="none">
2916             <doc xml:whitespace="preserve">location to return number of scripts, or %NULL</doc>
2917             <type name="gint" c:type="int*"/>
2918           </parameter>
2919         </parameters>
2920       </method>
2921       <method name="includes_script"
2922               c:identifier="pango_language_includes_script"
2923               version="1.4">
2924         <doc xml:whitespace="preserve">Determines if @script is one of the scripts used to
2925 write @language. The returned value is conservative;
2926 if nothing is known about the language tag @language,
2927 %TRUE will be returned, since, as far as Pango knows,
2928 This routine is used in Pango's itemization process when
2929 determining if a supplied language tag is relevant to
2930 a particular section of text. It probably is not useful for
2931 applications in most circumstances.
2932 This function uses pango_language_get_scripts() internally.
2933 to write @language or if nothing is known about @language
2934 (including the case that @language is %NULL),
2935 %FALSE otherwise.</doc>
2936         <return-value transfer-ownership="none">
2937           <doc xml:whitespace="preserve">%TRUE if @script is one of the scripts used</doc>
2938           <type name="gboolean" c:type="gboolean"/>
2939         </return-value>
2940         <parameters>
2941           <parameter name="script" transfer-ownership="none">
2942             <doc xml:whitespace="preserve">a #PangoScript</doc>
2943             <type name="Script" c:type="PangoScript"/>
2944           </parameter>
2945         </parameters>
2946       </method>
2947       <method name="matches" c:identifier="pango_language_matches">
2948         <doc xml:whitespace="preserve">Checks if a language tag matches one of the elements in a list of
2949 language ranges. A language tag is considered to match a range
2950 in the list if the range is '*', the range is exactly the tag,
2951 or the range is a prefix of the tag, and the character after it
2952 in the tag is '-'.</doc>
2953         <return-value transfer-ownership="none">
2954           <doc xml:whitespace="preserve">%TRUE if a match was found.</doc>
2955           <type name="gboolean" c:type="gboolean"/>
2956         </return-value>
2957         <parameters>
2958           <parameter name="range_list" transfer-ownership="none">
2959             <doc xml:whitespace="preserve">a list of language ranges, separated by ';', ':', ',', or space characters. Each element must either be '*', or a RFC 3066 language range canonicalized as by pango_language_from_string()</doc>
2960             <type name="utf8" c:type="char*"/>
2961           </parameter>
2962         </parameters>
2963       </method>
2964       <method name="to_string" c:identifier="pango_language_to_string">
2965         <doc xml:whitespace="preserve">Gets the RFC-3066 format string representing the given language tag. 
2966 Pango and should not be freed.</doc>
2967         <return-value transfer-ownership="none">
2968           <doc xml:whitespace="preserve">a string representing the language tag.  This is owned by</doc>
2969           <type name="utf8" c:type="char*"/>
2970         </return-value>
2971       </method>
2972     </record>
2973     <class name="Layout"
2974            c:symbol-prefix="layout"
2975            c:type="PangoLayout"
2976            parent="GObject.Object"
2977            glib:type-name="PangoLayout"
2978            glib:get-type="pango_layout_get_type"
2979            glib:type-struct="LayoutClass">
2980       <constructor name="new" c:identifier="pango_layout_new">
2981         <doc xml:whitespace="preserve">Create a new #PangoLayout object with attributes initialized to
2982 default values for a particular #PangoContext.
2983 count of one, which should be freed with
2984 g_object_unref().</doc>
2985         <return-value transfer-ownership="full">
2986           <doc xml:whitespace="preserve">the newly allocated #PangoLayout, with a reference</doc>
2987           <type name="Layout" c:type="PangoLayout*"/>
2988         </return-value>
2989         <parameters>
2990           <parameter name="context" transfer-ownership="none">
2991             <doc xml:whitespace="preserve">a #PangoContext</doc>
2992             <type name="Context" c:type="PangoContext*"/>
2993           </parameter>
2994         </parameters>
2995       </constructor>
2996       <method name="context_changed"
2997               c:identifier="pango_layout_context_changed">
2998         <doc xml:whitespace="preserve">Forces recomputation of any state in the #PangoLayout that
2999 might depend on the layout's context. This function should
3000 be called if you make changes to the context subsequent
3001 to creating the layout.</doc>
3002         <return-value transfer-ownership="none">
3003           <type name="none" c:type="void"/>
3004         </return-value>
3005       </method>
3006       <method name="copy" c:identifier="pango_layout_copy" introspectable="0">
3007         <doc xml:whitespace="preserve">Does a deep copy-by-value of the @src layout. The attribute list,
3008 tab array, and text from the original layout are all copied by
3009 value.
3010 count of one, which should be freed with
3011 g_object_unref().</doc>
3012         <return-value>
3013           <doc xml:whitespace="preserve">the newly allocated #PangoLayout, with a reference</doc>
3014           <type name="Layout" c:type="PangoLayout*"/>
3015         </return-value>
3016       </method>
3017       <method name="get_alignment" c:identifier="pango_layout_get_alignment">
3018         <doc xml:whitespace="preserve">positioned within the horizontal space available.</doc>
3019         <return-value transfer-ownership="none">
3020           <doc xml:whitespace="preserve">the alignment.</doc>
3021           <type name="Alignment" c:type="PangoAlignment"/>
3022         </return-value>
3023       </method>
3024       <method name="get_attributes" c:identifier="pango_layout_get_attributes">
3025         <doc xml:whitespace="preserve">Gets the attribute list for the layout, if any.</doc>
3026         <return-value transfer-ownership="full">
3027           <doc xml:whitespace="preserve">a #PangoAttrList.</doc>
3028           <type name="AttrList" c:type="PangoAttrList*"/>
3029         </return-value>
3030       </method>
3031       <method name="get_auto_dir"
3032               c:identifier="pango_layout_get_auto_dir"
3033               version="1.4">
3034         <doc xml:whitespace="preserve">Gets whether to calculate the bidirectional base direction
3035 for the layout according to the contents of the layout.
3036 See pango_layout_set_auto_dir().
3037 is computed from the layout's contents, %FALSE otherwise.</doc>
3038         <return-value transfer-ownership="none">
3039           <doc xml:whitespace="preserve">%TRUE if the bidirectional base direction</doc>
3040           <type name="gboolean" c:type="gboolean"/>
3041         </return-value>
3042       </method>
3043       <method name="get_baseline"
3044               c:identifier="pango_layout_get_baseline"
3045               version="1.22">
3046         <doc xml:whitespace="preserve">Gets the Y position of baseline of the first line in @layout.</doc>
3047         <return-value transfer-ownership="none">
3048           <doc xml:whitespace="preserve">baseline of first line, from top of @layout.</doc>
3049           <type name="gint" c:type="int"/>
3050         </return-value>
3051       </method>
3052       <method name="get_context"
3053               c:identifier="pango_layout_get_context"
3054               introspectable="0">
3055         <doc xml:whitespace="preserve">Retrieves the #PangoContext used for this layout.
3056 have an additional refcount added, so if you want to keep
3057 a copy of this around, you must reference it yourself.</doc>
3058         <return-value>
3059           <doc xml:whitespace="preserve">the #PangoContext for the layout. This does not</doc>
3060           <type name="Context" c:type="PangoContext*"/>
3061         </return-value>
3062       </method>
3063       <method name="get_cursor_pos" c:identifier="pango_layout_get_cursor_pos">
3064         <doc xml:whitespace="preserve">Given an index within a layout, determines the positions that of the
3065 strong and weak cursors if the insertion point is at that
3066 index. The position of each cursor is stored as a zero-width
3067 rectangle. The strong cursor location is the location where
3068 characters of the directionality equal to the base direction of the
3069 layout are inserted.  The weak cursor location is the location
3070 where characters of the directionality opposite to the base
3071 direction of the layout are inserted.</doc>
3072         <return-value transfer-ownership="none">
3073           <type name="none" c:type="void"/>
3074         </return-value>
3075         <parameters>
3076           <parameter name="index_" transfer-ownership="none">
3077             <doc xml:whitespace="preserve">the byte index of the cursor</doc>
3078             <type name="gint" c:type="int"/>
3079           </parameter>
3080           <parameter name="strong_pos" transfer-ownership="none">
3081             <doc xml:whitespace="preserve">location to store the strong cursor position (may be %NULL)</doc>
3082             <type name="Rectangle" c:type="PangoRectangle*"/>
3083           </parameter>
3084           <parameter name="weak_pos" transfer-ownership="none">
3085             <doc xml:whitespace="preserve">location to store the weak cursor position (may be %NULL)</doc>
3086             <type name="Rectangle" c:type="PangoRectangle*"/>
3087           </parameter>
3088         </parameters>
3089       </method>
3090       <method name="get_ellipsize"
3091               c:identifier="pango_layout_get_ellipsize"
3092               version="1.6">
3093         <doc xml:whitespace="preserve">Gets the type of ellipsization being performed for @layout.
3094 See pango_layout_set_ellipsize()
3095 Use pango_layout_is_ellipsized() to query whether any paragraphs
3096 were actually ellipsized.</doc>
3097         <return-value transfer-ownership="none">
3098           <doc xml:whitespace="preserve">the current ellipsization mode for @layout.</doc>
3099           <type name="EllipsizeMode" c:type="PangoEllipsizeMode"/>
3100         </return-value>
3101       </method>
3102       <method name="get_extents" c:identifier="pango_layout_get_extents">
3103         <doc xml:whitespace="preserve">Computes the logical and ink extents of @layout. Logical extents
3104 are usually what you want for positioning things.  Note that both extents
3105 may have non-zero x and y.  You may want to use those to offset where you
3106 render the layout.  Not doing that is a very typical bug that shows up as
3107 right-to-left layouts not being correctly positioned in a layout with
3108 a set width.
3109 The extents are given in layout coordinates and in Pango units; layout
3110 coordinates begin at the top left corner of the layout.</doc>
3111         <return-value transfer-ownership="none">
3112           <type name="none" c:type="void"/>
3113         </return-value>
3114         <parameters>
3115           <parameter name="ink_rect" transfer-ownership="none">
3116             <doc xml:whitespace="preserve">rectangle used to store the extents of the layout as drawn or %NULL to indicate that the result is not needed.</doc>
3117             <type name="Rectangle" c:type="PangoRectangle*"/>
3118           </parameter>
3119           <parameter name="logical_rect" transfer-ownership="none">
3120             <doc xml:whitespace="preserve">rectangle used to store the logical extents of the layout</doc>
3121             <type name="Rectangle" c:type="PangoRectangle*"/>
3122           </parameter>
3123         </parameters>
3124       </method>
3125       <method name="get_font_description"
3126               c:identifier="pango_layout_get_font_description"
3127               version="1.8">
3128         <doc xml:whitespace="preserve">Gets the font description for the layout, if any.
3129 or %NULL if the font description from the layout's
3130 context is inherited. This value is owned by the layout
3131 and must not be modified or freed.</doc>
3132         <return-value transfer-ownership="none">
3133           <doc xml:whitespace="preserve">a pointer to the layout's font description,</doc>
3134           <type name="FontDescription" c:type="PangoFontDescription*"/>
3135         </return-value>
3136       </method>
3137       <method name="get_height"
3138               c:identifier="pango_layout_get_height"
3139               version="1.20">
3140         <doc xml:whitespace="preserve">Gets the height of layout used for ellipsization.  See
3141 pango_layout_set_height() for details.
3142 number of lines if negative.</doc>
3143         <return-value transfer-ownership="none">
3144           <doc xml:whitespace="preserve">the height, in Pango units if positive, or</doc>
3145           <type name="gint" c:type="int"/>
3146         </return-value>
3147       </method>
3148       <method name="get_indent" c:identifier="pango_layout_get_indent">
3149         <doc xml:whitespace="preserve">Gets the paragraph indent width in Pango units. A negative value
3150 indicates a hanging indentation.</doc>
3151         <return-value transfer-ownership="none">
3152           <doc xml:whitespace="preserve">the indent in Pango units.</doc>
3153           <type name="gint" c:type="int"/>
3154         </return-value>
3155       </method>
3156       <method name="get_iter" c:identifier="pango_layout_get_iter">
3157         <doc xml:whitespace="preserve">Returns an iterator to iterate over the visual extents of the layout.
3158 pango_layout_iter_free().</doc>
3159         <return-value transfer-ownership="full">
3160           <doc xml:whitespace="preserve">the new #PangoLayoutIter that should be freed using</doc>
3161           <type name="LayoutIter" c:type="PangoLayoutIter*"/>
3162         </return-value>
3163       </method>
3164       <method name="get_justify" c:identifier="pango_layout_get_justify">
3165         <doc xml:whitespace="preserve">Gets whether each complete line should be stretched to fill the entire
3166 width of the layout.</doc>
3167         <return-value transfer-ownership="none">
3168           <doc xml:whitespace="preserve">the justify.</doc>
3169           <type name="gboolean" c:type="gboolean"/>
3170         </return-value>
3171       </method>
3172       <method name="get_line" c:identifier="pango_layout_get_line">
3173         <doc xml:whitespace="preserve">Retrieves a particular line from a #PangoLayout.
3174 Use the faster pango_layout_get_line_readonly() if you do not plan
3175 to modify the contents of the line (glyphs, glyph widths, etc.).
3176 index is out of range. This layout line can
3177 be ref'ed and retained, but will become invalid
3178 if changes are made to the #PangoLayout.</doc>
3179         <return-value transfer-ownership="full">
3180           <doc xml:whitespace="preserve">the requested #PangoLayoutLine, or %NULL if the</doc>
3181           <type name="LayoutLine" c:type="PangoLayoutLine*"/>
3182         </return-value>
3183         <parameters>
3184           <parameter name="line" transfer-ownership="none">
3185             <doc xml:whitespace="preserve">the index of a line, which must be between 0 and &lt;literal&gt;pango_layout_get_line_count(layout) - 1&lt;/literal&gt;, inclusive.</doc>
3186             <type name="gint" c:type="int"/>
3187           </parameter>
3188         </parameters>
3189       </method>
3190       <method name="get_line_count" c:identifier="pango_layout_get_line_count">
3191         <doc xml:whitespace="preserve">Retrieves the count of lines for the @layout.</doc>
3192         <return-value transfer-ownership="none">
3193           <doc xml:whitespace="preserve">the line count.</doc>
3194           <type name="gint" c:type="int"/>
3195         </return-value>
3196       </method>
3197       <method name="get_line_readonly"
3198               c:identifier="pango_layout_get_line_readonly"
3199               version="1.16">
3200         <doc xml:whitespace="preserve">Retrieves a particular line from a #PangoLayout.
3201 This is a faster alternative to pango_layout_get_line(),
3202 but the user is not expected
3203 to modify the contents of the line (glyphs, glyph widths, etc.).
3204 index is out of range. This layout line can
3205 be ref'ed and retained, but will become invalid
3206 if changes are made to the #PangoLayout.
3207 No changes should be made to the line.</doc>
3208         <return-value transfer-ownership="full">
3209           <doc xml:whitespace="preserve">the requested #PangoLayoutLine, or %NULL if the</doc>
3210           <type name="LayoutLine" c:type="PangoLayoutLine*"/>
3211         </return-value>
3212         <parameters>
3213           <parameter name="line" transfer-ownership="none">
3214             <doc xml:whitespace="preserve">the index of a line, which must be between 0 and &lt;literal&gt;pango_layout_get_line_count(layout) - 1&lt;/literal&gt;, inclusive.</doc>
3215             <type name="gint" c:type="int"/>
3216           </parameter>
3217         </parameters>
3218       </method>
3219       <method name="get_lines" c:identifier="pango_layout_get_lines">
3220         <doc xml:whitespace="preserve">Returns the lines of the @layout as a list.
3221 Use the faster pango_layout_get_lines_readonly() if you do not plan
3222 to modify the contents of the lines (glyphs, glyph widths, etc.).
3223 the lines in the layout. This points to internal data of the #PangoLayout
3224 and must be used with care. It will become invalid on any change to the layout's
3225 text or properties.</doc>
3226         <return-value transfer-ownership="none">
3227           <doc xml:whitespace="preserve">a #GSList containing</doc>
3228           <type name="GLib.SList" c:type="GSList*">
3229             <type name="LayoutLine"/>
3230           </type>
3231         </return-value>
3232       </method>
3233       <method name="get_lines_readonly"
3234               c:identifier="pango_layout_get_lines_readonly"
3235               version="1.16">
3236         <doc xml:whitespace="preserve">Returns the lines of the @layout as a list.
3237 This is a faster alternative to pango_layout_get_lines(),
3238 but the user is not expected
3239 to modify the contents of the lines (glyphs, glyph widths, etc.).
3240 the lines in the layout. This points to internal data of the #PangoLayout and
3241 must be used with care. It will become invalid on any change to the layout's
3242 text or properties.  No changes should be made to the lines.</doc>
3243         <return-value transfer-ownership="none">
3244           <doc xml:whitespace="preserve">a #GSList containing</doc>
3245           <type name="GLib.SList" c:type="GSList*">
3246             <type name="LayoutLine"/>
3247           </type>
3248         </return-value>
3249       </method>
3250       <method name="get_log_attrs" c:identifier="pango_layout_get_log_attrs">
3251         <doc xml:whitespace="preserve">Retrieves an array of logical attributes for each character in
3252 the @layout.</doc>
3253         <return-value transfer-ownership="none">
3254           <type name="none" c:type="void"/>
3255         </return-value>
3256         <parameters>
3257           <parameter name="attrs" transfer-ownership="none">
3258             <doc xml:whitespace="preserve">location to store a pointer to an array of logical attributes This value must be freed with g_free().</doc>
3259             <type name="LogAttr" c:type="PangoLogAttr**"/>
3260           </parameter>
3261           <parameter name="n_attrs" transfer-ownership="none">
3262             <doc xml:whitespace="preserve">location to store the number of the attributes in the array. (The stored value will be one more than the total number of characters in the layout, since there need to be attributes corresponding to both the position before the first character and the position after the last character.)</doc>
3263             <type name="gint" c:type="gint*"/>
3264           </parameter>
3265         </parameters>
3266       </method>
3267       <method name="get_pixel_extents"
3268               c:identifier="pango_layout_get_pixel_extents">
3269         <doc xml:whitespace="preserve">Computes the logical and ink extents of @layout in device units.
3270 This function just calls pango_layout_get_extents() followed by
3271 two pango_extents_to_pixels() calls, rounding @ink_rect and @logical_rect
3272 such that the rounded rectangles fully contain the unrounded one (that is,
3273 passes them as first argument to pango_extents_to_pixels()).</doc>
3274         <return-value transfer-ownership="none">
3275           <type name="none" c:type="void"/>
3276         </return-value>
3277         <parameters>
3278           <parameter name="ink_rect" transfer-ownership="none">
3279             <doc xml:whitespace="preserve">rectangle used to store the extents of the layout as drawn or %NULL to indicate that the result is not needed.</doc>
3280             <type name="Rectangle" c:type="PangoRectangle*"/>
3281           </parameter>
3282           <parameter name="logical_rect" transfer-ownership="none">
3283             <doc xml:whitespace="preserve">rectangle used to store the logical extents of the layout or %NULL to indicate that the result is not needed.</doc>
3284             <type name="Rectangle" c:type="PangoRectangle*"/>
3285           </parameter>
3286         </parameters>
3287       </method>
3288       <method name="get_pixel_size" c:identifier="pango_layout_get_pixel_size">
3289         <doc xml:whitespace="preserve">Determines the logical width and height of a #PangoLayout
3290 in device units. (pango_layout_get_size() returns the width
3291 and height scaled by %PANGO_SCALE.) This
3292 is simply a convenience function around
3293 pango_layout_get_pixel_extents().</doc>
3294         <return-value transfer-ownership="none">
3295           <type name="none" c:type="void"/>
3296         </return-value>
3297         <parameters>
3298           <parameter name="width" transfer-ownership="none">
3299             <doc xml:whitespace="preserve">location to store the logical width, or %NULL</doc>
3300             <type name="gint" c:type="int*"/>
3301           </parameter>
3302           <parameter name="height" transfer-ownership="none">
3303             <doc xml:whitespace="preserve">location to store the logical height, or %NULL</doc>
3304             <type name="gint" c:type="int*"/>
3305           </parameter>
3306         </parameters>
3307       </method>
3308       <method name="get_single_paragraph_mode"
3309               c:identifier="pango_layout_get_single_paragraph_mode">
3310         <doc xml:whitespace="preserve">Obtains the value set by pango_layout_set_single_paragraph_mode().
3311 paragraph separator characters, %FALSE otherwise.</doc>
3312         <return-value transfer-ownership="none">
3313           <doc xml:whitespace="preserve">%TRUE if the layout does not break paragraphs at</doc>
3314           <type name="gboolean" c:type="gboolean"/>
3315         </return-value>
3316       </method>
3317       <method name="get_size" c:identifier="pango_layout_get_size">
3318         <doc xml:whitespace="preserve">Determines the logical width and height of a #PangoLayout
3319 in Pango units (device units scaled by %PANGO_SCALE). This
3320 is simply a convenience function around pango_layout_get_extents().</doc>
3321         <return-value transfer-ownership="none">
3322           <type name="none" c:type="void"/>
3323         </return-value>
3324         <parameters>
3325           <parameter name="width" transfer-ownership="none">
3326             <doc xml:whitespace="preserve">location to store the logical width, or %NULL</doc>
3327             <type name="gint" c:type="int*"/>
3328           </parameter>
3329           <parameter name="height" transfer-ownership="none">
3330             <doc xml:whitespace="preserve">location to store the logical height, or %NULL</doc>
3331             <type name="gint" c:type="int*"/>
3332           </parameter>
3333         </parameters>
3334       </method>
3335       <method name="get_spacing" c:identifier="pango_layout_get_spacing">
3336         <doc xml:whitespace="preserve">Gets the amount of spacing between the lines of the layout.</doc>
3337         <return-value transfer-ownership="none">
3338           <doc xml:whitespace="preserve">the spacing in Pango units.</doc>
3339           <type name="gint" c:type="int"/>
3340         </return-value>
3341       </method>
3342       <method name="get_tabs" c:identifier="pango_layout_get_tabs">
3343         <doc xml:whitespace="preserve">Gets the current #PangoTabArray used by this layout. If no
3344 #PangoTabArray has been set, then the default tabs are in use
3345 and %NULL is returned. Default tabs are every 8 spaces.
3346 The return value should be freed with pango_tab_array_free().</doc>
3347         <return-value transfer-ownership="full">
3348           <doc xml:whitespace="preserve">a copy of the tabs for this layout, or %NULL.</doc>
3349           <type name="TabArray" c:type="PangoTabArray*"/>
3350         </return-value>
3351       </method>
3352       <method name="get_text" c:identifier="pango_layout_get_text">
3353         <doc xml:whitespace="preserve">Gets the text in the layout. The returned text should not
3354 be freed or modified.</doc>
3355         <return-value transfer-ownership="none">
3356           <doc xml:whitespace="preserve">the text in the @layout.</doc>
3357           <type name="utf8" c:type="char*"/>
3358         </return-value>
3359       </method>
3360       <method name="get_unknown_glyphs_count"
3361               c:identifier="pango_layout_get_unknown_glyphs_count"
3362               version="1.16">
3363         <doc xml:whitespace="preserve">Counts the number unknown glyphs in @layout.  That is, zero if
3364 glyphs for all characters in the layout text were found, or more
3365 than zero otherwise.
3366 This function can be used to determine if there are any fonts
3367 available to render all characters in a certain string, or when
3368 used in combination with %PANGO_ATTR_FALLBACK, to check if a
3369 certain font supports all the characters in the string.</doc>
3370         <return-value transfer-ownership="none">
3371           <doc xml:whitespace="preserve">The number of unknown glyphs in @layout.</doc>
3372           <type name="gint" c:type="int"/>
3373         </return-value>
3374       </method>
3375       <method name="get_width" c:identifier="pango_layout_get_width">
3376         <doc xml:whitespace="preserve">Gets the width to which the lines of the #PangoLayout should wrap.</doc>
3377         <return-value transfer-ownership="none">
3378           <doc xml:whitespace="preserve">the width in Pango units, or -1 if no width set.</doc>
3379           <type name="gint" c:type="int"/>
3380         </return-value>
3381       </method>
3382       <method name="get_wrap" c:identifier="pango_layout_get_wrap">
3383         <doc xml:whitespace="preserve">Gets the wrap mode for the layout.
3384 Use pango_layout_is_wrapped() to query whether any paragraphs
3385 were actually wrapped.</doc>
3386         <return-value transfer-ownership="none">
3387           <doc xml:whitespace="preserve">active wrap mode.</doc>
3388           <type name="WrapMode" c:type="PangoWrapMode"/>
3389         </return-value>
3390       </method>
3391       <method name="index_to_line_x"
3392               c:identifier="pango_layout_index_to_line_x">
3393         <doc xml:whitespace="preserve">Converts from byte @index_ within the @layout to line and X position.
3394 (X position is measured from the left edge of the line)</doc>
3395         <return-value transfer-ownership="none">
3396           <type name="none" c:type="void"/>
3397         </return-value>
3398         <parameters>
3399           <parameter name="index_" transfer-ownership="none">
3400             <doc xml:whitespace="preserve">the byte index of a grapheme within the layout.</doc>
3401             <type name="gint" c:type="int"/>
3402           </parameter>
3403           <parameter name="trailing" transfer-ownership="none">
3404             <doc xml:whitespace="preserve">an integer indicating the edge of the grapheme to retrieve the position of. If 0, the trailing edge of the grapheme, if &gt; 0, the leading of the grapheme.</doc>
3405             <type name="gboolean" c:type="gboolean"/>
3406           </parameter>
3407           <parameter name="line" transfer-ownership="none">
3408             <doc xml:whitespace="preserve">location to store resulting line index. (which will between 0 and pango_layout_get_line_count(layout) - 1)</doc>
3409             <type name="gint" c:type="int*"/>
3410           </parameter>
3411           <parameter name="x_pos" transfer-ownership="none">
3412             <doc xml:whitespace="preserve">location to store resulting position within line (%PANGO_SCALE units per device unit)</doc>
3413             <type name="gint" c:type="int*"/>
3414           </parameter>
3415         </parameters>
3416       </method>
3417       <method name="index_to_pos" c:identifier="pango_layout_index_to_pos">
3418         <doc xml:whitespace="preserve">Converts from an index within a #PangoLayout to the onscreen position
3419 corresponding to the grapheme at that index, which is represented
3420 as rectangle.  Note that &lt;literal&gt;pos-&gt;x&lt;/literal&gt; is always the leading
3421 edge of the grapheme and &lt;literal&gt;pos-&gt;x + pos-&gt;width&lt;/literal&gt; the trailing
3422 edge of the grapheme. If the directionality of the grapheme is right-to-left,
3423 then &lt;literal&gt;pos-&gt;width&lt;/literal&gt; will be negative.</doc>
3424         <return-value transfer-ownership="none">
3425           <type name="none" c:type="void"/>
3426         </return-value>
3427         <parameters>
3428           <parameter name="index_" transfer-ownership="none">
3429             <doc xml:whitespace="preserve">byte index within @layout</doc>
3430             <type name="gint" c:type="int"/>
3431           </parameter>
3432           <parameter name="pos" transfer-ownership="none">
3433             <doc xml:whitespace="preserve">rectangle in which to store the position of the grapheme</doc>
3434             <type name="Rectangle" c:type="PangoRectangle*"/>
3435           </parameter>
3436         </parameters>
3437       </method>
3438       <method name="is_ellipsized"
3439               c:identifier="pango_layout_is_ellipsized"
3440               version="1.16">
3441         <doc xml:whitespace="preserve">Queries whether the layout had to ellipsize any paragraphs.
3442 This returns %TRUE if the ellipsization mode for @layout
3443 is not %PANGO_ELLIPSIZE_NONE, a positive width is set on @layout,
3444 and there are paragraphs exceeding that width that have to be
3445 ellipsized.
3446 otherwise.</doc>
3447         <return-value transfer-ownership="none">
3448           <doc xml:whitespace="preserve">%TRUE if any paragraphs had to be ellipsized, %FALSE</doc>
3449           <type name="gboolean" c:type="gboolean"/>
3450         </return-value>
3451       </method>
3452       <method name="is_wrapped"
3453               c:identifier="pango_layout_is_wrapped"
3454               version="1.16">
3455         <doc xml:whitespace="preserve">Queries whether the layout had to wrap any paragraphs.
3456 This returns %TRUE if a positive width is set on @layout,
3457 ellipsization mode of @layout is set to %PANGO_ELLIPSIZE_NONE,
3458 and there are paragraphs exceeding the layout width that have
3459 to be wrapped.
3460 otherwise.</doc>
3461         <return-value transfer-ownership="none">
3462           <doc xml:whitespace="preserve">%TRUE if any paragraphs had to be wrapped, %FALSE</doc>
3463           <type name="gboolean" c:type="gboolean"/>
3464         </return-value>
3465       </method>
3466       <method name="move_cursor_visually"
3467               c:identifier="pango_layout_move_cursor_visually">
3468         <doc xml:whitespace="preserve">Computes a new cursor position from an old position and
3469 a count of positions to move visually. If @direction is positive,
3470 then the new strong cursor position will be one position
3471 to the right of the old cursor position. If @direction is negative,
3472 then the new strong cursor position will be one position
3473 to the left of the old cursor position.
3474 In the presence of bidirectional text, the correspondence
3475 between logical and visual order will depend on the direction
3476 of the current run, and there may be jumps when the cursor
3477 is moved off of the end of a run.
3478 Motion here is in cursor positions, not in characters, so a
3479 single call to pango_layout_move_cursor_visually() may move the
3480 cursor over multiple characters when multiple characters combine
3481 to form a single grapheme.</doc>
3482         <return-value transfer-ownership="none">
3483           <type name="none" c:type="void"/>
3484         </return-value>
3485         <parameters>
3486           <parameter name="strong" transfer-ownership="none">
3487             <doc xml:whitespace="preserve">whether the moving cursor is the strong cursor or the weak cursor. The strong cursor is the cursor corresponding to text insertion in the base direction for the layout.</doc>
3488             <type name="gboolean" c:type="gboolean"/>
3489           </parameter>
3490           <parameter name="old_index" transfer-ownership="none">
3491             <doc xml:whitespace="preserve">the byte index of the grapheme for the old index</doc>
3492             <type name="gint" c:type="int"/>
3493           </parameter>
3494           <parameter name="old_trailing" transfer-ownership="none">
3495             <doc xml:whitespace="preserve">if 0, the cursor was at the trailing edge of the grapheme indicated by @old_index, if &gt; 0, the cursor was at the leading edge.</doc>
3496             <type name="gint" c:type="int"/>
3497           </parameter>
3498           <parameter name="direction" transfer-ownership="none">
3499             <doc xml:whitespace="preserve">direction to move cursor. A negative value indicates motion to the left.</doc>
3500             <type name="gint" c:type="int"/>
3501           </parameter>
3502           <parameter name="new_index" transfer-ownership="none">
3503             <doc xml:whitespace="preserve">location to store the new cursor byte index. A value of -1 indicates that the cursor has been moved off the beginning of the layout. A value of %G_MAXINT indicates that the cursor has been moved off the end of the layout.</doc>
3504             <type name="gint" c:type="int*"/>
3505           </parameter>
3506           <parameter name="new_trailing" transfer-ownership="none">
3507             <doc xml:whitespace="preserve">number of characters to move forward from the location returned for @new_index to get the position where the cursor should be displayed. This allows distinguishing the position at the beginning of one line from the position at the end of the preceding line. @new_index is always on the line where the cursor should be displayed.</doc>
3508             <type name="gint" c:type="int*"/>
3509           </parameter>
3510         </parameters>
3511       </method>
3512       <method name="set_alignment" c:identifier="pango_layout_set_alignment">
3513         <doc xml:whitespace="preserve">positioned within the horizontal space available.</doc>
3514         <return-value transfer-ownership="none">
3515           <type name="none" c:type="void"/>
3516         </return-value>
3517         <parameters>
3518           <parameter name="alignment" transfer-ownership="none">
3519             <doc xml:whitespace="preserve">the alignment</doc>
3520             <type name="Alignment" c:type="PangoAlignment"/>
3521           </parameter>
3522         </parameters>
3523       </method>
3524       <method name="set_attributes" c:identifier="pango_layout_set_attributes">
3525         <doc xml:whitespace="preserve">Sets the text attributes for a layout object.
3526 References @attrs, so the caller can unref its reference.</doc>
3527         <return-value transfer-ownership="none">
3528           <type name="none" c:type="void"/>
3529         </return-value>
3530         <parameters>
3531           <parameter name="attrs" transfer-ownership="none">
3532             <doc xml:whitespace="preserve">a #PangoAttrList, can be %NULL</doc>
3533             <type name="AttrList" c:type="PangoAttrList*"/>
3534           </parameter>
3535         </parameters>
3536       </method>
3537       <method name="set_auto_dir"
3538               c:identifier="pango_layout_set_auto_dir"
3539               version="1.4">
3540         <doc xml:whitespace="preserve">Sets whether to calculate the bidirectional base direction
3541 for the layout according to the contents of the layout;
3542 when this flag is on (the default), then paragraphs in
3543 (Arabic and Hebrew principally), will have right-to-left
3544 layout, paragraphs with letters from other scripts will
3545 have left-to-right layout. Paragraphs with only neutral
3546 characters get their direction from the surrounding paragraphs.
3547 When %FALSE, the choice between left-to-right and
3548 right-to-left layout is done according to the base direction
3549 of the layout's #PangoContext. (See pango_context_set_base_dir()).
3550 When the auto-computed direction of a paragraph differs from the
3551 base direction of the context, the interpretation of
3552 %PANGO_ALIGN_LEFT and %PANGO_ALIGN_RIGHT are swapped.</doc>
3553         <return-value transfer-ownership="none">
3554           <type name="none" c:type="void"/>
3555         </return-value>
3556         <parameters>
3557           <parameter name="auto_dir" transfer-ownership="none">
3558             <doc xml:whitespace="preserve">if %TRUE, compute the bidirectional base direction from the layout's contents.</doc>
3559             <type name="gboolean" c:type="gboolean"/>
3560           </parameter>
3561         </parameters>
3562       </method>
3563       <method name="set_ellipsize"
3564               c:identifier="pango_layout_set_ellipsize"
3565               version="1.6">
3566         <doc xml:whitespace="preserve">Sets the type of ellipsization being performed for @layout.
3567 Depending on the ellipsization mode @ellipsize text is
3568 removed from the start, middle, or end of text so they
3569 fit within the width and height of layout set with
3570 pango_layout_set_width() and pango_layout_set_height().
3571 If the layout contains characters such as newlines that
3572 force it to be layed out in multiple paragraphs, then whether
3573 each paragraph is ellipsized separately or the entire layout
3574 is ellipsized as a whole depends on the set height of the layout.
3575 See pango_layout_set_height() for details.</doc>
3576         <return-value transfer-ownership="none">
3577           <type name="none" c:type="void"/>
3578         </return-value>
3579         <parameters>
3580           <parameter name="ellipsize" transfer-ownership="none">
3581             <doc xml:whitespace="preserve">the new ellipsization mode for @layout</doc>
3582             <type name="EllipsizeMode" c:type="PangoEllipsizeMode"/>
3583           </parameter>
3584         </parameters>
3585       </method>
3586       <method name="set_font_description"
3587               c:identifier="pango_layout_set_font_description">
3588         <doc xml:whitespace="preserve">Sets the default font description for the layout. If no font
3589 description is set on the layout, the font description from
3590 the layout's context is used.</doc>
3591         <return-value transfer-ownership="none">
3592           <type name="none" c:type="void"/>
3593         </return-value>
3594         <parameters>
3595           <parameter name="desc" transfer-ownership="none">
3596             <doc xml:whitespace="preserve">the new #PangoFontDescription, or %NULL to unset the current font description</doc>
3597             <type name="FontDescription" c:type="PangoFontDescription*"/>
3598           </parameter>
3599         </parameters>
3600       </method>
3601       <method name="set_height"
3602               c:identifier="pango_layout_set_height"
3603               version="1.20">
3604         <doc xml:whitespace="preserve">Sets the height to which the #PangoLayout should be ellipsized at.  There
3605 are two different behaviors, based on whether @height is positive or
3606 negative.
3607 If @height is positive, it will be the maximum height of the layout.  Only
3608 lines would be shown that would fit, and if there is any text omitted,
3609 an ellipsis added.  At least one line is included in each paragraph regardless
3610 of how small the height value is.  A value of zero will render exactly one
3611 line for the entire layout.
3612 If @height is negative, it will be the (negative of) maximum number of lines per
3613 paragraph.  That is, the total number of lines shown may well be more than
3614 this value if the layout contains multiple paragraphs of text.
3615 The default value of -1 means that first line of each paragraph is ellipsized.
3616 This behvaior may be changed in the future to act per layout instead of per
3617 paragraph.  File a bug against pango at &lt;ulink
3618 url="http://bugzilla.gnome.org/"&gt;http://bugzilla.gnome.org/&lt;/ulink&gt; if your
3619 code relies on this behavior.
3620 Height setting only has effect if a positive width is set on
3621 The behavior is undefined if a height other than -1 is set and
3622 ellipsization mode is set to %PANGO_ELLIPSIZE_NONE, and may change in the
3623 future.</doc>
3624         <return-value transfer-ownership="none">
3625           <type name="none" c:type="void"/>
3626         </return-value>
3627         <parameters>
3628           <parameter name="height" transfer-ownership="none">
3629             <doc xml:whitespace="preserve">the desired height of the layout in Pango units if positive, or desired number of lines if negative.</doc>
3630             <type name="gint" c:type="int"/>
3631           </parameter>
3632         </parameters>
3633       </method>
3634       <method name="set_indent" c:identifier="pango_layout_set_indent">
3635         <return-value transfer-ownership="none">
3636           <type name="none" c:type="void"/>
3637         </return-value>
3638         <parameters>
3639           <parameter name="indent" transfer-ownership="none">
3640             <type name="gint" c:type="int"/>
3641           </parameter>
3642         </parameters>
3643       </method>
3644       <method name="set_justify" c:identifier="pango_layout_set_justify">
3645         <doc xml:whitespace="preserve">Sets whether each complete line should be stretched to
3646 fill the entire width of the layout. This stretching is typically
3647 done by adding whitespace, but for some scripts (such as Arabic),
3648 the justification may be done in more complex ways, like extending
3649 the characters.
3650 Note that this setting is not implemented and so is ignored in Pango
3651 older than 1.18.</doc>
3652         <return-value transfer-ownership="none">
3653           <type name="none" c:type="void"/>
3654         </return-value>
3655         <parameters>
3656           <parameter name="justify" transfer-ownership="none">
3657             <doc xml:whitespace="preserve">whether the lines in the layout should be justified.</doc>
3658             <type name="gboolean" c:type="gboolean"/>
3659           </parameter>
3660         </parameters>
3661       </method>
3662       <method name="set_markup" c:identifier="pango_layout_set_markup">
3663         <doc xml:whitespace="preserve">Same as pango_layout_set_markup_with_accel(), but
3664 the markup text isn't scanned for accelerators.</doc>
3665         <return-value transfer-ownership="none">
3666           <type name="none" c:type="void"/>
3667         </return-value>
3668         <parameters>
3669           <parameter name="markup" transfer-ownership="none">
3670             <doc xml:whitespace="preserve">marked-up text</doc>
3671             <type name="utf8" c:type="char*"/>
3672           </parameter>
3673           <parameter name="length" transfer-ownership="none">
3674             <doc xml:whitespace="preserve">length of marked-up text in bytes, or -1 if @markup is nul-terminated</doc>
3675             <type name="gint" c:type="int"/>
3676           </parameter>
3677         </parameters>
3678       </method>
3679       <method name="set_markup_with_accel"
3680               c:identifier="pango_layout_set_markup_with_accel"
3681               introspectable="0">
3682         <doc xml:whitespace="preserve">Sets the layout text and attribute list from marked-up text (see
3683 &lt;link linkend="PangoMarkupFormat"&gt;markup format&lt;/link&gt;). Replaces
3684 the current text and attribute list.
3685 If @accel_marker is nonzero, the given character will mark the
3686 character following it as an accelerator. For example, @accel_marker
3687 might be an ampersand or underscore. All characters marked
3688 as an accelerator will receive a %PANGO_UNDERLINE_LOW attribute,
3689 and the first character so marked will be returned in @accel_char.
3690 Two @accel_marker characters following each other produce a single
3691 literal @accel_marker character.</doc>
3692         <return-value transfer-ownership="none">
3693           <type name="none" c:type="void"/>
3694         </return-value>
3695         <parameters>
3696           <parameter name="markup" transfer-ownership="none">
3697             <doc xml:whitespace="preserve">marked-up text (see &lt;link linkend="PangoMarkupFormat"&gt;markup format&lt;/link&gt;)</doc>
3698             <type name="utf8" c:type="char*"/>
3699           </parameter>
3700           <parameter name="length" transfer-ownership="none">
3701             <doc xml:whitespace="preserve">length of marked-up text in bytes, or -1 if @markup is nul-terminated</doc>
3702             <type name="gint" c:type="int"/>
3703           </parameter>
3704           <parameter name="accel_marker" transfer-ownership="none">
3705             <doc xml:whitespace="preserve">marker for accelerators in the text</doc>
3706             <type name="gunichar" c:type="gunichar"/>
3707           </parameter>
3708           <parameter name="accel_char" transfer-ownership="none">
3709             <doc xml:whitespace="preserve">return location for first located accelerator, or %NULL</doc>
3710             <type name="gunichar" c:type="gunichar*"/>
3711           </parameter>
3712         </parameters>
3713       </method>
3714       <method name="set_single_paragraph_mode"
3715               c:identifier="pango_layout_set_single_paragraph_mode">
3716         <doc xml:whitespace="preserve">If @setting is %TRUE, do not treat newlines and similar characters
3717 as paragraph separators; instead, keep all text in a single paragraph,
3718 and display a glyph for paragraph separator characters. Used when
3719 you want to allow editing of newlines on a single text line.</doc>
3720         <return-value transfer-ownership="none">
3721           <type name="none" c:type="void"/>
3722         </return-value>
3723         <parameters>
3724           <parameter name="setting" transfer-ownership="none">
3725             <doc xml:whitespace="preserve">new setting</doc>
3726             <type name="gboolean" c:type="gboolean"/>
3727           </parameter>
3728         </parameters>
3729       </method>
3730       <method name="set_spacing" c:identifier="pango_layout_set_spacing">
3731         <doc xml:whitespace="preserve">Sets the amount of spacing in Pango unit between the lines of the
3732 layout.</doc>
3733         <return-value transfer-ownership="none">
3734           <type name="none" c:type="void"/>
3735         </return-value>
3736         <parameters>
3737           <parameter name="spacing" transfer-ownership="none">
3738             <doc xml:whitespace="preserve">the amount of spacing</doc>
3739             <type name="gint" c:type="int"/>
3740           </parameter>
3741         </parameters>
3742       </method>
3743       <method name="set_tabs" c:identifier="pango_layout_set_tabs">
3744         <doc xml:whitespace="preserve">Sets the tabs to use for @layout, overriding the default tabs
3745 (by default, tabs are every 8 spaces). If @tabs is %NULL, the default
3746 tabs are reinstated. @tabs is copied into the layout; you must
3747 free your copy of @tabs yourself.</doc>
3748         <return-value transfer-ownership="none">
3749           <type name="none" c:type="void"/>
3750         </return-value>
3751         <parameters>
3752           <parameter name="tabs" transfer-ownership="none">
3753             <doc xml:whitespace="preserve">a #PangoTabArray, or %NULL</doc>
3754             <type name="TabArray" c:type="PangoTabArray*"/>
3755           </parameter>
3756         </parameters>
3757       </method>
3758       <method name="set_text" c:identifier="pango_layout_set_text">
3759         <doc xml:whitespace="preserve">Sets the text of the layout.
3760 Note that if you have used
3761 pango_layout_set_markup() or pango_layout_set_markup_with_accel() on
3762 the attributes set on the layout from the markup as this function does not
3763 clear attributes.</doc>
3764         <return-value transfer-ownership="none">
3765           <type name="none" c:type="void"/>
3766         </return-value>
3767         <parameters>
3768           <parameter name="text" transfer-ownership="none">
3769             <doc xml:whitespace="preserve">a valid UTF-8 string</doc>
3770             <type name="utf8" c:type="char*"/>
3771           </parameter>
3772           <parameter name="length" transfer-ownership="none">
3773             <doc xml:whitespace="preserve">maximum length of @text, in bytes. -1 indicates that the string is nul-terminated and the length should be calculated.  The text will also be truncated on encountering a nul-termination even when @length is positive.</doc>
3774             <type name="gint" c:type="int"/>
3775           </parameter>
3776         </parameters>
3777       </method>
3778       <method name="set_width" c:identifier="pango_layout_set_width">
3779         <doc xml:whitespace="preserve">Sets the width to which the lines of the #PangoLayout should wrap or</doc>
3780         <return-value transfer-ownership="none">
3781           <type name="none" c:type="void"/>
3782         </return-value>
3783         <parameters>
3784           <parameter name="width" transfer-ownership="none">
3785             <doc xml:whitespace="preserve">the desired width in Pango units, or -1 to indicate that no wrapping or ellipsization should be performed.</doc>
3786             <type name="gint" c:type="int"/>
3787           </parameter>
3788         </parameters>
3789       </method>
3790       <method name="set_wrap" c:identifier="pango_layout_set_wrap">
3791         <doc xml:whitespace="preserve">Sets the wrap mode; the wrap mode only has effect if a width
3792 is set on the layout with pango_layout_set_width().
3793 To turn off wrapping, set the width to -1.</doc>
3794         <return-value transfer-ownership="none">
3795           <type name="none" c:type="void"/>
3796         </return-value>
3797         <parameters>
3798           <parameter name="wrap" transfer-ownership="none">
3799             <doc xml:whitespace="preserve">the wrap mode</doc>
3800             <type name="WrapMode" c:type="PangoWrapMode"/>
3801           </parameter>
3802         </parameters>
3803       </method>
3804       <method name="xy_to_index" c:identifier="pango_layout_xy_to_index">
3805         <doc xml:whitespace="preserve">Converts from X and Y position within a layout to the byte
3806 index to the character at that logical position. If the
3807 Y position is not inside the layout, the closest position is chosen
3808 (the position will be clamped inside the layout). If the
3809 X position is not within the layout, then the start or the
3810 end of the line is chosen as  described for pango_layout_x_to_index().
3811 If either the X or Y positions were not inside the layout, then the
3812 function returns %FALSE; on an exact hit, it returns %TRUE.</doc>
3813         <return-value transfer-ownership="none">
3814           <doc xml:whitespace="preserve">%TRUE if the coordinates were inside text, %FALSE otherwise.</doc>
3815           <type name="gboolean" c:type="gboolean"/>
3816         </return-value>
3817         <parameters>
3818           <parameter name="x" transfer-ownership="none">
3819             <doc xml:whitespace="preserve">the X offset (in Pango units) from the left edge of the layout.</doc>
3820             <type name="gint" c:type="int"/>
3821           </parameter>
3822           <parameter name="y" transfer-ownership="none">
3823             <doc xml:whitespace="preserve">the Y offset (in Pango units) from the top edge of the layout</doc>
3824             <type name="gint" c:type="int"/>
3825           </parameter>
3826           <parameter name="index_" transfer-ownership="none">
3827             <doc xml:whitespace="preserve">location to store calculated byte index</doc>
3828             <type name="gint" c:type="int*"/>
3829           </parameter>
3830           <parameter name="trailing" transfer-ownership="none">
3831             <doc xml:whitespace="preserve">location to store a integer indicating where in the grapheme the user clicked. It will either be zero, or the number of characters in the grapheme. 0 represents the trailing edge of the grapheme.</doc>
3832             <type name="gint" c:type="int*"/>
3833           </parameter>
3834         </parameters>
3835       </method>
3836     </class>
3837     <record name="LayoutClass"
3838             c:type="PangoLayoutClass"
3839             disguised="1"
3840             glib:is-gtype-struct-for="Layout">
3841     </record>
3842     <record name="LayoutIter"
3843             c:type="PangoLayoutIter"
3844             glib:type-name="PangoLayoutIter"
3845             glib:get-type="pango_layout_iter_get_type"
3846             c:symbol-prefix="layout_iter">
3847       <method name="at_last_line"
3848               c:identifier="pango_layout_iter_at_last_line">
3849         <doc xml:whitespace="preserve">Determines whether @iter is on the last line of the layout.</doc>
3850         <return-value transfer-ownership="none">
3851           <doc xml:whitespace="preserve">%TRUE if @iter is on the last line.</doc>
3852           <type name="gboolean" c:type="gboolean"/>
3853         </return-value>
3854       </method>
3855       <method name="copy" c:identifier="pango_layout_iter_copy" version="1.20">
3856         <doc xml:whitespace="preserve">Copies a #PangLayoutIter.
3857 be freed with pango_layout_iter_free(), or %NULL if</doc>
3858         <return-value transfer-ownership="full">
3859           <doc xml:whitespace="preserve">the newly allocated #PangoLayoutIter, which should</doc>
3860           <type name="LayoutIter" c:type="PangoLayoutIter*"/>
3861         </return-value>
3862       </method>
3863       <method name="free" c:identifier="pango_layout_iter_free">
3864         <doc xml:whitespace="preserve">Frees an iterator that's no longer in use.</doc>
3865         <return-value transfer-ownership="none">
3866           <type name="none" c:type="void"/>
3867         </return-value>
3868       </method>
3869       <method name="get_baseline"
3870               c:identifier="pango_layout_iter_get_baseline">
3871         <doc xml:whitespace="preserve">Gets the Y position of the current line's baseline, in layout
3872 coordinates (origin at top left of the entire layout).</doc>
3873         <return-value transfer-ownership="none">
3874           <doc xml:whitespace="preserve">baseline of current line.</doc>
3875           <type name="gint" c:type="int"/>
3876         </return-value>
3877       </method>
3878       <method name="get_char_extents"
3879               c:identifier="pango_layout_iter_get_char_extents">
3880         <doc xml:whitespace="preserve">Gets the extents of the current character, in layout coordinates
3881 (origin is the top left of the entire layout). Only logical extents
3882 can sensibly be obtained for characters; ink extents make sense only
3883 down to the level of clusters.</doc>
3884         <return-value transfer-ownership="none">
3885           <type name="none" c:type="void"/>
3886         </return-value>
3887         <parameters>
3888           <parameter name="logical_rect" transfer-ownership="none">
3889             <doc xml:whitespace="preserve">rectangle to fill with logical extents</doc>
3890             <type name="Rectangle" c:type="PangoRectangle*"/>
3891           </parameter>
3892         </parameters>
3893       </method>
3894       <method name="get_cluster_extents"
3895               c:identifier="pango_layout_iter_get_cluster_extents">
3896         <doc xml:whitespace="preserve">Gets the extents of the current cluster, in layout coordinates
3897 (origin is the top left of the entire layout).</doc>
3898         <return-value transfer-ownership="none">
3899           <type name="none" c:type="void"/>
3900         </return-value>
3901         <parameters>
3902           <parameter name="ink_rect" transfer-ownership="none">
3903             <doc xml:whitespace="preserve">rectangle to fill with ink extents, or %NULL</doc>
3904             <type name="Rectangle" c:type="PangoRectangle*"/>
3905           </parameter>
3906           <parameter name="logical_rect" transfer-ownership="none">
3907             <doc xml:whitespace="preserve">rectangle to fill with logical extents, or %NULL</doc>
3908             <type name="Rectangle" c:type="PangoRectangle*"/>
3909           </parameter>
3910         </parameters>
3911       </method>
3912       <method name="get_index" c:identifier="pango_layout_iter_get_index">
3913         <doc xml:whitespace="preserve">Gets the current byte index. Note that iterating forward by char
3914 moves in visual order, not logical order, so indexes may not be
3915 sequential. Also, the index may be equal to the length of the text
3916 in the layout, if on the %NULL run (see pango_layout_iter_get_run()).</doc>
3917         <return-value transfer-ownership="none">
3918           <doc xml:whitespace="preserve">current byte index.</doc>
3919           <type name="gint" c:type="int"/>
3920         </return-value>
3921       </method>
3922       <method name="get_layout"
3923               c:identifier="pango_layout_iter_get_layout"
3924               version="1.20"
3925               introspectable="0">
3926         <doc xml:whitespace="preserve">Gets the layout associated with a #PangoLayoutIter.</doc>
3927         <return-value>
3928           <doc xml:whitespace="preserve">the layout associated with @iter.</doc>
3929           <type name="Layout" c:type="PangoLayout*"/>
3930         </return-value>
3931       </method>
3932       <method name="get_layout_extents"
3933               c:identifier="pango_layout_iter_get_layout_extents">
3934         <doc xml:whitespace="preserve">Obtains the extents of the #PangoLayout being iterated
3935 over. @ink_rect or @logical_rect can be %NULL if you
3936 aren't interested in them.</doc>
3937         <return-value transfer-ownership="none">
3938           <type name="none" c:type="void"/>
3939         </return-value>
3940         <parameters>
3941           <parameter name="ink_rect" transfer-ownership="none">
3942             <doc xml:whitespace="preserve">rectangle to fill with ink extents, or %NULL</doc>
3943             <type name="Rectangle" c:type="PangoRectangle*"/>
3944           </parameter>
3945           <parameter name="logical_rect" transfer-ownership="none">
3946             <doc xml:whitespace="preserve">rectangle to fill with logical extents, or %NULL</doc>
3947             <type name="Rectangle" c:type="PangoRectangle*"/>
3948           </parameter>
3949         </parameters>
3950       </method>
3951       <method name="get_line" c:identifier="pango_layout_iter_get_line">
3952         <doc xml:whitespace="preserve">Gets the current line.
3953 Use the faster pango_layout_iter_get_line_readonly() if you do not plan
3954 to modify the contents of the line (glyphs, glyph widths, etc.).</doc>
3955         <return-value transfer-ownership="full">
3956           <doc xml:whitespace="preserve">the current line.</doc>
3957           <type name="LayoutLine" c:type="PangoLayoutLine*"/>
3958         </return-value>
3959       </method>
3960       <method name="get_line_extents"
3961               c:identifier="pango_layout_iter_get_line_extents">
3962         <doc xml:whitespace="preserve">Obtains the extents of the current line. @ink_rect or @logical_rect
3963 can be %NULL if you aren't interested in them. Extents are in layout
3964 coordinates (origin is the top-left corner of the entire
3965 #PangoLayout).  Thus the extents returned by this function will be
3966 the same width/height but not at the same x/y as the extents
3967 returned from pango_layout_line_get_extents().</doc>
3968         <return-value transfer-ownership="none">
3969           <type name="none" c:type="void"/>
3970         </return-value>
3971         <parameters>
3972           <parameter name="ink_rect" transfer-ownership="none">
3973             <doc xml:whitespace="preserve">rectangle to fill with ink extents, or %NULL</doc>
3974             <type name="Rectangle" c:type="PangoRectangle*"/>
3975           </parameter>
3976           <parameter name="logical_rect" transfer-ownership="none">
3977             <doc xml:whitespace="preserve">rectangle to fill with logical extents, or %NULL</doc>
3978             <type name="Rectangle" c:type="PangoRectangle*"/>
3979           </parameter>
3980         </parameters>
3981       </method>
3982       <method name="get_line_readonly"
3983               c:identifier="pango_layout_iter_get_line_readonly"
3984               version="1.16">
3985         <doc xml:whitespace="preserve">Gets the current line for read-only access.
3986 This is a faster alternative to pango_layout_iter_get_line(),
3987 but the user is not expected
3988 to modify the contents of the line (glyphs, glyph widths, etc.).</doc>
3989         <return-value transfer-ownership="full">
3990           <doc xml:whitespace="preserve">the current line, that should not be modified.</doc>
3991           <type name="LayoutLine" c:type="PangoLayoutLine*"/>
3992         </return-value>
3993       </method>
3994       <method name="get_line_yrange"
3995               c:identifier="pango_layout_iter_get_line_yrange">
3996         <doc xml:whitespace="preserve">Divides the vertical space in the #PangoLayout being iterated over
3997 between the lines in the layout, and returns the space belonging to
3998 the current line.  A line's range includes the line's logical
3999 extents, plus half of the spacing above and below the line, if
4000 pango_layout_set_spacing() has been called to set layout spacing.
4001 The Y positions are in layout coordinates (origin at top left of the
4002 entire layout).</doc>
4003         <return-value transfer-ownership="none">
4004           <type name="none" c:type="void"/>
4005         </return-value>
4006         <parameters>
4007           <parameter name="y0_" transfer-ownership="none">
4008             <doc xml:whitespace="preserve">start of line</doc>
4009             <type name="gint" c:type="int*"/>
4010           </parameter>
4011           <parameter name="y1_" transfer-ownership="none">
4012             <doc xml:whitespace="preserve">end of line</doc>
4013             <type name="gint" c:type="int*"/>
4014           </parameter>
4015         </parameters>
4016       </method>
4017       <method name="get_run"
4018               c:identifier="pango_layout_iter_get_run"
4019               introspectable="0">
4020         <doc xml:whitespace="preserve">Gets the current run. When iterating by run, at the end of each
4021 line, there's a position with a %NULL run, so this function can return
4022 %NULL. The %NULL run at the end of each line ensures that all lines have
4023 at least one run, even lines consisting of only a newline.
4024 Use the faster pango_layout_iter_get_run_readonly() if you do not plan
4025 to modify the contents of the run (glyphs, glyph widths, etc.).</doc>
4026         <return-value>
4027           <doc xml:whitespace="preserve">the current run.</doc>
4028           <type name="LayoutRun" c:type="PangoLayoutRun*"/>
4029         </return-value>
4030       </method>
4031       <method name="get_run_extents"
4032               c:identifier="pango_layout_iter_get_run_extents">
4033         <doc xml:whitespace="preserve">Gets the extents of the current run in layout coordinates
4034 (origin is the top left of the entire layout).</doc>
4035         <return-value transfer-ownership="none">
4036           <type name="none" c:type="void"/>
4037         </return-value>
4038         <parameters>
4039           <parameter name="ink_rect" transfer-ownership="none">
4040             <doc xml:whitespace="preserve">rectangle to fill with ink extents, or %NULL</doc>
4041             <type name="Rectangle" c:type="PangoRectangle*"/>
4042           </parameter>
4043           <parameter name="logical_rect" transfer-ownership="none">
4044             <doc xml:whitespace="preserve">rectangle to fill with logical extents, or %NULL</doc>
4045             <type name="Rectangle" c:type="PangoRectangle*"/>
4046           </parameter>
4047         </parameters>
4048       </method>
4049       <method name="get_run_readonly"
4050               c:identifier="pango_layout_iter_get_run_readonly"
4051               version="1.16"
4052               introspectable="0">
4053         <doc xml:whitespace="preserve">Gets the current run. When iterating by run, at the end of each
4054 line, there's a position with a %NULL run, so this function can return
4055 %NULL. The %NULL run at the end of each line ensures that all lines have
4056 at least one run, even lines consisting of only a newline.
4057 This is a faster alternative to pango_layout_iter_get_run(),
4058 but the user is not expected
4059 to modify the contents of the run (glyphs, glyph widths, etc.).</doc>
4060         <return-value>
4061           <doc xml:whitespace="preserve">the current run, that should not be modified.</doc>
4062           <type name="LayoutRun" c:type="PangoLayoutRun*"/>
4063         </return-value>
4064       </method>
4065       <method name="next_char" c:identifier="pango_layout_iter_next_char">
4066         <doc xml:whitespace="preserve">Moves @iter forward to the next character in visual order. If @iter was already at
4067 the end of the layout, returns %FALSE.</doc>
4068         <return-value transfer-ownership="none">
4069           <doc xml:whitespace="preserve">whether motion was possible.</doc>
4070           <type name="gboolean" c:type="gboolean"/>
4071         </return-value>
4072       </method>
4073       <method name="next_cluster"
4074               c:identifier="pango_layout_iter_next_cluster">
4075         <doc xml:whitespace="preserve">Moves @iter forward to the next cluster in visual order. If @iter
4076 was already at the end of the layout, returns %FALSE.</doc>
4077         <return-value transfer-ownership="none">
4078           <doc xml:whitespace="preserve">whether motion was possible.</doc>
4079           <type name="gboolean" c:type="gboolean"/>
4080         </return-value>
4081       </method>
4082       <method name="next_line" c:identifier="pango_layout_iter_next_line">
4083         <doc xml:whitespace="preserve">Moves @iter forward to the start of the next line. If @iter is
4084 already on the last line, returns %FALSE.</doc>
4085         <return-value transfer-ownership="none">
4086           <doc xml:whitespace="preserve">whether motion was possible.</doc>
4087           <type name="gboolean" c:type="gboolean"/>
4088         </return-value>
4089       </method>
4090       <method name="next_run" c:identifier="pango_layout_iter_next_run">
4091         <doc xml:whitespace="preserve">Moves @iter forward to the next run in visual order. If @iter was
4092 already at the end of the layout, returns %FALSE.</doc>
4093         <return-value transfer-ownership="none">
4094           <doc xml:whitespace="preserve">whether motion was possible.</doc>
4095           <type name="gboolean" c:type="gboolean"/>
4096         </return-value>
4097       </method>
4098     </record>
4099     <record name="LayoutLine"
4100             c:type="PangoLayoutLine"
4101             glib:type-name="PangoLayoutLine"
4102             glib:get-type="pango_layout_line_get_type"
4103             c:symbol-prefix="layout_line">
4104       <field name="layout" writable="1">
4105         <type name="Layout" c:type="PangoLayout*"/>
4106       </field>
4107       <field name="start_index" writable="1">
4108         <type name="gint" c:type="gint"/>
4109       </field>
4110       <field name="length" writable="1">
4111         <type name="gint" c:type="gint"/>
4112       </field>
4113       <field name="runs" writable="1">
4114         <type name="GLib.SList" c:type="GSList*">
4115           <type name="gpointer" c:type="gpointer"/>
4116         </type>
4117       </field>
4118       <field name="is_paragraph_start" writable="1" bits="1">
4119         <type name="guint" c:type="guint"/>
4120       </field>
4121       <field name="resolved_dir" writable="1" bits="3">
4122         <type name="guint" c:type="guint"/>
4123       </field>
4124       <method name="get_extents" c:identifier="pango_layout_line_get_extents">
4125         <doc xml:whitespace="preserve">Computes the logical and ink extents of a layout line. See
4126 pango_font_get_glyph_extents() for details about the interpretation
4127 of the rectangles.</doc>
4128         <return-value transfer-ownership="none">
4129           <type name="none" c:type="void"/>
4130         </return-value>
4131         <parameters>
4132           <parameter name="ink_rect" transfer-ownership="none">
4133             <doc xml:whitespace="preserve">rectangle used to store the extents of the glyph string as drawn, or %NULL</doc>
4134             <type name="Rectangle" c:type="PangoRectangle*"/>
4135           </parameter>
4136           <parameter name="logical_rect" transfer-ownership="none">
4137             <doc xml:whitespace="preserve">rectangle used to store the logical extents of the glyph string, or %NULL</doc>
4138             <type name="Rectangle" c:type="PangoRectangle*"/>
4139           </parameter>
4140         </parameters>
4141       </method>
4142       <method name="get_pixel_extents"
4143               c:identifier="pango_layout_line_get_pixel_extents">
4144         <doc xml:whitespace="preserve">Computes the logical and ink extents of @layout_line in device units.
4145 This function just calls pango_layout_line_get_extents() followed by
4146 two pango_extents_to_pixels() calls, rounding @ink_rect and @logical_rect
4147 such that the rounded rectangles fully contain the unrounded one (that is,
4148 passes them as first argument to pango_extents_to_pixels()).</doc>
4149         <return-value transfer-ownership="none">
4150           <type name="none" c:type="void"/>
4151         </return-value>
4152         <parameters>
4153           <parameter name="ink_rect" transfer-ownership="none">
4154             <doc xml:whitespace="preserve">rectangle used to store the extents of the glyph string as drawn, or %NULL</doc>
4155             <type name="Rectangle" c:type="PangoRectangle*"/>
4156           </parameter>
4157           <parameter name="logical_rect" transfer-ownership="none">
4158             <doc xml:whitespace="preserve">rectangle used to store the logical extents of the glyph string, or %NULL</doc>
4159             <type name="Rectangle" c:type="PangoRectangle*"/>
4160           </parameter>
4161         </parameters>
4162       </method>
4163       <method name="get_x_ranges"
4164               c:identifier="pango_layout_line_get_x_ranges">
4165         <doc xml:whitespace="preserve">Gets a list of visual ranges corresponding to a given logical range.
4166 This list is not necessarily minimal - there may be consecutive
4167 ranges which are adjacent. The ranges will be sorted from left to
4168 right. The ranges are with respect to the left edge of the entire
4169 layout, not with respect to the line.</doc>
4170         <return-value transfer-ownership="none">
4171           <type name="none" c:type="void"/>
4172         </return-value>
4173         <parameters>
4174           <parameter name="start_index" transfer-ownership="none">
4175             <doc xml:whitespace="preserve">Start byte index of the logical range. If this value is less than the start index for the line, then the first range will extend all the way to the leading edge of the layout. Otherwise it will start at the leading edge of the first character.</doc>
4176             <type name="gint" c:type="int"/>
4177           </parameter>
4178           <parameter name="end_index" transfer-ownership="none">
4179             <doc xml:whitespace="preserve">Ending byte index of the logical range. If this value is greater than the end index for the line, then the last range will extend all the way to the trailing edge of the layout. Otherwise, it will end at the trailing edge of the last character.</doc>
4180             <type name="gint" c:type="int"/>
4181           </parameter>
4182           <parameter name="ranges"
4183                      direction="out"
4184                      caller-allocates="0"
4185                      transfer-ownership="full">
4186             <doc xml:whitespace="preserve">location to store a pointer to an array of ranges. The array will be of length &lt;literal&gt;2*n_ranges&lt;/literal&gt;, with each range starting at &lt;literal&gt;(*ranges)[2*n]&lt;/literal&gt; and of width &lt;literal&gt;(*ranges)[2*n + 1] - (*ranges)[2*n]&lt;/literal&gt;. This array must be freed with g_free(). The coordinates are relative to the layout and are in Pango units.</doc>
4187             <array length="3" c:type="int**">
4188               <type name="gint"/>
4189             </array>
4190           </parameter>
4191           <parameter name="n_ranges"
4192                      direction="out"
4193                      caller-allocates="0"
4194                      transfer-ownership="full">
4195             <doc xml:whitespace="preserve">The number of ranges stored in @ranges.</doc>
4196             <type name="gint" c:type="int*"/>
4197           </parameter>
4198         </parameters>
4199       </method>
4200       <method name="index_to_x" c:identifier="pango_layout_line_index_to_x">
4201         <doc xml:whitespace="preserve">Converts an index within a line to a X position.</doc>
4202         <return-value transfer-ownership="none">
4203           <type name="none" c:type="void"/>
4204         </return-value>
4205         <parameters>
4206           <parameter name="index_" transfer-ownership="none">
4207             <doc xml:whitespace="preserve">byte offset of a grapheme within the layout</doc>
4208             <type name="gint" c:type="int"/>
4209           </parameter>
4210           <parameter name="trailing" transfer-ownership="none">
4211             <doc xml:whitespace="preserve">an integer indicating the edge of the grapheme to retrieve the position of. If &gt; 0, the trailing edge of the grapheme, if 0, the leading of the grapheme.</doc>
4212             <type name="gboolean" c:type="gboolean"/>
4213           </parameter>
4214           <parameter name="x_pos" transfer-ownership="none">
4215             <doc xml:whitespace="preserve">location to store the x_offset (in Pango unit)</doc>
4216             <type name="gint" c:type="int*"/>
4217           </parameter>
4218         </parameters>
4219       </method>
4220       <method name="ref" c:identifier="pango_layout_line_ref" version="1.10">
4221         <doc xml:whitespace="preserve">Increase the reference count of a #PangoLayoutLine by one.</doc>
4222         <return-value transfer-ownership="full">
4223           <doc xml:whitespace="preserve">the line passed in.</doc>
4224           <type name="LayoutLine" c:type="PangoLayoutLine*"/>
4225         </return-value>
4226       </method>
4227       <method name="unref" c:identifier="pango_layout_line_unref">
4228         <doc xml:whitespace="preserve">Decrease the reference count of a #PangoLayoutLine by one.
4229 If the result is zero, the line and all associated memory
4230 will be freed.</doc>
4231         <return-value transfer-ownership="none">
4232           <type name="none" c:type="void"/>
4233         </return-value>
4234       </method>
4235       <method name="x_to_index" c:identifier="pango_layout_line_x_to_index">
4236         <doc xml:whitespace="preserve">Converts from x offset to the byte index of the corresponding
4237 character within the text of the layout. If @x_pos is outside the line,
4238 in the line. This determination is based on the resolved direction
4239 of the paragraph; for example, if the resolved direction is
4240 right-to-left, then an X position to the right of the line (after it)
4241 results in 0 being stored in @index_ and @trailing. An X position to the
4242 left of the line results in @index_ pointing to the (logical) last
4243 grapheme in the line and @trailing being set to the number of characters
4244 in that grapheme. The reverse is true for a left-to-right line.</doc>
4245         <return-value transfer-ownership="none">
4246           <doc xml:whitespace="preserve">%FALSE if @x_pos was outside the line, %TRUE if inside</doc>
4247           <type name="gboolean" c:type="gboolean"/>
4248         </return-value>
4249         <parameters>
4250           <parameter name="x_pos" transfer-ownership="none">
4251             <doc xml:whitespace="preserve">the X offset (in Pango units) from the left edge of the line.</doc>
4252             <type name="gint" c:type="int"/>
4253           </parameter>
4254           <parameter name="index_" transfer-ownership="none">
4255             <doc xml:whitespace="preserve">location to store calculated byte index for the grapheme in which the user clicked.</doc>
4256             <type name="gint" c:type="int*"/>
4257           </parameter>
4258           <parameter name="trailing" transfer-ownership="none">
4259             <doc xml:whitespace="preserve">location to store an integer indicating where in the grapheme the user clicked. It will either be zero, or the number of characters in the grapheme. 0 represents the leading edge of the grapheme.</doc>
4260             <type name="gint" c:type="int*"/>
4261           </parameter>
4262         </parameters>
4263       </method>
4264     </record>
4265     <record name="LogAttr" c:type="PangoLogAttr">
4266       <field name="is_line_break" writable="1" bits="1">
4267         <type name="guint" c:type="guint"/>
4268       </field>
4269       <field name="is_mandatory_break" writable="1" bits="1">
4270         <type name="guint" c:type="guint"/>
4271       </field>
4272       <field name="is_char_break" writable="1" bits="1">
4273         <type name="guint" c:type="guint"/>
4274       </field>
4275       <field name="is_white" writable="1" bits="1">
4276         <type name="guint" c:type="guint"/>
4277       </field>
4278       <field name="is_cursor_position" writable="1" bits="1">
4279         <type name="guint" c:type="guint"/>
4280       </field>
4281       <field name="is_word_start" writable="1" bits="1">
4282         <type name="guint" c:type="guint"/>
4283       </field>
4284       <field name="is_word_end" writable="1" bits="1">
4285         <type name="guint" c:type="guint"/>
4286       </field>
4287       <field name="is_sentence_boundary" writable="1" bits="1">
4288         <type name="guint" c:type="guint"/>
4289       </field>
4290       <field name="is_sentence_start" writable="1" bits="1">
4291         <type name="guint" c:type="guint"/>
4292       </field>
4293       <field name="is_sentence_end" writable="1" bits="1">
4294         <type name="guint" c:type="guint"/>
4295       </field>
4296       <field name="backspace_deletes_character" writable="1" bits="1">
4297         <type name="guint" c:type="guint"/>
4298       </field>
4299       <field name="is_expandable_space" writable="1" bits="1">
4300         <type name="guint" c:type="guint"/>
4301       </field>
4302       <field name="is_word_boundary" writable="1" bits="1">
4303         <type name="guint" c:type="guint"/>
4304       </field>
4305     </record>
4306     <record name="Matrix"
4307             c:type="PangoMatrix"
4308             version="1.6"
4309             glib:type-name="PangoMatrix"
4310             glib:get-type="pango_matrix_get_type"
4311             c:symbol-prefix="matrix">
4312       <doc xml:whitespace="preserve">A structure specifying a transformation between user-space
4313 coordinates and device coordinates. The transformation
4314 is given by
4315 &lt;programlisting&gt;
4316 x_device = x_user * matrix-&gt;xx + y_user * matrix-&gt;xy + matrix-&gt;x0;
4317 y_device = x_user * matrix-&gt;yx + y_user * matrix-&gt;yy + matrix-&gt;y0;
4318 &lt;/programlisting&gt;</doc>
4319       <field name="xx" writable="1">
4320         <type name="gdouble" c:type="double"/>
4321       </field>
4322       <field name="xy" writable="1">
4323         <type name="gdouble" c:type="double"/>
4324       </field>
4325       <field name="yx" writable="1">
4326         <type name="gdouble" c:type="double"/>
4327       </field>
4328       <field name="yy" writable="1">
4329         <type name="gdouble" c:type="double"/>
4330       </field>
4331       <field name="x0" writable="1">
4332         <type name="gdouble" c:type="double"/>
4333       </field>
4334       <field name="y0" writable="1">
4335         <type name="gdouble" c:type="double"/>
4336       </field>
4337       <method name="concat" c:identifier="pango_matrix_concat" version="1.6">
4338         <doc xml:whitespace="preserve">Changes the transformation represented by @matrix to be the
4339 transformation given by first applying transformation
4340 given by @new_matrix then applying the original transformation.</doc>
4341         <return-value transfer-ownership="none">
4342           <type name="none" c:type="void"/>
4343         </return-value>
4344         <parameters>
4345           <parameter name="new_matrix" transfer-ownership="none">
4346             <doc xml:whitespace="preserve">a #PangoMatrix</doc>
4347             <type name="Matrix" c:type="PangoMatrix*"/>
4348           </parameter>
4349         </parameters>
4350       </method>
4351       <method name="copy" c:identifier="pango_matrix_copy" version="1.6">
4352         <doc xml:whitespace="preserve">Copies a #PangoMatrix.
4353 be freed with pango_matrix_free(), or %NULL if</doc>
4354         <return-value transfer-ownership="full">
4355           <doc xml:whitespace="preserve">the newly allocated #PangoMatrix, which should</doc>
4356           <type name="Matrix" c:type="PangoMatrix*"/>
4357         </return-value>
4358       </method>
4359       <method name="free" c:identifier="pango_matrix_free" version="1.6">
4360         <doc xml:whitespace="preserve">Free a #PangoMatrix created with pango_matrix_copy().</doc>
4361         <return-value transfer-ownership="none">
4362           <type name="none" c:type="void"/>
4363         </return-value>
4364       </method>
4365       <method name="get_font_scale_factor"
4366               c:identifier="pango_matrix_get_font_scale_factor"
4367               version="1.12">
4368         <doc xml:whitespace="preserve">Returns the scale factor of a matrix on the height of the font.
4369 That is, the scale factor in the direction perpendicular to the
4370 vector that the X coordinate is mapped to.
4371 or 1.0 if @matrix is %NULL.</doc>
4372         <return-value transfer-ownership="none">
4373           <doc xml:whitespace="preserve">the scale factor of @matrix on the height of the font,</doc>
4374           <type name="gdouble" c:type="double"/>
4375         </return-value>
4376       </method>
4377       <method name="rotate" c:identifier="pango_matrix_rotate" version="1.6">
4378         <doc xml:whitespace="preserve">Changes the transformation represented by @matrix to be the
4379 transformation given by first rotating by @degrees degrees
4380 counter-clockwise then applying the original transformation.</doc>
4381         <return-value transfer-ownership="none">
4382           <type name="none" c:type="void"/>
4383         </return-value>
4384         <parameters>
4385           <parameter name="degrees" transfer-ownership="none">
4386             <doc xml:whitespace="preserve">degrees to rotate counter-clockwise</doc>
4387             <type name="gdouble" c:type="double"/>
4388           </parameter>
4389         </parameters>
4390       </method>
4391       <method name="scale" c:identifier="pango_matrix_scale" version="1.6">
4392         <doc xml:whitespace="preserve">Changes the transformation represented by @matrix to be the
4393 transformation given by first scaling by @sx in the X direction
4394 and @sy in the Y direction then applying the original
4395 transformation.</doc>
4396         <return-value transfer-ownership="none">
4397           <type name="none" c:type="void"/>
4398         </return-value>
4399         <parameters>
4400           <parameter name="scale_x" transfer-ownership="none">
4401             <doc xml:whitespace="preserve">amount to scale by in X direction</doc>
4402             <type name="gdouble" c:type="double"/>
4403           </parameter>
4404           <parameter name="scale_y" transfer-ownership="none">
4405             <doc xml:whitespace="preserve">amount to scale by in Y direction</doc>
4406             <type name="gdouble" c:type="double"/>
4407           </parameter>
4408         </parameters>
4409       </method>
4410       <method name="transform_distance"
4411               c:identifier="pango_matrix_transform_distance"
4412               version="1.16">
4413         <doc xml:whitespace="preserve">Transforms the distance vector (@dx,@dy) by @matrix. This is
4414 similar to pango_matrix_transform_point() except that the translation
4415 components of the transformation are ignored. The calculation of
4416 the returned vector is as follows:
4417 &lt;programlisting&gt;
4418 dx2 = dx1 * xx + dy1 * xy;
4419 dy2 = dx1 * yx + dy1 * yy;
4420 &lt;/programlisting&gt;
4421 Affine transformations are position invariant, so the same vector
4422 always transforms to the same vector. If (@x1,@y1) transforms
4423 to (@x2,@y2) then (@x1+@dx1,@y1+@dy1) will transform to
4424 (@x1+@dx2,@y1+@dy2) for all values of @x1 and @x2.</doc>
4425         <return-value transfer-ownership="none">
4426           <type name="none" c:type="void"/>
4427         </return-value>
4428         <parameters>
4429           <parameter name="dx" transfer-ownership="none">
4430             <doc xml:whitespace="preserve">in/out X component of a distance vector</doc>
4431             <type name="gdouble" c:type="double*"/>
4432           </parameter>
4433           <parameter name="dy" transfer-ownership="none">
4434             <doc xml:whitespace="preserve">yn/out Y component of a distance vector</doc>
4435             <type name="gdouble" c:type="double*"/>
4436           </parameter>
4437         </parameters>
4438       </method>
4439       <method name="transform_pixel_rectangle"
4440               c:identifier="pango_matrix_transform_pixel_rectangle"
4441               version="1.16">
4442         <doc xml:whitespace="preserve">First transforms the @rect using @matrix, then calculates the bounding box
4443 of the transformed rectangle.  The rectangle should be in device units
4444 (pixels).
4445 This function is useful for example when you want to draw a rotated
4446 should be and how much you should shift the layout when rendering.
4447 For better accuracy, you should use pango_matrix_transform_rectangle() on
4448 original rectangle in Pango units and convert to pixels afterward
4449 using pango_extents_to_pixels()'s first argument.</doc>
4450         <return-value transfer-ownership="none">
4451           <type name="none" c:type="void"/>
4452         </return-value>
4453         <parameters>
4454           <parameter name="rect" transfer-ownership="none">
4455             <doc xml:whitespace="preserve">in/out bounding box in device units, or %NULL</doc>
4456             <type name="Rectangle" c:type="PangoRectangle*"/>
4457           </parameter>
4458         </parameters>
4459       </method>
4460       <method name="transform_point"
4461               c:identifier="pango_matrix_transform_point"
4462               version="1.16">
4463         <doc xml:whitespace="preserve">Transforms the point (@x, @y) by @matrix.</doc>
4464         <return-value transfer-ownership="none">
4465           <type name="none" c:type="void"/>
4466         </return-value>
4467         <parameters>
4468           <parameter name="x" transfer-ownership="none">
4469             <doc xml:whitespace="preserve">in/out X position</doc>
4470             <type name="gdouble" c:type="double*"/>
4471           </parameter>
4472           <parameter name="y" transfer-ownership="none">
4473             <doc xml:whitespace="preserve">in/out Y position</doc>
4474             <type name="gdouble" c:type="double*"/>
4475           </parameter>
4476         </parameters>
4477       </method>
4478       <method name="transform_rectangle"
4479               c:identifier="pango_matrix_transform_rectangle"
4480               version="1.16">
4481         <doc xml:whitespace="preserve">First transforms @rect using @matrix, then calculates the bounding box
4482 of the transformed rectangle.  The rectangle should be in Pango units.
4483 This function is useful for example when you want to draw a rotated
4484 should be and how much you should shift the layout when rendering.
4485 If you have a rectangle in device units (pixels), use
4486 pango_matrix_transform_pixel_rectangle().
4487 If you have the rectangle in Pango units and want to convert to
4488 transformed pixel bounding box, it is more accurate to transform it first
4489 (using this function) and pass the result to pango_extents_to_pixels(),
4490 first argument, for an inclusive rounded rectangle.
4491 However, there are valid reasons that you may want to convert
4492 to pixels first and then transform, for example when the transformed
4493 coordinates may overflow in Pango units (large matrix translation for
4494 example).</doc>
4495         <return-value transfer-ownership="none">
4496           <type name="none" c:type="void"/>
4497         </return-value>
4498         <parameters>
4499           <parameter name="rect" transfer-ownership="none">
4500             <doc xml:whitespace="preserve">in/out bounding box in Pango units, or %NULL</doc>
4501             <type name="Rectangle" c:type="PangoRectangle*"/>
4502           </parameter>
4503         </parameters>
4504       </method>
4505       <method name="translate"
4506               c:identifier="pango_matrix_translate"
4507               version="1.6">
4508         <doc xml:whitespace="preserve">Changes the transformation represented by @matrix to be the
4509 transformation given by first translating by (@tx, @ty)
4510 then applying the original transformation.</doc>
4511         <return-value transfer-ownership="none">
4512           <type name="none" c:type="void"/>
4513         </return-value>
4514         <parameters>
4515           <parameter name="tx" transfer-ownership="none">
4516             <doc xml:whitespace="preserve">amount to translate in the X direction</doc>
4517             <type name="gdouble" c:type="double"/>
4518           </parameter>
4519           <parameter name="ty" transfer-ownership="none">
4520             <doc xml:whitespace="preserve">amount to translate in the Y direction</doc>
4521             <type name="gdouble" c:type="double"/>
4522           </parameter>
4523         </parameters>
4524       </method>
4525     </record>
4526     <constant name="RENDER_TYPE_NONE" value="PangoRenderNone">
4527       <type name="utf8" c:type="gchar*"/>
4528     </constant>
4529     <record name="Rectangle" c:type="PangoRectangle">
4530       <field name="x" writable="1">
4531         <type name="gint" c:type="int"/>
4532       </field>
4533       <field name="y" writable="1">
4534         <type name="gint" c:type="int"/>
4535       </field>
4536       <field name="width" writable="1">
4537         <type name="gint" c:type="int"/>
4538       </field>
4539       <field name="height" writable="1">
4540         <type name="gint" c:type="int"/>
4541       </field>
4542     </record>
4543     <enumeration name="RenderPart"
4544                  version="1.8"
4545                  glib:type-name="PangoRenderPart"
4546                  glib:get-type="pango_render_part_get_type"
4547                  c:type="PangoRenderPart">
4548       <doc xml:whitespace="preserve">#PangoRenderPart defines different items to render for such
4549 purposes as setting colors.</doc>
4550       <member name="foreground"
4551               value="0"
4552               c:identifier="PANGO_RENDER_PART_FOREGROUND"
4553               glib:nick="foreground"/>
4554       <member name="background"
4555               value="1"
4556               c:identifier="PANGO_RENDER_PART_BACKGROUND"
4557               glib:nick="background"/>
4558       <member name="underline"
4559               value="2"
4560               c:identifier="PANGO_RENDER_PART_UNDERLINE"
4561               glib:nick="underline"/>
4562       <member name="strikethrough"
4563               value="3"
4564               c:identifier="PANGO_RENDER_PART_STRIKETHROUGH"
4565               glib:nick="strikethrough"/>
4566     </enumeration>
4567     <class name="Renderer"
4568            c:symbol-prefix="renderer"
4569            c:type="PangoRenderer"
4570            version="1.8"
4571            parent="GObject.Object"
4572            abstract="1"
4573            glib:type-name="PangoRenderer"
4574            glib:get-type="pango_renderer_get_type"
4575            glib:type-struct="RendererClass">
4576       <doc xml:whitespace="preserve">#PangoRenderer is a base class for objects that are used to
4577 render Pango objects such as #PangoGlyphString and
4578 #PangoLayout.</doc>
4579       <virtual-method name="begin">
4580         <return-value transfer-ownership="none">
4581           <type name="none" c:type="void"/>
4582         </return-value>
4583       </virtual-method>
4584       <virtual-method name="draw_error_underline"
4585                       invoker="draw_error_underline"
4586                       version="1.8">
4587         <doc xml:whitespace="preserve">Draw a squiggly line that approximately covers the given rectangle
4588 in the style of an underline used to indicate a spelling error.
4589 (The width of the underline is rounded to an integer number
4590 of up/down segments and the resulting rectangle is centered
4591 in the original rectangle)
4592 This should be called while @renderer is already active.  Use
4593 pango_renderer_activate() to activate a renderer.</doc>
4594         <return-value transfer-ownership="none">
4595           <type name="none" c:type="void"/>
4596         </return-value>
4597         <parameters>
4598           <parameter name="x" transfer-ownership="none">
4599             <doc xml:whitespace="preserve">X coordinate of underline, in Pango units in user coordinate system</doc>
4600             <type name="gint" c:type="int"/>
4601           </parameter>
4602           <parameter name="y" transfer-ownership="none">
4603             <doc xml:whitespace="preserve">Y coordinate of underline, in Pango units in user coordinate system</doc>
4604             <type name="gint" c:type="int"/>
4605           </parameter>
4606           <parameter name="width" transfer-ownership="none">
4607             <doc xml:whitespace="preserve">width of underline, in Pango units in user coordinate system</doc>
4608             <type name="gint" c:type="int"/>
4609           </parameter>
4610           <parameter name="height" transfer-ownership="none">
4611             <doc xml:whitespace="preserve">height of underline, in Pango units in user coordinate system</doc>
4612             <type name="gint" c:type="int"/>
4613           </parameter>
4614         </parameters>
4615       </virtual-method>
4616       <virtual-method name="draw_glyph" invoker="draw_glyph" version="1.8">
4617         <doc xml:whitespace="preserve">Draws a single glyph with coordinates in device space.</doc>
4618         <return-value transfer-ownership="none">
4619           <type name="none" c:type="void"/>
4620         </return-value>
4621         <parameters>
4622           <parameter name="font" transfer-ownership="none">
4623             <doc xml:whitespace="preserve">a #PangoFont</doc>
4624             <type name="Font" c:type="PangoFont*"/>
4625           </parameter>
4626           <parameter name="glyph" transfer-ownership="none">
4627             <doc xml:whitespace="preserve">the glyph index of a single glyph</doc>
4628             <type name="Glyph" c:type="PangoGlyph"/>
4629           </parameter>
4630           <parameter name="x" transfer-ownership="none">
4631             <doc xml:whitespace="preserve">X coordinate of left edge of baseline of glyph</doc>
4632             <type name="gdouble" c:type="double"/>
4633           </parameter>
4634           <parameter name="y" transfer-ownership="none">
4635             <doc xml:whitespace="preserve">Y coordinate of left edge of baseline of glyph</doc>
4636             <type name="gdouble" c:type="double"/>
4637           </parameter>
4638         </parameters>
4639       </virtual-method>
4640       <virtual-method name="draw_glyph_item"
4641                       invoker="draw_glyph_item"
4642                       version="1.22">
4643         <doc xml:whitespace="preserve">Draws the glyphs in @glyph_item with the specified #PangoRenderer,
4644 embedding the text associated with the glyphs in the output if the
4645 output format supports it (PDF for example).
4646 Note that @text is the start of the text for layout, which is then
4647 indexed by &lt;literal&gt;@glyph_item-&gt;item-&gt;offset&lt;/literal&gt;.
4648 If @text is %NULL, this simply calls pango_renderer_draw_glyphs().
4649 The default implementation of this method simply falls back to
4650 pango_renderer_draw_glyphs().</doc>
4651         <return-value transfer-ownership="none">
4652           <type name="none" c:type="void"/>
4653         </return-value>
4654         <parameters>
4655           <parameter name="text" transfer-ownership="none">
4656             <doc xml:whitespace="preserve">the UTF-8 text that @glyph_item refers to, or %NULL</doc>
4657             <type name="utf8" c:type="char*"/>
4658           </parameter>
4659           <parameter name="glyph_item" transfer-ownership="none">
4660             <doc xml:whitespace="preserve">a #PangoGlyphItem</doc>
4661             <type name="GlyphItem" c:type="PangoGlyphItem*"/>
4662           </parameter>
4663           <parameter name="x" transfer-ownership="none">
4664             <doc xml:whitespace="preserve">X position of left edge of baseline, in user space coordinates in Pango units.</doc>
4665             <type name="gint" c:type="int"/>
4666           </parameter>
4667           <parameter name="y" transfer-ownership="none">
4668             <doc xml:whitespace="preserve">Y position of left edge of baseline, in user space coordinates in Pango units.</doc>
4669             <type name="gint" c:type="int"/>
4670           </parameter>
4671         </parameters>
4672       </virtual-method>
4673       <virtual-method name="draw_glyphs" invoker="draw_glyphs" version="1.8">
4674         <doc xml:whitespace="preserve">Draws the glyphs in @glyphs with the specified #PangoRenderer.</doc>
4675         <return-value transfer-ownership="none">
4676           <type name="none" c:type="void"/>
4677         </return-value>
4678         <parameters>
4679           <parameter name="font" transfer-ownership="none">
4680             <doc xml:whitespace="preserve">a #PangoFont</doc>
4681             <type name="Font" c:type="PangoFont*"/>
4682           </parameter>
4683           <parameter name="glyphs" transfer-ownership="none">
4684             <doc xml:whitespace="preserve">a #PangoGlyphString</doc>
4685             <type name="GlyphString" c:type="PangoGlyphString*"/>
4686           </parameter>
4687           <parameter name="x" transfer-ownership="none">
4688             <doc xml:whitespace="preserve">X position of left edge of baseline, in user space coordinates in Pango units.</doc>
4689             <type name="gint" c:type="int"/>
4690           </parameter>
4691           <parameter name="y" transfer-ownership="none">
4692             <doc xml:whitespace="preserve">Y position of left edge of baseline, in user space coordinates in Pango units.</doc>
4693             <type name="gint" c:type="int"/>
4694           </parameter>
4695         </parameters>
4696       </virtual-method>
4697       <virtual-method name="draw_rectangle"
4698                       invoker="draw_rectangle"
4699                       version="1.8">
4700         <doc xml:whitespace="preserve">Draws an axis-aligned rectangle in user space coordinates with the
4701 specified #PangoRenderer.
4702 This should be called while @renderer is already active.  Use
4703 pango_renderer_activate() to activate a renderer.</doc>
4704         <return-value transfer-ownership="none">
4705           <type name="none" c:type="void"/>
4706         </return-value>
4707         <parameters>
4708           <parameter name="part" transfer-ownership="none">
4709             <doc xml:whitespace="preserve">type of object this rectangle is part of</doc>
4710             <type name="RenderPart" c:type="PangoRenderPart"/>
4711           </parameter>
4712           <parameter name="x" transfer-ownership="none">
4713             <doc xml:whitespace="preserve">X position at which to draw rectangle, in user space coordinates in Pango units</doc>
4714             <type name="gint" c:type="int"/>
4715           </parameter>
4716           <parameter name="y" transfer-ownership="none">
4717             <doc xml:whitespace="preserve">Y position at which to draw rectangle, in user space coordinates in Pango units</doc>
4718             <type name="gint" c:type="int"/>
4719           </parameter>
4720           <parameter name="width" transfer-ownership="none">
4721             <doc xml:whitespace="preserve">width of rectangle in Pango units in user space coordinates</doc>
4722             <type name="gint" c:type="int"/>
4723           </parameter>
4724           <parameter name="height" transfer-ownership="none">
4725             <doc xml:whitespace="preserve">height of rectangle in Pango units in user space coordinates</doc>
4726             <type name="gint" c:type="int"/>
4727           </parameter>
4728         </parameters>
4729       </virtual-method>
4730       <virtual-method name="draw_shape">
4731         <return-value transfer-ownership="none">
4732           <type name="none" c:type="void"/>
4733         </return-value>
4734         <parameters>
4735           <parameter name="attr" transfer-ownership="none">
4736             <type name="AttrShape" c:type="PangoAttrShape*"/>
4737           </parameter>
4738           <parameter name="x" transfer-ownership="none">
4739             <type name="gint" c:type="int"/>
4740           </parameter>
4741           <parameter name="y" transfer-ownership="none">
4742             <type name="gint" c:type="int"/>
4743           </parameter>
4744         </parameters>
4745       </virtual-method>
4746       <virtual-method name="draw_trapezoid"
4747                       invoker="draw_trapezoid"
4748                       version="1.8">
4749         <doc xml:whitespace="preserve">Draws a trapezoid with the parallel sides aligned with the X axis
4750 using the given #PangoRenderer; coordinates are in device space.</doc>
4751         <return-value transfer-ownership="none">
4752           <type name="none" c:type="void"/>
4753         </return-value>
4754         <parameters>
4755           <parameter name="part" transfer-ownership="none">
4756             <doc xml:whitespace="preserve">type of object this trapezoid is part of</doc>
4757             <type name="RenderPart" c:type="PangoRenderPart"/>
4758           </parameter>
4759           <parameter name="y1_" transfer-ownership="none">
4760             <doc xml:whitespace="preserve">Y coordinate of top of trapezoid</doc>
4761             <type name="gdouble" c:type="double"/>
4762           </parameter>
4763           <parameter name="x11" transfer-ownership="none">
4764             <doc xml:whitespace="preserve">X coordinate of left end of top of trapezoid</doc>
4765             <type name="gdouble" c:type="double"/>
4766           </parameter>
4767           <parameter name="x21" transfer-ownership="none">
4768             <doc xml:whitespace="preserve">X coordinate of right end of top of trapezoid</doc>
4769             <type name="gdouble" c:type="double"/>
4770           </parameter>
4771           <parameter name="y2" transfer-ownership="none">
4772             <doc xml:whitespace="preserve">Y coordinate of bottom of trapezoid</doc>
4773             <type name="gdouble" c:type="double"/>
4774           </parameter>
4775           <parameter name="x12" transfer-ownership="none">
4776             <doc xml:whitespace="preserve">X coordinate of left end of bottom of trapezoid</doc>
4777             <type name="gdouble" c:type="double"/>
4778           </parameter>
4779           <parameter name="x22" transfer-ownership="none">
4780             <doc xml:whitespace="preserve">X coordinate of right end of bottom of trapezoid</doc>
4781             <type name="gdouble" c:type="double"/>
4782           </parameter>
4783         </parameters>
4784       </virtual-method>
4785       <virtual-method name="end">
4786         <return-value transfer-ownership="none">
4787           <type name="none" c:type="void"/>
4788         </return-value>
4789       </virtual-method>
4790       <virtual-method name="part_changed" invoker="part_changed" version="1.8">
4791         <doc xml:whitespace="preserve">Informs Pango that the way that the rendering is done
4792 for @part has changed in a way that would prevent multiple
4793 pieces being joined together into one drawing call. For
4794 instance, if a subclass of #PangoRenderer was to add a stipple
4795 option for drawing underlines, it needs to call
4796 &lt;informalexample&gt;&lt;programlisting&gt;
4797 pango_renderer_part_changed (render, PANGO_RENDER_PART_UNDERLINE);
4798 &lt;/programlisting&gt;&lt;/informalexample&gt;
4799 When the stipple changes or underlines with different stipples
4800 might be joined together. Pango automatically calls this for
4801 changes to colors. (See pango_renderer_set_color())</doc>
4802         <return-value transfer-ownership="none">
4803           <type name="none" c:type="void"/>
4804         </return-value>
4805         <parameters>
4806           <parameter name="part" transfer-ownership="none">
4807             <doc xml:whitespace="preserve">the part for which rendering has changed.</doc>
4808             <type name="RenderPart" c:type="PangoRenderPart"/>
4809           </parameter>
4810         </parameters>
4811       </virtual-method>
4812       <virtual-method name="prepare_run">
4813         <return-value transfer-ownership="none">
4814           <type name="none" c:type="void"/>
4815         </return-value>
4816         <parameters>
4817           <parameter name="run" transfer-ownership="none">
4818             <type name="LayoutRun" c:type="PangoLayoutRun*"/>
4819           </parameter>
4820         </parameters>
4821       </virtual-method>
4822       <method name="activate"
4823               c:identifier="pango_renderer_activate"
4824               version="1.8">
4825         <doc xml:whitespace="preserve">Does initial setup before rendering operations on @renderer.
4826 pango_renderer_deactivate() should be called when done drawing.
4827 Calls such as pango_renderer_draw_layout() automatically
4828 activate the layout before drawing on it. Calls to
4829 pango_renderer_activate() and pango_renderer_deactivate() can
4830 be nested and the renderer will only be initialized and
4831 deinitialized once.</doc>
4832         <return-value transfer-ownership="none">
4833           <type name="none" c:type="void"/>
4834         </return-value>
4835       </method>
4836       <method name="deactivate"
4837               c:identifier="pango_renderer_deactivate"
4838               version="1.8">
4839         <doc xml:whitespace="preserve">Cleans up after rendering operations on @renderer. See
4840 docs for pango_renderer_activate().</doc>
4841         <return-value transfer-ownership="none">
4842           <type name="none" c:type="void"/>
4843         </return-value>
4844       </method>
4845       <method name="draw_error_underline"
4846               c:identifier="pango_renderer_draw_error_underline"
4847               version="1.8">
4848         <doc xml:whitespace="preserve">Draw a squiggly line that approximately covers the given rectangle
4849 in the style of an underline used to indicate a spelling error.
4850 (The width of the underline is rounded to an integer number
4851 of up/down segments and the resulting rectangle is centered
4852 in the original rectangle)
4853 This should be called while @renderer is already active.  Use
4854 pango_renderer_activate() to activate a renderer.</doc>
4855         <return-value transfer-ownership="none">
4856           <type name="none" c:type="void"/>
4857         </return-value>
4858         <parameters>
4859           <parameter name="x" transfer-ownership="none">
4860             <doc xml:whitespace="preserve">X coordinate of underline, in Pango units in user coordinate system</doc>
4861             <type name="gint" c:type="int"/>
4862           </parameter>
4863           <parameter name="y" transfer-ownership="none">
4864             <doc xml:whitespace="preserve">Y coordinate of underline, in Pango units in user coordinate system</doc>
4865             <type name="gint" c:type="int"/>
4866           </parameter>
4867           <parameter name="width" transfer-ownership="none">
4868             <doc xml:whitespace="preserve">width of underline, in Pango units in user coordinate system</doc>
4869             <type name="gint" c:type="int"/>
4870           </parameter>
4871           <parameter name="height" transfer-ownership="none">
4872             <doc xml:whitespace="preserve">height of underline, in Pango units in user coordinate system</doc>
4873             <type name="gint" c:type="int"/>
4874           </parameter>
4875         </parameters>
4876       </method>
4877       <method name="draw_glyph"
4878               c:identifier="pango_renderer_draw_glyph"
4879               version="1.8">
4880         <doc xml:whitespace="preserve">Draws a single glyph with coordinates in device space.</doc>
4881         <return-value transfer-ownership="none">
4882           <type name="none" c:type="void"/>
4883         </return-value>
4884         <parameters>
4885           <parameter name="font" transfer-ownership="none">
4886             <doc xml:whitespace="preserve">a #PangoFont</doc>
4887             <type name="Font" c:type="PangoFont*"/>
4888           </parameter>
4889           <parameter name="glyph" transfer-ownership="none">
4890             <doc xml:whitespace="preserve">the glyph index of a single glyph</doc>
4891             <type name="Glyph" c:type="PangoGlyph"/>
4892           </parameter>
4893           <parameter name="x" transfer-ownership="none">
4894             <doc xml:whitespace="preserve">X coordinate of left edge of baseline of glyph</doc>
4895             <type name="gdouble" c:type="double"/>
4896           </parameter>
4897           <parameter name="y" transfer-ownership="none">
4898             <doc xml:whitespace="preserve">Y coordinate of left edge of baseline of glyph</doc>
4899             <type name="gdouble" c:type="double"/>
4900           </parameter>
4901         </parameters>
4902       </method>
4903       <method name="draw_glyph_item"
4904               c:identifier="pango_renderer_draw_glyph_item"
4905               version="1.22">
4906         <doc xml:whitespace="preserve">Draws the glyphs in @glyph_item with the specified #PangoRenderer,
4907 embedding the text associated with the glyphs in the output if the
4908 output format supports it (PDF for example).
4909 Note that @text is the start of the text for layout, which is then
4910 indexed by &lt;literal&gt;@glyph_item-&gt;item-&gt;offset&lt;/literal&gt;.
4911 If @text is %NULL, this simply calls pango_renderer_draw_glyphs().
4912 The default implementation of this method simply falls back to
4913 pango_renderer_draw_glyphs().</doc>
4914         <return-value transfer-ownership="none">
4915           <type name="none" c:type="void"/>
4916         </return-value>
4917         <parameters>
4918           <parameter name="text" transfer-ownership="none">
4919             <doc xml:whitespace="preserve">the UTF-8 text that @glyph_item refers to, or %NULL</doc>
4920             <type name="utf8" c:type="char*"/>
4921           </parameter>
4922           <parameter name="glyph_item" transfer-ownership="none">
4923             <doc xml:whitespace="preserve">a #PangoGlyphItem</doc>
4924             <type name="GlyphItem" c:type="PangoGlyphItem*"/>
4925           </parameter>
4926           <parameter name="x" transfer-ownership="none">
4927             <doc xml:whitespace="preserve">X position of left edge of baseline, in user space coordinates in Pango units.</doc>
4928             <type name="gint" c:type="int"/>
4929           </parameter>
4930           <parameter name="y" transfer-ownership="none">
4931             <doc xml:whitespace="preserve">Y position of left edge of baseline, in user space coordinates in Pango units.</doc>
4932             <type name="gint" c:type="int"/>
4933           </parameter>
4934         </parameters>
4935       </method>
4936       <method name="draw_glyphs"
4937               c:identifier="pango_renderer_draw_glyphs"
4938               version="1.8">
4939         <doc xml:whitespace="preserve">Draws the glyphs in @glyphs with the specified #PangoRenderer.</doc>
4940         <return-value transfer-ownership="none">
4941           <type name="none" c:type="void"/>
4942         </return-value>
4943         <parameters>
4944           <parameter name="font" transfer-ownership="none">
4945             <doc xml:whitespace="preserve">a #PangoFont</doc>
4946             <type name="Font" c:type="PangoFont*"/>
4947           </parameter>
4948           <parameter name="glyphs" transfer-ownership="none">
4949             <doc xml:whitespace="preserve">a #PangoGlyphString</doc>
4950             <type name="GlyphString" c:type="PangoGlyphString*"/>
4951           </parameter>
4952           <parameter name="x" transfer-ownership="none">
4953             <doc xml:whitespace="preserve">X position of left edge of baseline, in user space coordinates in Pango units.</doc>
4954             <type name="gint" c:type="int"/>
4955           </parameter>
4956           <parameter name="y" transfer-ownership="none">
4957             <doc xml:whitespace="preserve">Y position of left edge of baseline, in user space coordinates in Pango units.</doc>
4958             <type name="gint" c:type="int"/>
4959           </parameter>
4960         </parameters>
4961       </method>
4962       <method name="draw_layout"
4963               c:identifier="pango_renderer_draw_layout"
4964               version="1.8">
4965         <doc xml:whitespace="preserve">Draws @layout with the specified #PangoRenderer.</doc>
4966         <return-value transfer-ownership="none">
4967           <type name="none" c:type="void"/>
4968         </return-value>
4969         <parameters>
4970           <parameter name="layout" transfer-ownership="none">
4971             <doc xml:whitespace="preserve">a #PangoLayout</doc>
4972             <type name="Layout" c:type="PangoLayout*"/>
4973           </parameter>
4974           <parameter name="x" transfer-ownership="none">
4975             <doc xml:whitespace="preserve">X position of left edge of baseline, in user space coordinates in Pango units.</doc>
4976             <type name="gint" c:type="int"/>
4977           </parameter>
4978           <parameter name="y" transfer-ownership="none">
4979             <doc xml:whitespace="preserve">Y position of left edge of baseline, in user space coordinates in Pango units.</doc>
4980             <type name="gint" c:type="int"/>
4981           </parameter>
4982         </parameters>
4983       </method>
4984       <method name="draw_layout_line"
4985               c:identifier="pango_renderer_draw_layout_line"
4986               version="1.8">
4987         <doc xml:whitespace="preserve">Draws @line with the specified #PangoRenderer.</doc>
4988         <return-value transfer-ownership="none">
4989           <type name="none" c:type="void"/>
4990         </return-value>
4991         <parameters>
4992           <parameter name="line" transfer-ownership="none">
4993             <doc xml:whitespace="preserve">a #PangoLayoutLine</doc>
4994             <type name="LayoutLine" c:type="PangoLayoutLine*"/>
4995           </parameter>
4996           <parameter name="x" transfer-ownership="none">
4997             <doc xml:whitespace="preserve">X position of left edge of baseline, in user space coordinates in Pango units.</doc>
4998             <type name="gint" c:type="int"/>
4999           </parameter>
5000           <parameter name="y" transfer-ownership="none">
5001             <doc xml:whitespace="preserve">Y position of left edge of baseline, in user space coordinates in Pango units.</doc>
5002             <type name="gint" c:type="int"/>
5003           </parameter>
5004         </parameters>
5005       </method>
5006       <method name="draw_rectangle"
5007               c:identifier="pango_renderer_draw_rectangle"
5008               version="1.8">
5009         <doc xml:whitespace="preserve">Draws an axis-aligned rectangle in user space coordinates with the
5010 specified #PangoRenderer.
5011 This should be called while @renderer is already active.  Use
5012 pango_renderer_activate() to activate a renderer.</doc>
5013         <return-value transfer-ownership="none">
5014           <type name="none" c:type="void"/>
5015         </return-value>
5016         <parameters>
5017           <parameter name="part" transfer-ownership="none">
5018             <doc xml:whitespace="preserve">type of object this rectangle is part of</doc>
5019             <type name="RenderPart" c:type="PangoRenderPart"/>
5020           </parameter>
5021           <parameter name="x" transfer-ownership="none">
5022             <doc xml:whitespace="preserve">X position at which to draw rectangle, in user space coordinates in Pango units</doc>
5023             <type name="gint" c:type="int"/>
5024           </parameter>
5025           <parameter name="y" transfer-ownership="none">
5026             <doc xml:whitespace="preserve">Y position at which to draw rectangle, in user space coordinates in Pango units</doc>
5027             <type name="gint" c:type="int"/>
5028           </parameter>
5029           <parameter name="width" transfer-ownership="none">
5030             <doc xml:whitespace="preserve">width of rectangle in Pango units in user space coordinates</doc>
5031             <type name="gint" c:type="int"/>
5032           </parameter>
5033           <parameter name="height" transfer-ownership="none">
5034             <doc xml:whitespace="preserve">height of rectangle in Pango units in user space coordinates</doc>
5035             <type name="gint" c:type="int"/>
5036           </parameter>
5037         </parameters>
5038       </method>
5039       <method name="draw_trapezoid"
5040               c:identifier="pango_renderer_draw_trapezoid"
5041               version="1.8">
5042         <doc xml:whitespace="preserve">Draws a trapezoid with the parallel sides aligned with the X axis
5043 using the given #PangoRenderer; coordinates are in device space.</doc>
5044         <return-value transfer-ownership="none">
5045           <type name="none" c:type="void"/>
5046         </return-value>
5047         <parameters>
5048           <parameter name="part" transfer-ownership="none">
5049             <doc xml:whitespace="preserve">type of object this trapezoid is part of</doc>
5050             <type name="RenderPart" c:type="PangoRenderPart"/>
5051           </parameter>
5052           <parameter name="y1_" transfer-ownership="none">
5053             <doc xml:whitespace="preserve">Y coordinate of top of trapezoid</doc>
5054             <type name="gdouble" c:type="double"/>
5055           </parameter>
5056           <parameter name="x11" transfer-ownership="none">
5057             <doc xml:whitespace="preserve">X coordinate of left end of top of trapezoid</doc>
5058             <type name="gdouble" c:type="double"/>
5059           </parameter>
5060           <parameter name="x21" transfer-ownership="none">
5061             <doc xml:whitespace="preserve">X coordinate of right end of top of trapezoid</doc>
5062             <type name="gdouble" c:type="double"/>
5063           </parameter>
5064           <parameter name="y2" transfer-ownership="none">
5065             <doc xml:whitespace="preserve">Y coordinate of bottom of trapezoid</doc>
5066             <type name="gdouble" c:type="double"/>
5067           </parameter>
5068           <parameter name="x12" transfer-ownership="none">
5069             <doc xml:whitespace="preserve">X coordinate of left end of bottom of trapezoid</doc>
5070             <type name="gdouble" c:type="double"/>
5071           </parameter>
5072           <parameter name="x22" transfer-ownership="none">
5073             <doc xml:whitespace="preserve">X coordinate of right end of bottom of trapezoid</doc>
5074             <type name="gdouble" c:type="double"/>
5075           </parameter>
5076         </parameters>
5077       </method>
5078       <method name="get_color"
5079               c:identifier="pango_renderer_get_color"
5080               version="1.8">
5081         <doc xml:whitespace="preserve">Gets the current rendering color for the specified part.
5082 if it hasn't been set and should be inherited from the
5083 environment.</doc>
5084         <return-value transfer-ownership="full">
5085           <doc xml:whitespace="preserve">the color for the specified part, or %NULL</doc>
5086           <type name="Color" c:type="PangoColor*"/>
5087         </return-value>
5088         <parameters>
5089           <parameter name="part" transfer-ownership="none">
5090             <doc xml:whitespace="preserve">the part to get the color for</doc>
5091             <type name="RenderPart" c:type="PangoRenderPart"/>
5092           </parameter>
5093         </parameters>
5094       </method>
5095       <method name="get_layout"
5096               c:identifier="pango_renderer_get_layout"
5097               version="1.20"
5098               introspectable="0">
5099         <doc xml:whitespace="preserve">Gets the layout currently being rendered using @renderer.
5100 Calling this function only makes sense from inside a subclass's
5101 methods, like in its draw_shape&lt;!----&gt;() for example.
5102 The returned layout should not be modified while still being
5103 rendered.
5104 rendered using @renderer at this time.</doc>
5105         <return-value>
5106           <doc xml:whitespace="preserve">the layout, or %NULL if no layout is being</doc>
5107           <type name="Layout" c:type="PangoLayout*"/>
5108         </return-value>
5109       </method>
5110       <method name="get_layout_line"
5111               c:identifier="pango_renderer_get_layout_line"
5112               version="1.20">
5113         <doc xml:whitespace="preserve">Gets the layout line currently being rendered using @renderer.
5114 Calling this function only makes sense from inside a subclass's
5115 methods, like in its draw_shape&lt;!----&gt;() for example.
5116 The returned layout line should not be modified while still being
5117 rendered.
5118 rendered using @renderer at this time.</doc>
5119         <return-value transfer-ownership="full">
5120           <doc xml:whitespace="preserve">the layout line, or %NULL if no layout line is being</doc>
5121           <type name="LayoutLine" c:type="PangoLayoutLine*"/>
5122         </return-value>
5123       </method>
5124       <method name="get_matrix"
5125               c:identifier="pango_renderer_get_matrix"
5126               version="1.8">
5127         <doc xml:whitespace="preserve">Gets the transformation matrix that will be applied when
5128 rendering. See pango_renderer_set_matrix().
5129 (which is the same as the identity matrix). The returned
5130 matrix is owned by Pango and must not be modified or
5131 freed.</doc>
5132         <return-value transfer-ownership="none">
5133           <doc xml:whitespace="preserve">the matrix, or %NULL if no matrix has been set</doc>
5134           <type name="Matrix" c:type="PangoMatrix*"/>
5135         </return-value>
5136       </method>
5137       <method name="part_changed"
5138               c:identifier="pango_renderer_part_changed"
5139               version="1.8">
5140         <doc xml:whitespace="preserve">Informs Pango that the way that the rendering is done
5141 for @part has changed in a way that would prevent multiple
5142 pieces being joined together into one drawing call. For
5143 instance, if a subclass of #PangoRenderer was to add a stipple
5144 option for drawing underlines, it needs to call
5145 &lt;informalexample&gt;&lt;programlisting&gt;
5146 pango_renderer_part_changed (render, PANGO_RENDER_PART_UNDERLINE);
5147 &lt;/programlisting&gt;&lt;/informalexample&gt;
5148 When the stipple changes or underlines with different stipples
5149 might be joined together. Pango automatically calls this for
5150 changes to colors. (See pango_renderer_set_color())</doc>
5151         <return-value transfer-ownership="none">
5152           <type name="none" c:type="void"/>
5153         </return-value>
5154         <parameters>
5155           <parameter name="part" transfer-ownership="none">
5156             <doc xml:whitespace="preserve">the part for which rendering has changed.</doc>
5157             <type name="RenderPart" c:type="PangoRenderPart"/>
5158           </parameter>
5159         </parameters>
5160       </method>
5161       <method name="set_color"
5162               c:identifier="pango_renderer_set_color"
5163               version="1.8">
5164         <doc xml:whitespace="preserve">Sets the color for part of the rendering.</doc>
5165         <return-value transfer-ownership="none">
5166           <type name="none" c:type="void"/>
5167         </return-value>
5168         <parameters>
5169           <parameter name="part" transfer-ownership="none">
5170             <doc xml:whitespace="preserve">the part to change the color of</doc>
5171             <type name="RenderPart" c:type="PangoRenderPart"/>
5172           </parameter>
5173           <parameter name="color" transfer-ownership="none">
5174             <doc xml:whitespace="preserve">the new color or %NULL to unset the current color</doc>
5175             <type name="Color" c:type="PangoColor*"/>
5176           </parameter>
5177         </parameters>
5178       </method>
5179       <method name="set_matrix"
5180               c:identifier="pango_renderer_set_matrix"
5181               version="1.8">
5182         <doc xml:whitespace="preserve">Sets the transformation matrix that will be applied when rendering.</doc>
5183         <return-value transfer-ownership="none">
5184           <type name="none" c:type="void"/>
5185         </return-value>
5186         <parameters>
5187           <parameter name="matrix" transfer-ownership="none">
5188             <doc xml:whitespace="preserve">a #PangoMatrix, or %NULL to unset any existing matrix. (No matrix set is the same as setting the identity matrix.)</doc>
5189             <type name="Matrix" c:type="PangoMatrix*"/>
5190           </parameter>
5191         </parameters>
5192       </method>
5193       <field name="parent_instance">
5194         <type name="GObject.Object" c:type="GObject"/>
5195       </field>
5196       <field name="underline">
5197         <type name="Underline" c:type="PangoUnderline"/>
5198       </field>
5199       <field name="strikethrough">
5200         <type name="gboolean" c:type="gboolean"/>
5201       </field>
5202       <field name="active_count">
5203         <type name="gint" c:type="int"/>
5204       </field>
5205       <field name="matrix">
5206         <type name="Matrix" c:type="PangoMatrix*"/>
5207       </field>
5208       <field name="priv">
5209         <type name="RendererPrivate" c:type="PangoRendererPrivate*"/>
5210       </field>
5211     </class>
5212     <record name="RendererClass"
5213             c:type="PangoRendererClass"
5214             glib:is-gtype-struct-for="Renderer"
5215             version="1.8">
5216       <doc xml:whitespace="preserve">Class structure for #PangoRenderer.</doc>
5217       <field name="parent_class">
5218         <type name="GObject.ObjectClass" c:type="GObjectClass"/>
5219       </field>
5220       <field name="draw_glyphs">
5221         <callback name="draw_glyphs">
5222           <return-value transfer-ownership="none">
5223             <type name="none" c:type="void"/>
5224           </return-value>
5225           <parameters>
5226             <parameter name="renderer" transfer-ownership="none">
5227               <type name="Renderer" c:type="PangoRenderer*"/>
5228             </parameter>
5229             <parameter name="font" transfer-ownership="none">
5230               <doc xml:whitespace="preserve">a #PangoFont</doc>
5231               <type name="Font" c:type="PangoFont*"/>
5232             </parameter>
5233             <parameter name="glyphs" transfer-ownership="none">
5234               <doc xml:whitespace="preserve">a #PangoGlyphString</doc>
5235               <type name="GlyphString" c:type="PangoGlyphString*"/>
5236             </parameter>
5237             <parameter name="x" transfer-ownership="none">
5238               <doc xml:whitespace="preserve">X position of left edge of baseline, in user space coordinates in Pango units.</doc>
5239               <type name="gint" c:type="int"/>
5240             </parameter>
5241             <parameter name="y" transfer-ownership="none">
5242               <doc xml:whitespace="preserve">Y position of left edge of baseline, in user space coordinates in Pango units.</doc>
5243               <type name="gint" c:type="int"/>
5244             </parameter>
5245           </parameters>
5246         </callback>
5247       </field>
5248       <field name="draw_rectangle">
5249         <callback name="draw_rectangle">
5250           <return-value transfer-ownership="none">
5251             <type name="none" c:type="void"/>
5252           </return-value>
5253           <parameters>
5254             <parameter name="renderer" transfer-ownership="none">
5255               <type name="Renderer" c:type="PangoRenderer*"/>
5256             </parameter>
5257             <parameter name="part" transfer-ownership="none">
5258               <doc xml:whitespace="preserve">type of object this rectangle is part of</doc>
5259               <type name="RenderPart" c:type="PangoRenderPart"/>
5260             </parameter>
5261             <parameter name="x" transfer-ownership="none">
5262               <doc xml:whitespace="preserve">X position at which to draw rectangle, in user space coordinates in Pango units</doc>
5263               <type name="gint" c:type="int"/>
5264             </parameter>
5265             <parameter name="y" transfer-ownership="none">
5266               <doc xml:whitespace="preserve">Y position at which to draw rectangle, in user space coordinates in Pango units</doc>
5267               <type name="gint" c:type="int"/>
5268             </parameter>
5269             <parameter name="width" transfer-ownership="none">
5270               <doc xml:whitespace="preserve">width of rectangle in Pango units in user space coordinates</doc>
5271               <type name="gint" c:type="int"/>
5272             </parameter>
5273             <parameter name="height" transfer-ownership="none">
5274               <doc xml:whitespace="preserve">height of rectangle in Pango units in user space coordinates</doc>
5275               <type name="gint" c:type="int"/>
5276             </parameter>
5277           </parameters>
5278         </callback>
5279       </field>
5280       <field name="draw_error_underline">
5281         <callback name="draw_error_underline">
5282           <return-value transfer-ownership="none">
5283             <type name="none" c:type="void"/>
5284           </return-value>
5285           <parameters>
5286             <parameter name="renderer" transfer-ownership="none">
5287               <type name="Renderer" c:type="PangoRenderer*"/>
5288             </parameter>
5289             <parameter name="x" transfer-ownership="none">
5290               <doc xml:whitespace="preserve">X coordinate of underline, in Pango units in user coordinate system</doc>
5291               <type name="gint" c:type="int"/>
5292             </parameter>
5293             <parameter name="y" transfer-ownership="none">
5294               <doc xml:whitespace="preserve">Y coordinate of underline, in Pango units in user coordinate system</doc>
5295               <type name="gint" c:type="int"/>
5296             </parameter>
5297             <parameter name="width" transfer-ownership="none">
5298               <doc xml:whitespace="preserve">width of underline, in Pango units in user coordinate system</doc>
5299               <type name="gint" c:type="int"/>
5300             </parameter>
5301             <parameter name="height" transfer-ownership="none">
5302               <doc xml:whitespace="preserve">height of underline, in Pango units in user coordinate system</doc>
5303               <type name="gint" c:type="int"/>
5304             </parameter>
5305           </parameters>
5306         </callback>
5307       </field>
5308       <field name="draw_shape">
5309         <callback name="draw_shape">
5310           <return-value transfer-ownership="none">
5311             <type name="none" c:type="void"/>
5312           </return-value>
5313           <parameters>
5314             <parameter name="renderer" transfer-ownership="none">
5315               <type name="Renderer" c:type="PangoRenderer*"/>
5316             </parameter>
5317             <parameter name="attr" transfer-ownership="none">
5318               <type name="AttrShape" c:type="PangoAttrShape*"/>
5319             </parameter>
5320             <parameter name="x" transfer-ownership="none">
5321               <type name="gint" c:type="int"/>
5322             </parameter>
5323             <parameter name="y" transfer-ownership="none">
5324               <type name="gint" c:type="int"/>
5325             </parameter>
5326           </parameters>
5327         </callback>
5328       </field>
5329       <field name="draw_trapezoid">
5330         <callback name="draw_trapezoid">
5331           <return-value transfer-ownership="none">
5332             <type name="none" c:type="void"/>
5333           </return-value>
5334           <parameters>
5335             <parameter name="renderer" transfer-ownership="none">
5336               <type name="Renderer" c:type="PangoRenderer*"/>
5337             </parameter>
5338             <parameter name="part" transfer-ownership="none">
5339               <doc xml:whitespace="preserve">type of object this trapezoid is part of</doc>
5340               <type name="RenderPart" c:type="PangoRenderPart"/>
5341             </parameter>
5342             <parameter name="y1_" transfer-ownership="none">
5343               <doc xml:whitespace="preserve">Y coordinate of top of trapezoid</doc>
5344               <type name="gdouble" c:type="double"/>
5345             </parameter>
5346             <parameter name="x11" transfer-ownership="none">
5347               <doc xml:whitespace="preserve">X coordinate of left end of top of trapezoid</doc>
5348               <type name="gdouble" c:type="double"/>
5349             </parameter>
5350             <parameter name="x21" transfer-ownership="none">
5351               <doc xml:whitespace="preserve">X coordinate of right end of top of trapezoid</doc>
5352               <type name="gdouble" c:type="double"/>
5353             </parameter>
5354             <parameter name="y2" transfer-ownership="none">
5355               <doc xml:whitespace="preserve">Y coordinate of bottom of trapezoid</doc>
5356               <type name="gdouble" c:type="double"/>
5357             </parameter>
5358             <parameter name="x12" transfer-ownership="none">
5359               <doc xml:whitespace="preserve">X coordinate of left end of bottom of trapezoid</doc>
5360               <type name="gdouble" c:type="double"/>
5361             </parameter>
5362             <parameter name="x22" transfer-ownership="none">
5363               <doc xml:whitespace="preserve">X coordinate of right end of bottom of trapezoid</doc>
5364               <type name="gdouble" c:type="double"/>
5365             </parameter>
5366           </parameters>
5367         </callback>
5368       </field>
5369       <field name="draw_glyph">
5370         <callback name="draw_glyph">
5371           <return-value transfer-ownership="none">
5372             <type name="none" c:type="void"/>
5373           </return-value>
5374           <parameters>
5375             <parameter name="renderer" transfer-ownership="none">
5376               <type name="Renderer" c:type="PangoRenderer*"/>
5377             </parameter>
5378             <parameter name="font" transfer-ownership="none">
5379               <doc xml:whitespace="preserve">a #PangoFont</doc>
5380               <type name="Font" c:type="PangoFont*"/>
5381             </parameter>
5382             <parameter name="glyph" transfer-ownership="none">
5383               <doc xml:whitespace="preserve">the glyph index of a single glyph</doc>
5384               <type name="Glyph" c:type="PangoGlyph"/>
5385             </parameter>
5386             <parameter name="x" transfer-ownership="none">
5387               <doc xml:whitespace="preserve">X coordinate of left edge of baseline of glyph</doc>
5388               <type name="gdouble" c:type="double"/>
5389             </parameter>
5390             <parameter name="y" transfer-ownership="none">
5391               <doc xml:whitespace="preserve">Y coordinate of left edge of baseline of glyph</doc>
5392               <type name="gdouble" c:type="double"/>
5393             </parameter>
5394           </parameters>
5395         </callback>
5396       </field>
5397       <field name="part_changed">
5398         <callback name="part_changed">
5399           <return-value transfer-ownership="none">
5400             <type name="none" c:type="void"/>
5401           </return-value>
5402           <parameters>
5403             <parameter name="renderer" transfer-ownership="none">
5404               <type name="Renderer" c:type="PangoRenderer*"/>
5405             </parameter>
5406             <parameter name="part" transfer-ownership="none">
5407               <doc xml:whitespace="preserve">the part for which rendering has changed.</doc>
5408               <type name="RenderPart" c:type="PangoRenderPart"/>
5409             </parameter>
5410           </parameters>
5411         </callback>
5412       </field>
5413       <field name="begin">
5414         <callback name="begin">
5415           <return-value transfer-ownership="none">
5416             <type name="none" c:type="void"/>
5417           </return-value>
5418           <parameters>
5419             <parameter name="renderer" transfer-ownership="none">
5420               <type name="Renderer" c:type="PangoRenderer*"/>
5421             </parameter>
5422           </parameters>
5423         </callback>
5424       </field>
5425       <field name="end">
5426         <callback name="end">
5427           <return-value transfer-ownership="none">
5428             <type name="none" c:type="void"/>
5429           </return-value>
5430           <parameters>
5431             <parameter name="renderer" transfer-ownership="none">
5432               <type name="Renderer" c:type="PangoRenderer*"/>
5433             </parameter>
5434           </parameters>
5435         </callback>
5436       </field>
5437       <field name="prepare_run">
5438         <callback name="prepare_run">
5439           <return-value transfer-ownership="none">
5440             <type name="none" c:type="void"/>
5441           </return-value>
5442           <parameters>
5443             <parameter name="renderer" transfer-ownership="none">
5444               <type name="Renderer" c:type="PangoRenderer*"/>
5445             </parameter>
5446             <parameter name="run" transfer-ownership="none">
5447               <type name="LayoutRun" c:type="PangoLayoutRun*"/>
5448             </parameter>
5449           </parameters>
5450         </callback>
5451       </field>
5452       <field name="draw_glyph_item">
5453         <callback name="draw_glyph_item">
5454           <return-value transfer-ownership="none">
5455             <type name="none" c:type="void"/>
5456           </return-value>
5457           <parameters>
5458             <parameter name="renderer" transfer-ownership="none">
5459               <type name="Renderer" c:type="PangoRenderer*"/>
5460             </parameter>
5461             <parameter name="text" transfer-ownership="none">
5462               <doc xml:whitespace="preserve">the UTF-8 text that @glyph_item refers to, or %NULL</doc>
5463               <type name="utf8" c:type="char*"/>
5464             </parameter>
5465             <parameter name="glyph_item" transfer-ownership="none">
5466               <doc xml:whitespace="preserve">a #PangoGlyphItem</doc>
5467               <type name="GlyphItem" c:type="PangoGlyphItem*"/>
5468             </parameter>
5469             <parameter name="x" transfer-ownership="none">
5470               <doc xml:whitespace="preserve">X position of left edge of baseline, in user space coordinates in Pango units.</doc>
5471               <type name="gint" c:type="int"/>
5472             </parameter>
5473             <parameter name="y" transfer-ownership="none">
5474               <doc xml:whitespace="preserve">Y position of left edge of baseline, in user space coordinates in Pango units.</doc>
5475               <type name="gint" c:type="int"/>
5476             </parameter>
5477           </parameters>
5478         </callback>
5479       </field>
5480       <field name="_pango_reserved2" introspectable="0">
5481         <callback name="_pango_reserved2">
5482           <return-value transfer-ownership="none">
5483             <type name="none" c:type="void"/>
5484           </return-value>
5485         </callback>
5486       </field>
5487       <field name="_pango_reserved3" introspectable="0">
5488         <callback name="_pango_reserved3">
5489           <return-value transfer-ownership="none">
5490             <type name="none" c:type="void"/>
5491           </return-value>
5492         </callback>
5493       </field>
5494       <field name="_pango_reserved4" introspectable="0">
5495         <callback name="_pango_reserved4">
5496           <return-value transfer-ownership="none">
5497             <type name="none" c:type="void"/>
5498           </return-value>
5499         </callback>
5500       </field>
5501     </record>
5502     <record name="RendererPrivate" c:type="PangoRendererPrivate" disguised="1">
5503     </record>
5504     <constant name="SCALE" value="1024">
5505       <type name="gint" c:type="gint"/>
5506     </constant>
5507     <enumeration name="Script"
5508                  glib:type-name="PangoScript"
5509                  glib:get-type="pango_script_get_type"
5510                  c:type="PangoScript">
5511       <member name="invalid_code"
5512               value="-1"
5513               c:identifier="PANGO_SCRIPT_INVALID_CODE"
5514               glib:nick="invalid-code"/>
5515       <member name="common"
5516               value="0"
5517               c:identifier="PANGO_SCRIPT_COMMON"
5518               glib:nick="common"/>
5519       <member name="inherited"
5520               value="1"
5521               c:identifier="PANGO_SCRIPT_INHERITED"
5522               glib:nick="inherited"/>
5523       <member name="arabic"
5524               value="2"
5525               c:identifier="PANGO_SCRIPT_ARABIC"
5526               glib:nick="arabic"/>
5527       <member name="armenian"
5528               value="3"
5529               c:identifier="PANGO_SCRIPT_ARMENIAN"
5530               glib:nick="armenian"/>
5531       <member name="bengali"
5532               value="4"
5533               c:identifier="PANGO_SCRIPT_BENGALI"
5534               glib:nick="bengali"/>
5535       <member name="bopomofo"
5536               value="5"
5537               c:identifier="PANGO_SCRIPT_BOPOMOFO"
5538               glib:nick="bopomofo"/>
5539       <member name="cherokee"
5540               value="6"
5541               c:identifier="PANGO_SCRIPT_CHEROKEE"
5542               glib:nick="cherokee"/>
5543       <member name="coptic"
5544               value="7"
5545               c:identifier="PANGO_SCRIPT_COPTIC"
5546               glib:nick="coptic"/>
5547       <member name="cyrillic"
5548               value="8"
5549               c:identifier="PANGO_SCRIPT_CYRILLIC"
5550               glib:nick="cyrillic"/>
5551       <member name="deseret"
5552               value="9"
5553               c:identifier="PANGO_SCRIPT_DESERET"
5554               glib:nick="deseret"/>
5555       <member name="devanagari"
5556               value="10"
5557               c:identifier="PANGO_SCRIPT_DEVANAGARI"
5558               glib:nick="devanagari"/>
5559       <member name="ethiopic"
5560               value="11"
5561               c:identifier="PANGO_SCRIPT_ETHIOPIC"
5562               glib:nick="ethiopic"/>
5563       <member name="georgian"
5564               value="12"
5565               c:identifier="PANGO_SCRIPT_GEORGIAN"
5566               glib:nick="georgian"/>
5567       <member name="gothic"
5568               value="13"
5569               c:identifier="PANGO_SCRIPT_GOTHIC"
5570               glib:nick="gothic"/>
5571       <member name="greek"
5572               value="14"
5573               c:identifier="PANGO_SCRIPT_GREEK"
5574               glib:nick="greek"/>
5575       <member name="gujarati"
5576               value="15"
5577               c:identifier="PANGO_SCRIPT_GUJARATI"
5578               glib:nick="gujarati"/>
5579       <member name="gurmukhi"
5580               value="16"
5581               c:identifier="PANGO_SCRIPT_GURMUKHI"
5582               glib:nick="gurmukhi"/>
5583       <member name="han"
5584               value="17"
5585               c:identifier="PANGO_SCRIPT_HAN"
5586               glib:nick="han"/>
5587       <member name="hangul"
5588               value="18"
5589               c:identifier="PANGO_SCRIPT_HANGUL"
5590               glib:nick="hangul"/>
5591       <member name="hebrew"
5592               value="19"
5593               c:identifier="PANGO_SCRIPT_HEBREW"
5594               glib:nick="hebrew"/>
5595       <member name="hiragana"
5596               value="20"
5597               c:identifier="PANGO_SCRIPT_HIRAGANA"
5598               glib:nick="hiragana"/>
5599       <member name="kannada"
5600               value="21"
5601               c:identifier="PANGO_SCRIPT_KANNADA"
5602               glib:nick="kannada"/>
5603       <member name="katakana"
5604               value="22"
5605               c:identifier="PANGO_SCRIPT_KATAKANA"
5606               glib:nick="katakana"/>
5607       <member name="khmer"
5608               value="23"
5609               c:identifier="PANGO_SCRIPT_KHMER"
5610               glib:nick="khmer"/>
5611       <member name="lao"
5612               value="24"
5613               c:identifier="PANGO_SCRIPT_LAO"
5614               glib:nick="lao"/>
5615       <member name="latin"
5616               value="25"
5617               c:identifier="PANGO_SCRIPT_LATIN"
5618               glib:nick="latin"/>
5619       <member name="malayalam"
5620               value="26"
5621               c:identifier="PANGO_SCRIPT_MALAYALAM"
5622               glib:nick="malayalam"/>
5623       <member name="mongolian"
5624               value="27"
5625               c:identifier="PANGO_SCRIPT_MONGOLIAN"
5626               glib:nick="mongolian"/>
5627       <member name="myanmar"
5628               value="28"
5629               c:identifier="PANGO_SCRIPT_MYANMAR"
5630               glib:nick="myanmar"/>
5631       <member name="ogham"
5632               value="29"
5633               c:identifier="PANGO_SCRIPT_OGHAM"
5634               glib:nick="ogham"/>
5635       <member name="old_italic"
5636               value="30"
5637               c:identifier="PANGO_SCRIPT_OLD_ITALIC"
5638               glib:nick="old-italic"/>
5639       <member name="oriya"
5640               value="31"
5641               c:identifier="PANGO_SCRIPT_ORIYA"
5642               glib:nick="oriya"/>
5643       <member name="runic"
5644               value="32"
5645               c:identifier="PANGO_SCRIPT_RUNIC"
5646               glib:nick="runic"/>
5647       <member name="sinhala"
5648               value="33"
5649               c:identifier="PANGO_SCRIPT_SINHALA"
5650               glib:nick="sinhala"/>
5651       <member name="syriac"
5652               value="34"
5653               c:identifier="PANGO_SCRIPT_SYRIAC"
5654               glib:nick="syriac"/>
5655       <member name="tamil"
5656               value="35"
5657               c:identifier="PANGO_SCRIPT_TAMIL"
5658               glib:nick="tamil"/>
5659       <member name="telugu"
5660               value="36"
5661               c:identifier="PANGO_SCRIPT_TELUGU"
5662               glib:nick="telugu"/>
5663       <member name="thaana"
5664               value="37"
5665               c:identifier="PANGO_SCRIPT_THAANA"
5666               glib:nick="thaana"/>
5667       <member name="thai"
5668               value="38"
5669               c:identifier="PANGO_SCRIPT_THAI"
5670               glib:nick="thai"/>
5671       <member name="tibetan"
5672               value="39"
5673               c:identifier="PANGO_SCRIPT_TIBETAN"
5674               glib:nick="tibetan"/>
5675       <member name="canadian_aboriginal"
5676               value="40"
5677               c:identifier="PANGO_SCRIPT_CANADIAN_ABORIGINAL"
5678               glib:nick="canadian-aboriginal"/>
5679       <member name="yi"
5680               value="41"
5681               c:identifier="PANGO_SCRIPT_YI"
5682               glib:nick="yi"/>
5683       <member name="tagalog"
5684               value="42"
5685               c:identifier="PANGO_SCRIPT_TAGALOG"
5686               glib:nick="tagalog"/>
5687       <member name="hanunoo"
5688               value="43"
5689               c:identifier="PANGO_SCRIPT_HANUNOO"
5690               glib:nick="hanunoo"/>
5691       <member name="buhid"
5692               value="44"
5693               c:identifier="PANGO_SCRIPT_BUHID"
5694               glib:nick="buhid"/>
5695       <member name="tagbanwa"
5696               value="45"
5697               c:identifier="PANGO_SCRIPT_TAGBANWA"
5698               glib:nick="tagbanwa"/>
5699       <member name="braille"
5700               value="46"
5701               c:identifier="PANGO_SCRIPT_BRAILLE"
5702               glib:nick="braille"/>
5703       <member name="cypriot"
5704               value="47"
5705               c:identifier="PANGO_SCRIPT_CYPRIOT"
5706               glib:nick="cypriot"/>
5707       <member name="limbu"
5708               value="48"
5709               c:identifier="PANGO_SCRIPT_LIMBU"
5710               glib:nick="limbu"/>
5711       <member name="osmanya"
5712               value="49"
5713               c:identifier="PANGO_SCRIPT_OSMANYA"
5714               glib:nick="osmanya"/>
5715       <member name="shavian"
5716               value="50"
5717               c:identifier="PANGO_SCRIPT_SHAVIAN"
5718               glib:nick="shavian"/>
5719       <member name="linear_b"
5720               value="51"
5721               c:identifier="PANGO_SCRIPT_LINEAR_B"
5722               glib:nick="linear-b"/>
5723       <member name="tai_le"
5724               value="52"
5725               c:identifier="PANGO_SCRIPT_TAI_LE"
5726               glib:nick="tai-le"/>
5727       <member name="ugaritic"
5728               value="53"
5729               c:identifier="PANGO_SCRIPT_UGARITIC"
5730               glib:nick="ugaritic"/>
5731       <member name="new_tai_lue"
5732               value="54"
5733               c:identifier="PANGO_SCRIPT_NEW_TAI_LUE"
5734               glib:nick="new-tai-lue"/>
5735       <member name="buginese"
5736               value="55"
5737               c:identifier="PANGO_SCRIPT_BUGINESE"
5738               glib:nick="buginese"/>
5739       <member name="glagolitic"
5740               value="56"
5741               c:identifier="PANGO_SCRIPT_GLAGOLITIC"
5742               glib:nick="glagolitic"/>
5743       <member name="tifinagh"
5744               value="57"
5745               c:identifier="PANGO_SCRIPT_TIFINAGH"
5746               glib:nick="tifinagh"/>
5747       <member name="syloti_nagri"
5748               value="58"
5749               c:identifier="PANGO_SCRIPT_SYLOTI_NAGRI"
5750               glib:nick="syloti-nagri"/>
5751       <member name="old_persian"
5752               value="59"
5753               c:identifier="PANGO_SCRIPT_OLD_PERSIAN"
5754               glib:nick="old-persian"/>
5755       <member name="kharoshthi"
5756               value="60"
5757               c:identifier="PANGO_SCRIPT_KHAROSHTHI"
5758               glib:nick="kharoshthi"/>
5759       <member name="unknown"
5760               value="61"
5761               c:identifier="PANGO_SCRIPT_UNKNOWN"
5762               glib:nick="unknown"/>
5763       <member name="balinese"
5764               value="62"
5765               c:identifier="PANGO_SCRIPT_BALINESE"
5766               glib:nick="balinese"/>
5767       <member name="cuneiform"
5768               value="63"
5769               c:identifier="PANGO_SCRIPT_CUNEIFORM"
5770               glib:nick="cuneiform"/>
5771       <member name="phoenician"
5772               value="64"
5773               c:identifier="PANGO_SCRIPT_PHOENICIAN"
5774               glib:nick="phoenician"/>
5775       <member name="phags_pa"
5776               value="65"
5777               c:identifier="PANGO_SCRIPT_PHAGS_PA"
5778               glib:nick="phags-pa"/>
5779       <member name="nko"
5780               value="66"
5781               c:identifier="PANGO_SCRIPT_NKO"
5782               glib:nick="nko"/>
5783       <member name="kayah_li"
5784               value="67"
5785               c:identifier="PANGO_SCRIPT_KAYAH_LI"
5786               glib:nick="kayah-li"/>
5787       <member name="lepcha"
5788               value="68"
5789               c:identifier="PANGO_SCRIPT_LEPCHA"
5790               glib:nick="lepcha"/>
5791       <member name="rejang"
5792               value="69"
5793               c:identifier="PANGO_SCRIPT_REJANG"
5794               glib:nick="rejang"/>
5795       <member name="sundanese"
5796               value="70"
5797               c:identifier="PANGO_SCRIPT_SUNDANESE"
5798               glib:nick="sundanese"/>
5799       <member name="saurashtra"
5800               value="71"
5801               c:identifier="PANGO_SCRIPT_SAURASHTRA"
5802               glib:nick="saurashtra"/>
5803       <member name="cham"
5804               value="72"
5805               c:identifier="PANGO_SCRIPT_CHAM"
5806               glib:nick="cham"/>
5807       <member name="ol_chiki"
5808               value="73"
5809               c:identifier="PANGO_SCRIPT_OL_CHIKI"
5810               glib:nick="ol-chiki"/>
5811       <member name="vai"
5812               value="74"
5813               c:identifier="PANGO_SCRIPT_VAI"
5814               glib:nick="vai"/>
5815       <member name="carian"
5816               value="75"
5817               c:identifier="PANGO_SCRIPT_CARIAN"
5818               glib:nick="carian"/>
5819       <member name="lycian"
5820               value="76"
5821               c:identifier="PANGO_SCRIPT_LYCIAN"
5822               glib:nick="lycian"/>
5823       <member name="lydian"
5824               value="77"
5825               c:identifier="PANGO_SCRIPT_LYDIAN"
5826               glib:nick="lydian"/>
5827     </enumeration>
5828     <record name="ScriptIter" c:type="PangoScriptIter" disguised="1">
5829       <doc xml:whitespace="preserve">A #PangoScriptIter is used to iterate through a string
5830 and identify ranges in different scripts.</doc>
5831       <method name="free" c:identifier="pango_script_iter_free" version="1.4">
5832         <doc xml:whitespace="preserve">Frees a #PangoScriptIter created with pango_script_iter_new().</doc>
5833         <return-value transfer-ownership="none">
5834           <type name="none" c:type="void"/>
5835         </return-value>
5836       </method>
5837       <method name="get_range"
5838               c:identifier="pango_script_iter_get_range"
5839               version="1.4">
5840         <doc xml:whitespace="preserve">Gets information about the range to which @iter currently points.
5841 The range is the set of locations p where *start &lt;= p &lt; *end.
5842 (That is, it doesn't include the character stored at *end)</doc>
5843         <return-value transfer-ownership="none">
5844           <type name="none" c:type="void"/>
5845         </return-value>
5846         <parameters>
5847           <parameter name="start" transfer-ownership="none">
5848             <doc xml:whitespace="preserve">location to store start position of the range, or %NULL</doc>
5849             <type name="utf8" c:type="char**"/>
5850           </parameter>
5851           <parameter name="end" transfer-ownership="none">
5852             <doc xml:whitespace="preserve">location to store end position of the range, or %NULL</doc>
5853             <type name="utf8" c:type="char**"/>
5854           </parameter>
5855           <parameter name="script" transfer-ownership="none">
5856             <doc xml:whitespace="preserve">location to store script for range, or %NULL</doc>
5857             <type name="Script" c:type="PangoScript*"/>
5858           </parameter>
5859         </parameters>
5860       </method>
5861       <method name="next" c:identifier="pango_script_iter_next" version="1.4">
5862         <doc xml:whitespace="preserve">Advances a #PangoScriptIter to the next range. If @iter
5863 is already at the end, it is left unchanged and %FALSE
5864 is returned.</doc>
5865         <return-value transfer-ownership="none">
5866           <doc xml:whitespace="preserve">%TRUE if @iter was successfully advanced.</doc>
5867           <type name="gboolean" c:type="gboolean"/>
5868         </return-value>
5869       </method>
5870     </record>
5871     <enumeration name="Stretch"
5872                  glib:type-name="PangoStretch"
5873                  glib:get-type="pango_stretch_get_type"
5874                  c:type="PangoStretch">
5875       <member name="ultra_condensed"
5876               value="0"
5877               c:identifier="PANGO_STRETCH_ULTRA_CONDENSED"
5878               glib:nick="ultra-condensed"/>
5879       <member name="extra_condensed"
5880               value="1"
5881               c:identifier="PANGO_STRETCH_EXTRA_CONDENSED"
5882               glib:nick="extra-condensed"/>
5883       <member name="condensed"
5884               value="2"
5885               c:identifier="PANGO_STRETCH_CONDENSED"
5886               glib:nick="condensed"/>
5887       <member name="semi_condensed"
5888               value="3"
5889               c:identifier="PANGO_STRETCH_SEMI_CONDENSED"
5890               glib:nick="semi-condensed"/>
5891       <member name="normal"
5892               value="4"
5893               c:identifier="PANGO_STRETCH_NORMAL"
5894               glib:nick="normal"/>
5895       <member name="semi_expanded"
5896               value="5"
5897               c:identifier="PANGO_STRETCH_SEMI_EXPANDED"
5898               glib:nick="semi-expanded"/>
5899       <member name="expanded"
5900               value="6"
5901               c:identifier="PANGO_STRETCH_EXPANDED"
5902               glib:nick="expanded"/>
5903       <member name="extra_expanded"
5904               value="7"
5905               c:identifier="PANGO_STRETCH_EXTRA_EXPANDED"
5906               glib:nick="extra-expanded"/>
5907       <member name="ultra_expanded"
5908               value="8"
5909               c:identifier="PANGO_STRETCH_ULTRA_EXPANDED"
5910               glib:nick="ultra-expanded"/>
5911     </enumeration>
5912     <enumeration name="Style"
5913                  glib:type-name="PangoStyle"
5914                  glib:get-type="pango_style_get_type"
5915                  c:type="PangoStyle">
5916       <doc xml:whitespace="preserve">An enumeration specifying the various slant styles possible for a font.</doc>
5917       <member name="normal"
5918               value="0"
5919               c:identifier="PANGO_STYLE_NORMAL"
5920               glib:nick="normal"/>
5921       <member name="oblique"
5922               value="1"
5923               c:identifier="PANGO_STYLE_OBLIQUE"
5924               glib:nick="oblique"/>
5925       <member name="italic"
5926               value="2"
5927               c:identifier="PANGO_STYLE_ITALIC"
5928               glib:nick="italic"/>
5929     </enumeration>
5930     <enumeration name="TabAlign"
5931                  glib:type-name="PangoTabAlign"
5932                  glib:get-type="pango_tab_align_get_type"
5933                  c:type="PangoTabAlign">
5934       <member name="left"
5935               value="0"
5936               c:identifier="PANGO_TAB_LEFT"
5937               glib:nick="left"/>
5938     </enumeration>
5939     <record name="TabArray"
5940             c:type="PangoTabArray"
5941             glib:type-name="PangoTabArray"
5942             glib:get-type="pango_tab_array_get_type"
5943             c:symbol-prefix="tab_array">
5944       <constructor name="new" c:identifier="pango_tab_array_new">
5945         <doc xml:whitespace="preserve">Creates an array of @initial_size tab stops. Tab stops are specified in
5946 pixel units if @positions_in_pixels is %TRUE, otherwise in Pango
5947 units. All stops are initially at position 0.
5948 be freed with pango_tab_array_free().</doc>
5949         <return-value transfer-ownership="full">
5950           <doc xml:whitespace="preserve">the newly allocated #PangoTabArray, which should</doc>
5951           <type name="TabArray" c:type="PangoTabArray*"/>
5952         </return-value>
5953         <parameters>
5954           <parameter name="initial_size" transfer-ownership="none">
5955             <doc xml:whitespace="preserve">Initial number of tab stops to allocate, can be 0</doc>
5956             <type name="gint" c:type="gint"/>
5957           </parameter>
5958           <parameter name="positions_in_pixels" transfer-ownership="none">
5959             <doc xml:whitespace="preserve">whether positions are in pixel units</doc>
5960             <type name="gboolean" c:type="gboolean"/>
5961           </parameter>
5962         </parameters>
5963       </constructor>
5964       <constructor name="new_with_positions"
5965                    c:identifier="pango_tab_array_new_with_positions"
5966                    introspectable="0">
5967         <doc xml:whitespace="preserve">This is a convenience function that creates a #PangoTabArray
5968 and allows you to specify the alignment and position of each
5969 tab stop. You &lt;emphasis&gt;must&lt;/emphasis&gt; provide an alignment
5970 and position for @size tab stops.
5971 be freed with pango_tab_array_free().</doc>
5972         <return-value transfer-ownership="full">
5973           <doc xml:whitespace="preserve">the newly allocated #PangoTabArray, which should</doc>
5974           <type name="TabArray" c:type="PangoTabArray*"/>
5975         </return-value>
5976         <parameters>
5977           <parameter name="size" transfer-ownership="none">
5978             <doc xml:whitespace="preserve">number of tab stops in the array</doc>
5979             <type name="gint" c:type="gint"/>
5980           </parameter>
5981           <parameter name="positions_in_pixels" transfer-ownership="none">
5982             <doc xml:whitespace="preserve">whether positions are in pixel units</doc>
5983             <type name="gboolean" c:type="gboolean"/>
5984           </parameter>
5985           <parameter name="first_alignment" transfer-ownership="none">
5986             <doc xml:whitespace="preserve">alignment of first tab stop</doc>
5987             <type name="TabAlign" c:type="PangoTabAlign"/>
5988           </parameter>
5989           <parameter name="first_position" transfer-ownership="none">
5990             <doc xml:whitespace="preserve">position of first tab stop</doc>
5991             <type name="gint" c:type="gint"/>
5992           </parameter>
5993           <parameter transfer-ownership="none">
5994             <varargs>
5995             </varargs>
5996           </parameter>
5997         </parameters>
5998       </constructor>
5999       <method name="copy" c:identifier="pango_tab_array_copy">
6000         <doc xml:whitespace="preserve">Copies a #PangoTabArray
6001 be freed with pango_tab_array_free().</doc>
6002         <return-value transfer-ownership="full">
6003           <doc xml:whitespace="preserve">the newly allocated #PangoTabArray, which should</doc>
6004           <type name="TabArray" c:type="PangoTabArray*"/>
6005         </return-value>
6006       </method>
6007       <method name="free" c:identifier="pango_tab_array_free">
6008         <doc xml:whitespace="preserve">Frees a tab array and associated resources.</doc>
6009         <return-value transfer-ownership="none">
6010           <type name="none" c:type="void"/>
6011         </return-value>
6012       </method>
6013       <method name="get_positions_in_pixels"
6014               c:identifier="pango_tab_array_get_positions_in_pixels">
6015         <doc xml:whitespace="preserve">Returns %TRUE if the tab positions are in pixels, %FALSE if they are
6016 in Pango units.</doc>
6017         <return-value transfer-ownership="none">
6018           <doc xml:whitespace="preserve">whether positions are in pixels.</doc>
6019           <type name="gboolean" c:type="gboolean"/>
6020         </return-value>
6021       </method>
6022       <method name="get_size" c:identifier="pango_tab_array_get_size">
6023         <doc xml:whitespace="preserve">Gets the number of tab stops in @tab_array.</doc>
6024         <return-value transfer-ownership="none">
6025           <doc xml:whitespace="preserve">the number of tab stops in the array.</doc>
6026           <type name="gint" c:type="gint"/>
6027         </return-value>
6028       </method>
6029       <method name="get_tab" c:identifier="pango_tab_array_get_tab">
6030         <doc xml:whitespace="preserve">Gets the alignment and position of a tab stop.</doc>
6031         <return-value transfer-ownership="none">
6032           <type name="none" c:type="void"/>
6033         </return-value>
6034         <parameters>
6035           <parameter name="tab_index" transfer-ownership="none">
6036             <doc xml:whitespace="preserve">tab stop index</doc>
6037             <type name="gint" c:type="gint"/>
6038           </parameter>
6039           <parameter name="alignment" transfer-ownership="none">
6040             <doc xml:whitespace="preserve">location to store alignment, or %NULL</doc>
6041             <type name="TabAlign" c:type="PangoTabAlign*"/>
6042           </parameter>
6043           <parameter name="location" transfer-ownership="none">
6044             <doc xml:whitespace="preserve">location to store tab position, or %NULL</doc>
6045             <type name="gint" c:type="gint*"/>
6046           </parameter>
6047         </parameters>
6048       </method>
6049       <method name="get_tabs" c:identifier="pango_tab_array_get_tabs">
6050         <doc xml:whitespace="preserve">If non-%NULL, @alignments and @locations are filled with allocated
6051 arrays of length pango_tab_array_get_size(). You must free the
6052 returned array.</doc>
6053         <return-value transfer-ownership="none">
6054           <type name="none" c:type="void"/>
6055         </return-value>
6056         <parameters>
6057           <parameter name="alignments" transfer-ownership="none">
6058             <doc xml:whitespace="preserve">location to store an array of tab stop alignments, or %NULL</doc>
6059             <type name="TabAlign" c:type="PangoTabAlign**"/>
6060           </parameter>
6061           <parameter name="locations" transfer-ownership="none">
6062             <doc xml:whitespace="preserve">location to store an array of tab positions, or %NULL</doc>
6063             <type name="gint" c:type="gint**"/>
6064           </parameter>
6065         </parameters>
6066       </method>
6067       <method name="resize" c:identifier="pango_tab_array_resize">
6068         <doc xml:whitespace="preserve">Resizes a tab array. You must subsequently initialize any tabs that
6069 were added as a result of growing the array.</doc>
6070         <return-value transfer-ownership="none">
6071           <type name="none" c:type="void"/>
6072         </return-value>
6073         <parameters>
6074           <parameter name="new_size" transfer-ownership="none">
6075             <doc xml:whitespace="preserve">new size of the array</doc>
6076             <type name="gint" c:type="gint"/>
6077           </parameter>
6078         </parameters>
6079       </method>
6080       <method name="set_tab" c:identifier="pango_tab_array_set_tab">
6081         <doc xml:whitespace="preserve">Sets the alignment and location of a tab stop.
6082 implementation.</doc>
6083         <return-value transfer-ownership="none">
6084           <type name="none" c:type="void"/>
6085         </return-value>
6086         <parameters>
6087           <parameter name="tab_index" transfer-ownership="none">
6088             <doc xml:whitespace="preserve">the index of a tab stop</doc>
6089             <type name="gint" c:type="gint"/>
6090           </parameter>
6091           <parameter name="alignment" transfer-ownership="none">
6092             <doc xml:whitespace="preserve">tab alignment</doc>
6093             <type name="TabAlign" c:type="PangoTabAlign"/>
6094           </parameter>
6095           <parameter name="location" transfer-ownership="none">
6096             <doc xml:whitespace="preserve">tab location in Pango units</doc>
6097             <type name="gint" c:type="gint"/>
6098           </parameter>
6099         </parameters>
6100       </method>
6101     </record>
6102     <constant name="UNKNOWN_GLYPH_HEIGHT" value="14">
6103       <type name="gint" c:type="gint"/>
6104     </constant>
6105     <constant name="UNKNOWN_GLYPH_WIDTH" value="10">
6106       <type name="gint" c:type="gint"/>
6107     </constant>
6108     <enumeration name="Underline"
6109                  glib:type-name="PangoUnderline"
6110                  glib:get-type="pango_underline_get_type"
6111                  c:type="PangoUnderline">
6112       <member name="none"
6113               value="0"
6114               c:identifier="PANGO_UNDERLINE_NONE"
6115               glib:nick="none"/>
6116       <member name="single"
6117               value="1"
6118               c:identifier="PANGO_UNDERLINE_SINGLE"
6119               glib:nick="single"/>
6120       <member name="double"
6121               value="2"
6122               c:identifier="PANGO_UNDERLINE_DOUBLE"
6123               glib:nick="double"/>
6124       <member name="low"
6125               value="3"
6126               c:identifier="PANGO_UNDERLINE_LOW"
6127               glib:nick="low"/>
6128       <member name="error"
6129               value="4"
6130               c:identifier="PANGO_UNDERLINE_ERROR"
6131               glib:nick="error"/>
6132     </enumeration>
6133     <enumeration name="Variant"
6134                  glib:type-name="PangoVariant"
6135                  glib:get-type="pango_variant_get_type"
6136                  c:type="PangoVariant">
6137       <member name="normal"
6138               value="0"
6139               c:identifier="PANGO_VARIANT_NORMAL"
6140               glib:nick="normal"/>
6141       <member name="small_caps"
6142               value="1"
6143               c:identifier="PANGO_VARIANT_SMALL_CAPS"
6144               glib:nick="small-caps"/>
6145     </enumeration>
6146     <enumeration name="Weight"
6147                  glib:type-name="PangoWeight"
6148                  glib:get-type="pango_weight_get_type"
6149                  c:type="PangoWeight">
6150       <member name="thin"
6151               value="100"
6152               c:identifier="PANGO_WEIGHT_THIN"
6153               glib:nick="thin"/>
6154       <member name="ultralight"
6155               value="200"
6156               c:identifier="PANGO_WEIGHT_ULTRALIGHT"
6157               glib:nick="ultralight"/>
6158       <member name="light"
6159               value="300"
6160               c:identifier="PANGO_WEIGHT_LIGHT"
6161               glib:nick="light"/>
6162       <member name="book"
6163               value="380"
6164               c:identifier="PANGO_WEIGHT_BOOK"
6165               glib:nick="book"/>
6166       <member name="normal"
6167               value="400"
6168               c:identifier="PANGO_WEIGHT_NORMAL"
6169               glib:nick="normal"/>
6170       <member name="medium"
6171               value="500"
6172               c:identifier="PANGO_WEIGHT_MEDIUM"
6173               glib:nick="medium"/>
6174       <member name="semibold"
6175               value="600"
6176               c:identifier="PANGO_WEIGHT_SEMIBOLD"
6177               glib:nick="semibold"/>
6178       <member name="bold"
6179               value="700"
6180               c:identifier="PANGO_WEIGHT_BOLD"
6181               glib:nick="bold"/>
6182       <member name="ultrabold"
6183               value="800"
6184               c:identifier="PANGO_WEIGHT_ULTRABOLD"
6185               glib:nick="ultrabold"/>
6186       <member name="heavy"
6187               value="900"
6188               c:identifier="PANGO_WEIGHT_HEAVY"
6189               glib:nick="heavy"/>
6190       <member name="ultraheavy"
6191               value="1000"
6192               c:identifier="PANGO_WEIGHT_ULTRAHEAVY"
6193               glib:nick="ultraheavy"/>
6194     </enumeration>
6195     <enumeration name="WrapMode"
6196                  glib:type-name="PangoWrapMode"
6197                  glib:get-type="pango_wrap_mode_get_type"
6198                  c:type="PangoWrapMode">
6199       <member name="word"
6200               value="0"
6201               c:identifier="PANGO_WRAP_WORD"
6202               glib:nick="word"/>
6203       <member name="char"
6204               value="1"
6205               c:identifier="PANGO_WRAP_CHAR"
6206               glib:nick="char"/>
6207       <member name="word_char"
6208               value="2"
6209               c:identifier="PANGO_WRAP_WORD_CHAR"
6210               glib:nick="word-char"/>
6211     </enumeration>
6212     <record name="_ScriptForLang" c:type="_PangoScriptForLang">
6213       <field name="lang" writable="1">
6214         <array zero-terminated="0" c:type="gchar" fixed-size="7">
6215           <type name="gchar" c:type="char"/>
6216         </array>
6217       </field>
6218       <field name="scripts" writable="1">
6219         <array zero-terminated="0" c:type="PangoScript" fixed-size="3">
6220           <type name="Script" c:type="PangoScript"/>
6221         </array>
6222       </field>
6223     </record>
6224     <function name="attr_background_new"
6225               c:identifier="pango_attr_background_new"
6226               introspectable="0">
6227       <doc xml:whitespace="preserve">Create a new background color attribute.
6228 freed with pango_attribute_destroy().</doc>
6229       <return-value>
6230         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6231         <type name="Attribute" c:type="PangoAttribute*"/>
6232       </return-value>
6233       <parameters>
6234         <parameter name="red" transfer-ownership="none">
6235           <doc xml:whitespace="preserve">the red value (ranging from 0 to 65535)</doc>
6236           <type name="guint16" c:type="guint16"/>
6237         </parameter>
6238         <parameter name="green" transfer-ownership="none">
6239           <doc xml:whitespace="preserve">the green value</doc>
6240           <type name="guint16" c:type="guint16"/>
6241         </parameter>
6242         <parameter name="blue" transfer-ownership="none">
6243           <doc xml:whitespace="preserve">the blue value</doc>
6244           <type name="guint16" c:type="guint16"/>
6245         </parameter>
6246       </parameters>
6247     </function>
6248     <function name="attr_fallback_new"
6249               c:identifier="pango_attr_fallback_new"
6250               version="1.4"
6251               introspectable="0">
6252       <doc xml:whitespace="preserve">Create a new font fallback attribute.
6253 If fallback is disabled, characters will only be used from the
6254 closest matching font on the system. No fallback will be done to
6255 other fonts on the system that might contain the characters in the
6256 text.
6257 freed with pango_attribute_destroy().</doc>
6258       <return-value>
6259         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6260         <type name="Attribute" c:type="PangoAttribute*"/>
6261       </return-value>
6262       <parameters>
6263         <parameter name="enable_fallback" transfer-ownership="none">
6264           <doc xml:whitespace="preserve">%TRUE if we should fall back on other fonts for characters the active font is missing.</doc>
6265           <type name="gboolean" c:type="gboolean"/>
6266         </parameter>
6267       </parameters>
6268     </function>
6269     <function name="attr_family_new"
6270               c:identifier="pango_attr_family_new"
6271               introspectable="0">
6272       <doc xml:whitespace="preserve">Create a new font family attribute.
6273 freed with pango_attribute_destroy().</doc>
6274       <return-value>
6275         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6276         <type name="Attribute" c:type="PangoAttribute*"/>
6277       </return-value>
6278       <parameters>
6279         <parameter name="family" transfer-ownership="none">
6280           <doc xml:whitespace="preserve">the family or comma separated list of families</doc>
6281           <type name="utf8" c:type="char*"/>
6282         </parameter>
6283       </parameters>
6284     </function>
6285     <function name="attr_font_desc_new"
6286               c:identifier="pango_attr_font_desc_new"
6287               introspectable="0">
6288       <doc xml:whitespace="preserve">Create a new font description attribute. This attribute
6289 allows setting family, style, weight, variant, stretch,
6290 and size simultaneously.
6291 freed with pango_attribute_destroy().</doc>
6292       <return-value>
6293         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6294         <type name="Attribute" c:type="PangoAttribute*"/>
6295       </return-value>
6296       <parameters>
6297         <parameter name="desc" transfer-ownership="none">
6298           <doc xml:whitespace="preserve">the font description</doc>
6299           <type name="FontDescription" c:type="PangoFontDescription*"/>
6300         </parameter>
6301       </parameters>
6302     </function>
6303     <function name="attr_foreground_new"
6304               c:identifier="pango_attr_foreground_new"
6305               introspectable="0">
6306       <doc xml:whitespace="preserve">Create a new foreground color attribute.
6307 freed with pango_attribute_destroy().</doc>
6308       <return-value>
6309         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6310         <type name="Attribute" c:type="PangoAttribute*"/>
6311       </return-value>
6312       <parameters>
6313         <parameter name="red" transfer-ownership="none">
6314           <doc xml:whitespace="preserve">the red value (ranging from 0 to 65535)</doc>
6315           <type name="guint16" c:type="guint16"/>
6316         </parameter>
6317         <parameter name="green" transfer-ownership="none">
6318           <doc xml:whitespace="preserve">the green value</doc>
6319           <type name="guint16" c:type="guint16"/>
6320         </parameter>
6321         <parameter name="blue" transfer-ownership="none">
6322           <doc xml:whitespace="preserve">the blue value</doc>
6323           <type name="guint16" c:type="guint16"/>
6324         </parameter>
6325       </parameters>
6326     </function>
6327     <function name="attr_gravity_hint_new"
6328               c:identifier="pango_attr_gravity_hint_new"
6329               version="1.16"
6330               introspectable="0">
6331       <doc xml:whitespace="preserve">Create a new gravity hint attribute.
6332 freed with pango_attribute_destroy().</doc>
6333       <return-value>
6334         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6335         <type name="Attribute" c:type="PangoAttribute*"/>
6336       </return-value>
6337       <parameters>
6338         <parameter name="hint" transfer-ownership="none">
6339           <doc xml:whitespace="preserve">the gravity hint value.</doc>
6340           <type name="GravityHint" c:type="PangoGravityHint"/>
6341         </parameter>
6342       </parameters>
6343     </function>
6344     <function name="attr_gravity_new"
6345               c:identifier="pango_attr_gravity_new"
6346               version="1.16"
6347               introspectable="0">
6348       <doc xml:whitespace="preserve">Create a new gravity attribute.
6349 freed with pango_attribute_destroy().</doc>
6350       <return-value>
6351         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6352         <type name="Attribute" c:type="PangoAttribute*"/>
6353       </return-value>
6354       <parameters>
6355         <parameter name="gravity" transfer-ownership="none">
6356           <doc xml:whitespace="preserve">the gravity value; should not be %PANGO_GRAVITY_AUTO.</doc>
6357           <type name="Gravity" c:type="PangoGravity"/>
6358         </parameter>
6359       </parameters>
6360     </function>
6361     <function name="attr_language_new"
6362               c:identifier="pango_attr_language_new"
6363               introspectable="0">
6364       <doc xml:whitespace="preserve">Create a new language tag attribute.
6365 freed with pango_attribute_destroy().</doc>
6366       <return-value>
6367         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6368         <type name="Attribute" c:type="PangoAttribute*"/>
6369       </return-value>
6370       <parameters>
6371         <parameter name="language" transfer-ownership="none">
6372           <doc xml:whitespace="preserve">language tag</doc>
6373           <type name="Language" c:type="PangoLanguage*"/>
6374         </parameter>
6375       </parameters>
6376     </function>
6377     <function name="attr_letter_spacing_new"
6378               c:identifier="pango_attr_letter_spacing_new"
6379               version="1.6"
6380               introspectable="0">
6381       <doc xml:whitespace="preserve">Create a new letter-spacing attribute.
6382 freed with pango_attribute_destroy().</doc>
6383       <return-value>
6384         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6385         <type name="Attribute" c:type="PangoAttribute*"/>
6386       </return-value>
6387       <parameters>
6388         <parameter name="letter_spacing" transfer-ownership="none">
6389           <doc xml:whitespace="preserve">amount of extra space to add between graphemes of the text, in Pango units.</doc>
6390           <type name="gint" c:type="int"/>
6391         </parameter>
6392       </parameters>
6393     </function>
6394     <function name="attr_rise_new"
6395               c:identifier="pango_attr_rise_new"
6396               introspectable="0">
6397       <doc xml:whitespace="preserve">Create a new baseline displacement attribute.
6398 freed with pango_attribute_destroy().</doc>
6399       <return-value>
6400         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6401         <type name="Attribute" c:type="PangoAttribute*"/>
6402       </return-value>
6403       <parameters>
6404         <parameter name="rise" transfer-ownership="none">
6405           <doc xml:whitespace="preserve">the amount that the text should be displaced vertically, in Pango units. Positive values displace the text upwards.</doc>
6406           <type name="gint" c:type="int"/>
6407         </parameter>
6408       </parameters>
6409     </function>
6410     <function name="attr_scale_new"
6411               c:identifier="pango_attr_scale_new"
6412               introspectable="0">
6413       <doc xml:whitespace="preserve">Create a new font size scale attribute. The base font for the
6414 affected text will have its size multiplied by @scale_factor.
6415 freed with pango_attribute_destroy().</doc>
6416       <return-value>
6417         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6418         <type name="Attribute" c:type="PangoAttribute*"/>
6419       </return-value>
6420       <parameters>
6421         <parameter name="scale_factor" transfer-ownership="none">
6422           <doc xml:whitespace="preserve">factor to scale the font</doc>
6423           <type name="gdouble" c:type="double"/>
6424         </parameter>
6425       </parameters>
6426     </function>
6427     <function name="attr_shape_new"
6428               c:identifier="pango_attr_shape_new"
6429               introspectable="0">
6430       <doc xml:whitespace="preserve">Create a new shape attribute. A shape is used to impose a
6431 particular ink and logical rectangle on the result of shaping a
6432 particular glyph. This might be used, for instance, for
6433 embedding a picture or a widget inside a #PangoLayout.
6434 freed with pango_attribute_destroy().</doc>
6435       <return-value>
6436         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6437         <type name="Attribute" c:type="PangoAttribute*"/>
6438       </return-value>
6439       <parameters>
6440         <parameter name="ink_rect" transfer-ownership="none">
6441           <doc xml:whitespace="preserve">ink rectangle to assign to each character</doc>
6442           <type name="Rectangle" c:type="PangoRectangle*"/>
6443         </parameter>
6444         <parameter name="logical_rect" transfer-ownership="none">
6445           <doc xml:whitespace="preserve">logical rectangle to assign to each character</doc>
6446           <type name="Rectangle" c:type="PangoRectangle*"/>
6447         </parameter>
6448       </parameters>
6449     </function>
6450     <function name="attr_shape_new_with_data"
6451               c:identifier="pango_attr_shape_new_with_data"
6452               version="1.8"
6453               introspectable="0">
6454       <doc xml:whitespace="preserve">Like pango_attr_shape_new(), but a user data pointer is also
6455 provided; this pointer can be accessed when later
6456 rendering the glyph.
6457 freed with pango_attribute_destroy().</doc>
6458       <return-value>
6459         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6460         <type name="Attribute" c:type="PangoAttribute*"/>
6461       </return-value>
6462       <parameters>
6463         <parameter name="ink_rect" transfer-ownership="none">
6464           <doc xml:whitespace="preserve">ink rectangle to assign to each character</doc>
6465           <type name="Rectangle" c:type="PangoRectangle*"/>
6466         </parameter>
6467         <parameter name="logical_rect" transfer-ownership="none">
6468           <doc xml:whitespace="preserve">logical rectangle to assign to each character</doc>
6469           <type name="Rectangle" c:type="PangoRectangle*"/>
6470         </parameter>
6471         <parameter name="data" transfer-ownership="none">
6472           <doc xml:whitespace="preserve">user data pointer</doc>
6473           <type name="gpointer" c:type="gpointer"/>
6474         </parameter>
6475         <parameter name="copy_func"
6476                    transfer-ownership="none"
6477                    scope="notified"
6478                    destroy="4">
6479           <doc xml:whitespace="preserve">function to copy @data when the attribute is copied. If %NULL, @data is simply copied as a pointer.</doc>
6480           <type name="AttrDataCopyFunc" c:type="PangoAttrDataCopyFunc"/>
6481         </parameter>
6482         <parameter name="destroy_func" transfer-ownership="none" scope="async">
6483           <doc xml:whitespace="preserve">function to free @data when the attribute is freed, or %NULL</doc>
6484           <type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
6485         </parameter>
6486       </parameters>
6487     </function>
6488     <function name="attr_size_new"
6489               c:identifier="pango_attr_size_new"
6490               introspectable="0">
6491       <doc xml:whitespace="preserve">Create a new font-size attribute in fractional points.
6492 freed with pango_attribute_destroy().</doc>
6493       <return-value>
6494         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6495         <type name="Attribute" c:type="PangoAttribute*"/>
6496       </return-value>
6497       <parameters>
6498         <parameter name="size" transfer-ownership="none">
6499           <doc xml:whitespace="preserve">the font size, in %PANGO_SCALE&lt;!-- --&gt;ths of a point.</doc>
6500           <type name="gint" c:type="int"/>
6501         </parameter>
6502       </parameters>
6503     </function>
6504     <function name="attr_size_new_absolute"
6505               c:identifier="pango_attr_size_new_absolute"
6506               version="1.8"
6507               introspectable="0">
6508       <doc xml:whitespace="preserve">Create a new font-size attribute in device units.
6509 freed with pango_attribute_destroy().</doc>
6510       <return-value>
6511         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6512         <type name="Attribute" c:type="PangoAttribute*"/>
6513       </return-value>
6514       <parameters>
6515         <parameter name="size" transfer-ownership="none">
6516           <doc xml:whitespace="preserve">the font size, in %PANGO_SCALE&lt;!-- --&gt;ths of a device unit.</doc>
6517           <type name="gint" c:type="int"/>
6518         </parameter>
6519       </parameters>
6520     </function>
6521     <function name="attr_stretch_new"
6522               c:identifier="pango_attr_stretch_new"
6523               introspectable="0">
6524       <doc xml:whitespace="preserve">Create a new font stretch attribute
6525 freed with pango_attribute_destroy().</doc>
6526       <return-value>
6527         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6528         <type name="Attribute" c:type="PangoAttribute*"/>
6529       </return-value>
6530       <parameters>
6531         <parameter name="stretch" transfer-ownership="none">
6532           <doc xml:whitespace="preserve">the stretch</doc>
6533           <type name="Stretch" c:type="PangoStretch"/>
6534         </parameter>
6535       </parameters>
6536     </function>
6537     <function name="attr_strikethrough_color_new"
6538               c:identifier="pango_attr_strikethrough_color_new"
6539               version="1.8"
6540               introspectable="0">
6541       <doc xml:whitespace="preserve">Create a new strikethrough color attribute. This attribute
6542 modifies the color of strikethrough lines. If not set, strikethrough
6543 lines will use the foreground color.
6544 freed with pango_attribute_destroy().</doc>
6545       <return-value>
6546         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6547         <type name="Attribute" c:type="PangoAttribute*"/>
6548       </return-value>
6549       <parameters>
6550         <parameter name="red" transfer-ownership="none">
6551           <doc xml:whitespace="preserve">the red value (ranging from 0 to 65535)</doc>
6552           <type name="guint16" c:type="guint16"/>
6553         </parameter>
6554         <parameter name="green" transfer-ownership="none">
6555           <doc xml:whitespace="preserve">the green value</doc>
6556           <type name="guint16" c:type="guint16"/>
6557         </parameter>
6558         <parameter name="blue" transfer-ownership="none">
6559           <doc xml:whitespace="preserve">the blue value</doc>
6560           <type name="guint16" c:type="guint16"/>
6561         </parameter>
6562       </parameters>
6563     </function>
6564     <function name="attr_strikethrough_new"
6565               c:identifier="pango_attr_strikethrough_new"
6566               introspectable="0">
6567       <doc xml:whitespace="preserve">Create a new strike-through attribute.
6568 freed with pango_attribute_destroy().</doc>
6569       <return-value>
6570         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6571         <type name="Attribute" c:type="PangoAttribute*"/>
6572       </return-value>
6573       <parameters>
6574         <parameter name="strikethrough" transfer-ownership="none">
6575           <doc xml:whitespace="preserve">%TRUE if the text should be struck-through.</doc>
6576           <type name="gboolean" c:type="gboolean"/>
6577         </parameter>
6578       </parameters>
6579     </function>
6580     <function name="attr_style_new"
6581               c:identifier="pango_attr_style_new"
6582               introspectable="0">
6583       <doc xml:whitespace="preserve">Create a new font slant style attribute.
6584 freed with pango_attribute_destroy().</doc>
6585       <return-value>
6586         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6587         <type name="Attribute" c:type="PangoAttribute*"/>
6588       </return-value>
6589       <parameters>
6590         <parameter name="style" transfer-ownership="none">
6591           <doc xml:whitespace="preserve">the slant style</doc>
6592           <type name="Style" c:type="PangoStyle"/>
6593         </parameter>
6594       </parameters>
6595     </function>
6596     <function name="attr_type_get_name"
6597               c:identifier="pango_attr_type_get_name"
6598               version="1.22">
6599       <doc xml:whitespace="preserve">Fetches the attribute type name passed in when registering the type using
6600 pango_attr_type_register().
6601 The returned value is an interned string (see g_intern_string() for what
6602 that means) that should not be modified or freed.
6603 a built-in Pango attribute type or invalid.</doc>
6604       <return-value transfer-ownership="none">
6605         <doc xml:whitespace="preserve">the type ID name (which may be %NULL), or %NULL if @type is</doc>
6606         <type name="utf8" c:type="char*"/>
6607       </return-value>
6608       <parameters>
6609         <parameter name="type" transfer-ownership="none">
6610           <doc xml:whitespace="preserve">an attribute type ID to fetch the name for</doc>
6611           <type name="AttrType" c:type="PangoAttrType"/>
6612         </parameter>
6613       </parameters>
6614     </function>
6615     <function name="attr_type_register"
6616               c:identifier="pango_attr_type_register">
6617       <doc xml:whitespace="preserve">Allocate a new attribute type ID.  The attribute type name can be accessed
6618 later by using pango_attr_type_get_name().</doc>
6619       <return-value transfer-ownership="none">
6620         <doc xml:whitespace="preserve">the new type ID.</doc>
6621         <type name="AttrType" c:type="PangoAttrType"/>
6622       </return-value>
6623       <parameters>
6624         <parameter name="name" transfer-ownership="none">
6625           <doc xml:whitespace="preserve">an identifier for the type</doc>
6626           <type name="utf8" c:type="gchar*"/>
6627         </parameter>
6628       </parameters>
6629     </function>
6630     <function name="attr_underline_color_new"
6631               c:identifier="pango_attr_underline_color_new"
6632               version="1.8"
6633               introspectable="0">
6634       <doc xml:whitespace="preserve">Create a new underline color attribute. This attribute
6635 modifies the color of underlines. If not set, underlines
6636 will use the foreground color.
6637 freed with pango_attribute_destroy().</doc>
6638       <return-value>
6639         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6640         <type name="Attribute" c:type="PangoAttribute*"/>
6641       </return-value>
6642       <parameters>
6643         <parameter name="red" transfer-ownership="none">
6644           <doc xml:whitespace="preserve">the red value (ranging from 0 to 65535)</doc>
6645           <type name="guint16" c:type="guint16"/>
6646         </parameter>
6647         <parameter name="green" transfer-ownership="none">
6648           <doc xml:whitespace="preserve">the green value</doc>
6649           <type name="guint16" c:type="guint16"/>
6650         </parameter>
6651         <parameter name="blue" transfer-ownership="none">
6652           <doc xml:whitespace="preserve">the blue value</doc>
6653           <type name="guint16" c:type="guint16"/>
6654         </parameter>
6655       </parameters>
6656     </function>
6657     <function name="attr_underline_new"
6658               c:identifier="pango_attr_underline_new"
6659               introspectable="0">
6660       <doc xml:whitespace="preserve">Create a new underline-style attribute.
6661 freed with pango_attribute_destroy().</doc>
6662       <return-value>
6663         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6664         <type name="Attribute" c:type="PangoAttribute*"/>
6665       </return-value>
6666       <parameters>
6667         <parameter name="underline" transfer-ownership="none">
6668           <doc xml:whitespace="preserve">the underline style.</doc>
6669           <type name="Underline" c:type="PangoUnderline"/>
6670         </parameter>
6671       </parameters>
6672     </function>
6673     <function name="attr_variant_new"
6674               c:identifier="pango_attr_variant_new"
6675               introspectable="0">
6676       <doc xml:whitespace="preserve">Create a new font variant attribute (normal or small caps)
6677 freed with pango_attribute_destroy().</doc>
6678       <return-value>
6679         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6680         <type name="Attribute" c:type="PangoAttribute*"/>
6681       </return-value>
6682       <parameters>
6683         <parameter name="variant" transfer-ownership="none">
6684           <doc xml:whitespace="preserve">the variant</doc>
6685           <type name="Variant" c:type="PangoVariant"/>
6686         </parameter>
6687       </parameters>
6688     </function>
6689     <function name="attr_weight_new"
6690               c:identifier="pango_attr_weight_new"
6691               introspectable="0">
6692       <doc xml:whitespace="preserve">Create a new font weight attribute.
6693 freed with pango_attribute_destroy().</doc>
6694       <return-value>
6695         <doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
6696         <type name="Attribute" c:type="PangoAttribute*"/>
6697       </return-value>
6698       <parameters>
6699         <parameter name="weight" transfer-ownership="none">
6700           <doc xml:whitespace="preserve">the weight</doc>
6701           <type name="Weight" c:type="PangoWeight"/>
6702         </parameter>
6703       </parameters>
6704     </function>
6705     <function name="bidi_type_for_unichar"
6706               c:identifier="pango_bidi_type_for_unichar"
6707               introspectable="0">
6708       <return-value transfer-ownership="none">
6709         <type name="BidiType" c:type="PangoBidiType"/>
6710       </return-value>
6711       <parameters>
6712         <parameter name="ch" transfer-ownership="none">
6713           <type name="gunichar" c:type="gunichar"/>
6714         </parameter>
6715       </parameters>
6716     </function>
6717     <function name="break" c:identifier="pango_break">
6718       <doc xml:whitespace="preserve">Determines possible line, word, and character breaks
6719 for a string of Unicode text with a single analysis.  For most
6720 purposes you may want to use pango_get_log_attrs().</doc>
6721       <return-value transfer-ownership="none">
6722         <type name="none" c:type="void"/>
6723       </return-value>
6724       <parameters>
6725         <parameter name="text" transfer-ownership="none">
6726           <doc xml:whitespace="preserve">the text to process</doc>
6727           <type name="utf8" c:type="gchar*"/>
6728         </parameter>
6729         <parameter name="length" transfer-ownership="none">
6730           <doc xml:whitespace="preserve">length of @text in bytes (may be -1 if @text is nul-terminated)</doc>
6731           <type name="gint" c:type="int"/>
6732         </parameter>
6733         <parameter name="analysis" transfer-ownership="none">
6734           <doc xml:whitespace="preserve">#PangoAnalysis structure from pango_itemize()</doc>
6735           <type name="Analysis" c:type="PangoAnalysis*"/>
6736         </parameter>
6737         <parameter name="attrs" transfer-ownership="none">
6738           <doc xml:whitespace="preserve">an array to store character information in</doc>
6739           <type name="LogAttr" c:type="PangoLogAttr*"/>
6740         </parameter>
6741         <parameter name="attrs_len" transfer-ownership="none">
6742           <doc xml:whitespace="preserve">size of the array passed as @attrs</doc>
6743           <type name="gint" c:type="int"/>
6744         </parameter>
6745       </parameters>
6746     </function>
6747     <function name="coverage_from_bytes"
6748               c:identifier="pango_coverage_from_bytes"
6749               introspectable="0">
6750       <doc xml:whitespace="preserve">Convert data generated from pango_converage_to_bytes() back
6751 to a #PangoCoverage
6752 the data was invalid.</doc>
6753       <return-value>
6754         <doc xml:whitespace="preserve">a newly allocated #PangoCoverage, or %NULL if</doc>
6755         <type name="Coverage" c:type="PangoCoverage*"/>
6756       </return-value>
6757       <parameters>
6758         <parameter name="bytes" transfer-ownership="none">
6759           <doc xml:whitespace="preserve">binary data representing a #PangoCoverage</doc>
6760           <type name="guint8" c:type="guchar*"/>
6761         </parameter>
6762         <parameter name="n_bytes" transfer-ownership="none">
6763           <doc xml:whitespace="preserve">the size of @bytes in bytes</doc>
6764           <type name="gint" c:type="int"/>
6765         </parameter>
6766       </parameters>
6767     </function>
6768     <function name="coverage_new"
6769               c:identifier="pango_coverage_new"
6770               introspectable="0">
6771       <doc xml:whitespace="preserve">Create a new #PangoCoverage
6772 initialized to %PANGO_COVERAGE_NONE
6773 with a reference count of one, which
6774 should be freed with pango_coverage_unref().</doc>
6775       <return-value>
6776         <doc xml:whitespace="preserve">the newly allocated #PangoCoverage,</doc>
6777         <type name="Coverage" c:type="PangoCoverage*"/>
6778       </return-value>
6779     </function>
6780     <function name="extents_to_pixels"
6781               c:identifier="pango_extents_to_pixels"
6782               version="1.16">
6783       <doc xml:whitespace="preserve">Converts extents from Pango units to device units, dividing by the
6784 %PANGO_SCALE factor and performing rounding.
6785 The @inclusive rectangle is converted by flooring the x/y coordinates and extending
6786 width/height, such that the final rectangle completely includes the original
6787 rectangle.
6788 The @nearest rectangle is converted by rounding the coordinates
6789 of the rectangle to the nearest device unit (pixel).
6790 rectangle to completely contain the original rectangle, pass it in as @inclusive.
6791 If you want two touching-but-not-overlapping rectangles stay
6792 touching-but-not-overlapping after rounding to device units, pass them in
6793 as @nearest.</doc>
6794       <return-value transfer-ownership="none">
6795         <type name="none" c:type="void"/>
6796       </return-value>
6797       <parameters>
6798         <parameter name="inclusive" transfer-ownership="none">
6799           <doc xml:whitespace="preserve">rectangle to round to pixels inclusively, or %NULL.</doc>
6800           <type name="Rectangle" c:type="PangoRectangle*"/>
6801         </parameter>
6802         <parameter name="nearest" transfer-ownership="none">
6803           <doc xml:whitespace="preserve">rectangle to round to nearest pixels, or %NULL.</doc>
6804           <type name="Rectangle" c:type="PangoRectangle*"/>
6805         </parameter>
6806       </parameters>
6807     </function>
6808     <function name="find_base_dir"
6809               c:identifier="pango_find_base_dir"
6810               version="1.4">
6811       <doc xml:whitespace="preserve">Searches a string the first character that has a strong
6812 direction, according to the Unicode bidirectional algorithm.
6813 If no such character is found, then %PANGO_DIRECTION_NEUTRAL is returned.</doc>
6814       <return-value transfer-ownership="none">
6815         <doc xml:whitespace="preserve">The direction corresponding to the first strong character.</doc>
6816         <type name="Direction" c:type="PangoDirection"/>
6817       </return-value>
6818       <parameters>
6819         <parameter name="text" transfer-ownership="none">
6820           <doc xml:whitespace="preserve">the text to process</doc>
6821           <type name="utf8" c:type="gchar*"/>
6822         </parameter>
6823         <parameter name="length" transfer-ownership="none">
6824           <doc xml:whitespace="preserve">length of @text in bytes (may be -1 if @text is nul-terminated)</doc>
6825           <type name="gint" c:type="gint"/>
6826         </parameter>
6827       </parameters>
6828     </function>
6829     <function name="find_paragraph_boundary"
6830               c:identifier="pango_find_paragraph_boundary">
6831       <doc xml:whitespace="preserve">Locates a paragraph boundary in @text. A boundary is caused by
6832 delimiter characters, such as a newline, carriage return, carriage
6833 return-newline pair, or Unicode paragraph separator character.  The
6834 index of the run of delimiters is returned in
6835 (index after all delimiters) is stored in @next_paragraph_start.
6836 If no delimiters are found, both @paragraph_delimiter_index and
6837 off the end).</doc>
6838       <return-value transfer-ownership="none">
6839         <type name="none" c:type="void"/>
6840       </return-value>
6841       <parameters>
6842         <parameter name="text" transfer-ownership="none">
6843           <doc xml:whitespace="preserve">UTF-8 text</doc>
6844           <type name="utf8" c:type="gchar*"/>
6845         </parameter>
6846         <parameter name="length" transfer-ownership="none">
6847           <doc xml:whitespace="preserve">length of @text in bytes, or -1 if nul-terminated</doc>
6848           <type name="gint" c:type="gint"/>
6849         </parameter>
6850         <parameter name="paragraph_delimiter_index" transfer-ownership="none">
6851           <doc xml:whitespace="preserve">return location for index of delimiter</doc>
6852           <type name="gint" c:type="gint*"/>
6853         </parameter>
6854         <parameter name="next_paragraph_start" transfer-ownership="none">
6855           <doc xml:whitespace="preserve">return location for start of next paragraph</doc>
6856           <type name="gint" c:type="gint*"/>
6857         </parameter>
6858       </parameters>
6859     </function>
6860     <function name="font_description_from_string"
6861               c:identifier="pango_font_description_from_string">
6862       <doc xml:whitespace="preserve">Creates a new font description from a string representation in the
6863 form "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]", where FAMILY-LIST is a
6864 comma separated list of families optionally terminated by a comma,
6865 STYLE_OPTIONS is a whitespace separated list of words where each WORD
6866 describes one of style, variant, weight, stretch, or gravity, and SIZE
6867 is a decimal number (size in points) or optionally followed by the
6868 unit modifier "px" for absolute size. Any one of the options may
6869 be absent.  If FAMILY-LIST is absent, then the family_name field of
6870 the resulting font description will be initialized to %NULL.  If
6871 STYLE-OPTIONS is missing, then all style options will be set to the
6872 default values. If SIZE is missing, the size in the resulting font
6873 description will be set to 0.</doc>
6874       <return-value transfer-ownership="full">
6875         <doc xml:whitespace="preserve">a new #PangoFontDescription.</doc>
6876         <type name="FontDescription" c:type="PangoFontDescription*"/>
6877       </return-value>
6878       <parameters>
6879         <parameter name="str" transfer-ownership="none">
6880           <doc xml:whitespace="preserve">string representation of a font description.</doc>
6881           <type name="utf8" c:type="char*"/>
6882         </parameter>
6883       </parameters>
6884     </function>
6885     <function name="get_log_attrs" c:identifier="pango_get_log_attrs">
6886       <doc xml:whitespace="preserve">Computes a #PangoLogAttr for each character in @text. The @log_attrs
6887 array must have one #PangoLogAttr for each position in @text; if
6888 last position at the end of the text. @text should be an entire
6889 paragraph; logical attributes can't be computed without context
6890 (for example you need to see spaces on either side of a word to know
6891 the word is a word).</doc>
6892       <return-value transfer-ownership="none">
6893         <type name="none" c:type="void"/>
6894       </return-value>
6895       <parameters>
6896         <parameter name="text" transfer-ownership="none">
6897           <doc xml:whitespace="preserve">text to process</doc>
6898           <type name="utf8" c:type="char*"/>
6899         </parameter>
6900         <parameter name="length" transfer-ownership="none">
6901           <doc xml:whitespace="preserve">length in bytes of @text</doc>
6902           <type name="gint" c:type="int"/>
6903         </parameter>
6904         <parameter name="level" transfer-ownership="none">
6905           <doc xml:whitespace="preserve">embedding level, or -1 if unknown</doc>
6906           <type name="gint" c:type="int"/>
6907         </parameter>
6908         <parameter name="language" transfer-ownership="none">
6909           <doc xml:whitespace="preserve">language tag</doc>
6910           <type name="Language" c:type="PangoLanguage*"/>
6911         </parameter>
6912         <parameter name="log_attrs" transfer-ownership="none">
6913           <doc xml:whitespace="preserve">array with one #PangoLogAttr per character in @text, plus one extra, to be filled in</doc>
6914           <type name="LogAttr" c:type="PangoLogAttr*"/>
6915         </parameter>
6916         <parameter name="attrs_len" transfer-ownership="none">
6917           <doc xml:whitespace="preserve">length of @log_attrs array</doc>
6918           <type name="gint" c:type="int"/>
6919         </parameter>
6920       </parameters>
6921     </function>
6922     <function name="get_mirror_char"
6923               c:identifier="pango_get_mirror_char"
6924               introspectable="0">
6925       <doc xml:whitespace="preserve">If @ch has the Unicode mirrored property and there is another Unicode
6926 character that typically has a glyph that is the mirror image of @ch's
6927 glyph, puts that character in the address pointed to by @mirrored_ch.
6928 Use g_unichar_get_mirror_char() instead; the docs for that function
6929 provide full details.
6930 filled in, %FALSE otherwise</doc>
6931       <return-value transfer-ownership="none">
6932         <doc xml:whitespace="preserve">%TRUE if @ch has a mirrored character and @mirrored_ch is</doc>
6933         <type name="gboolean" c:type="gboolean"/>
6934       </return-value>
6935       <parameters>
6936         <parameter name="ch" transfer-ownership="none">
6937           <doc xml:whitespace="preserve">a Unicode character</doc>
6938           <type name="gunichar" c:type="gunichar"/>
6939         </parameter>
6940         <parameter name="mirrored_ch" transfer-ownership="none">
6941           <doc xml:whitespace="preserve">location to store the mirrored character</doc>
6942           <type name="gunichar" c:type="gunichar*"/>
6943         </parameter>
6944       </parameters>
6945     </function>
6946     <function name="gravity_get_for_matrix"
6947               c:identifier="pango_gravity_get_for_matrix"
6948               version="1.16">
6949       <doc xml:whitespace="preserve">Finds the gravity that best matches the rotation component
6950 in a #PangoMatrix.
6951 %PANGO_GRAVITY_AUTO, or %PANGO_GRAVITY_SOUTH if @matrix is %NULL</doc>
6952       <return-value transfer-ownership="none">
6953         <doc xml:whitespace="preserve">the gravity of @matrix, which will never be</doc>
6954         <type name="Gravity" c:type="PangoGravity"/>
6955       </return-value>
6956       <parameters>
6957         <parameter name="matrix" transfer-ownership="none">
6958           <doc xml:whitespace="preserve">a #PangoMatrix</doc>
6959           <type name="Matrix" c:type="PangoMatrix*"/>
6960         </parameter>
6961       </parameters>
6962     </function>
6963     <function name="gravity_get_for_script"
6964               c:identifier="pango_gravity_get_for_script"
6965               version="1.16">
6966       <doc xml:whitespace="preserve">Based on the script, base gravity, and hint, returns actual gravity
6967 to use in laying out a single #PangoItem.
6968 If @base_gravity is %PANGO_GRAVITY_AUTO, it is first replaced with the
6969 preferred gravity of @script.  To get the preferred gravity of a script,
6970 pass %PANGO_GRAVITY_AUTO and %PANGO_GRAVITY_HINT_STRONG in.
6971 with @script.</doc>
6972       <return-value transfer-ownership="none">
6973         <doc xml:whitespace="preserve">resolved gravity suitable to use for a run of text</doc>
6974         <type name="Gravity" c:type="PangoGravity"/>
6975       </return-value>
6976       <parameters>
6977         <parameter name="script" transfer-ownership="none">
6978           <doc xml:whitespace="preserve">#PangoScript to query</doc>
6979           <type name="Script" c:type="PangoScript"/>
6980         </parameter>
6981         <parameter name="base_gravity" transfer-ownership="none">
6982           <doc xml:whitespace="preserve">base gravity of the paragraph</doc>
6983           <type name="Gravity" c:type="PangoGravity"/>
6984         </parameter>
6985         <parameter name="hint" transfer-ownership="none">
6986           <doc xml:whitespace="preserve">orientation hint</doc>
6987           <type name="GravityHint" c:type="PangoGravityHint"/>
6988         </parameter>
6989       </parameters>
6990     </function>
6991     <function name="gravity_get_for_script_and_width"
6992               c:identifier="pango_gravity_get_for_script_and_width"
6993               version="1.26">
6994       <doc xml:whitespace="preserve">Based on the script, East Asian width, base gravity, and hint,
6995 returns actual gravity to use in laying out a single character
6996 or #PangoItem.
6997 This function is similar to pango_gravity_get_for_script() except
6998 that this function makes a distinction between narrow/half-width and
6999 wide/full-width characters also.  Wide/full-width characters always
7000 stand &lt;emph&gt;upright&lt;/emph&gt;, that is, they always take the base gravity,
7001 whereas narrow/full-width characters are always rotated in vertical
7002 context.
7003 If @base_gravity is %PANGO_GRAVITY_AUTO, it is first replaced with the
7004 preferred gravity of @script.
7005 with @script and @wide.</doc>
7006       <return-value transfer-ownership="none">
7007         <doc xml:whitespace="preserve">resolved gravity suitable to use for a run of text</doc>
7008         <type name="Gravity" c:type="PangoGravity"/>
7009       </return-value>
7010       <parameters>
7011         <parameter name="script" transfer-ownership="none">
7012           <doc xml:whitespace="preserve">#PangoScript to query</doc>
7013           <type name="Script" c:type="PangoScript"/>
7014         </parameter>
7015         <parameter name="wide" transfer-ownership="none">
7016           <doc xml:whitespace="preserve">%TRUE for wide characters as returned by g_unichar_iswide()</doc>
7017           <type name="gboolean" c:type="gboolean"/>
7018         </parameter>
7019         <parameter name="base_gravity" transfer-ownership="none">
7020           <doc xml:whitespace="preserve">base gravity of the paragraph</doc>
7021           <type name="Gravity" c:type="PangoGravity"/>
7022         </parameter>
7023         <parameter name="hint" transfer-ownership="none">
7024           <doc xml:whitespace="preserve">orientation hint</doc>
7025           <type name="GravityHint" c:type="PangoGravityHint"/>
7026         </parameter>
7027       </parameters>
7028     </function>
7029     <function name="gravity_to_rotation"
7030               c:identifier="pango_gravity_to_rotation"
7031               version="1.16">
7032       <doc xml:whitespace="preserve">Converts a #PangoGravity value to its natural rotation in radians.
7033 Note that pango_matrix_rotate() takes angle in degrees, not radians.
7034 So, to call pango_matrix_rotate() with the output of this function
7035 you should multiply it by (180. / G_PI).</doc>
7036       <return-value transfer-ownership="none">
7037         <doc xml:whitespace="preserve">the rotation value corresponding to @gravity.</doc>
7038         <type name="gdouble" c:type="double"/>
7039       </return-value>
7040       <parameters>
7041         <parameter name="gravity" transfer-ownership="none">
7042           <doc xml:whitespace="preserve">gravity to query</doc>
7043           <type name="Gravity" c:type="PangoGravity"/>
7044         </parameter>
7045       </parameters>
7046     </function>
7047     <function name="is_zero_width"
7048               c:identifier="pango_is_zero_width"
7049               version="1.10"
7050               introspectable="0">
7051       <doc xml:whitespace="preserve">Checks @ch to see if it is a character that should not be
7052 normally rendered on the screen.  This includes all Unicode characters
7053 with "ZERO WIDTH" in their name, as well as &lt;firstterm&gt;bidi&lt;/firstterm&gt; formatting characters, and
7054 a few other ones.  This is totally different from g_unichar_iszerowidth()
7055 and is at best misnamed.</doc>
7056       <return-value transfer-ownership="none">
7057         <doc xml:whitespace="preserve">%TRUE if @ch is a zero-width character, %FALSE otherwise</doc>
7058         <type name="gboolean" c:type="gboolean"/>
7059       </return-value>
7060       <parameters>
7061         <parameter name="ch" transfer-ownership="none">
7062           <doc xml:whitespace="preserve">a Unicode character</doc>
7063           <type name="gunichar" c:type="gunichar"/>
7064         </parameter>
7065       </parameters>
7066     </function>
7067     <function name="itemize" c:identifier="pango_itemize" introspectable="0">
7068       <doc xml:whitespace="preserve">after @start_index.
7069 This must be &gt;= 0.
7070 Breaks a piece of text into segments with consistent
7071 directional level and shaping engine. Each byte of @text will
7072 be contained in exactly one of the items in the returned list;
7073 the generated list of items will be in logical order (the start
7074 offsets of the items are ascending).
7075 range before or containing @start_index; @cached_iter will be advanced to
7076 the range covering the position just after @start_index + @length.
7077 (i.e. if itemizing in a loop, just keep passing in the same @cached_iter).</doc>
7078       <return-value>
7079         <doc xml:whitespace="preserve">a #GList of #PangoItem structures.</doc>
7080         <type name="GLib.List" c:type="GList*">
7081           <type name="gpointer" c:type="gpointer"/>
7082         </type>
7083       </return-value>
7084       <parameters>
7085         <parameter name="context" transfer-ownership="none">
7086           <doc xml:whitespace="preserve">a structure holding information that affects</doc>
7087           <type name="Context" c:type="PangoContext*"/>
7088         </parameter>
7089         <parameter name="text" transfer-ownership="none">
7090           <doc xml:whitespace="preserve">the text to itemize.</doc>
7091           <type name="utf8" c:type="char*"/>
7092         </parameter>
7093         <parameter name="start_index" transfer-ownership="none">
7094           <doc xml:whitespace="preserve">first byte in @text to process</doc>
7095           <type name="gint" c:type="int"/>
7096         </parameter>
7097         <parameter name="length" transfer-ownership="none">
7098           <doc xml:whitespace="preserve">the number of bytes (not characters) to process</doc>
7099           <type name="gint" c:type="int"/>
7100         </parameter>
7101         <parameter name="attrs" transfer-ownership="none">
7102           <doc xml:whitespace="preserve">the set of attributes that apply to @text.</doc>
7103           <type name="AttrList" c:type="PangoAttrList*"/>
7104         </parameter>
7105         <parameter name="cached_iter" transfer-ownership="none">
7106           <doc xml:whitespace="preserve">Cached attribute iterator, or %NULL</doc>
7107           <type name="AttrIterator" c:type="PangoAttrIterator*"/>
7108         </parameter>
7109       </parameters>
7110     </function>
7111     <function name="itemize_with_base_dir"
7112               c:identifier="pango_itemize_with_base_dir"
7113               version="1.4"
7114               introspectable="0">
7115       <doc xml:whitespace="preserve">after @start_index.
7116 This must be &gt;= 0.
7117 Like pango_itemize(), but the base direction to use when
7118 computing bidirectional levels (see pango_context_set_base_dir ()),
7119 is specified explicitly rather than gotten from the #PangoContext.
7120 freed using pango_item_free() probably in combination with g_list_foreach(),
7121 and the list itself using g_list_free().</doc>
7122       <return-value>
7123         <doc xml:whitespace="preserve">a #GList of #PangoItem structures.  The items should be</doc>
7124         <type name="GLib.List" c:type="GList*">
7125           <type name="gpointer" c:type="gpointer"/>
7126         </type>
7127       </return-value>
7128       <parameters>
7129         <parameter name="context" transfer-ownership="none">
7130           <doc xml:whitespace="preserve">a structure holding information that affects</doc>
7131           <type name="Context" c:type="PangoContext*"/>
7132         </parameter>
7133         <parameter name="base_dir" transfer-ownership="none">
7134           <doc xml:whitespace="preserve">base direction to use for bidirectional processing</doc>
7135           <type name="Direction" c:type="PangoDirection"/>
7136         </parameter>
7137         <parameter name="text" transfer-ownership="none">
7138           <doc xml:whitespace="preserve">the text to itemize.</doc>
7139           <type name="utf8" c:type="char*"/>
7140         </parameter>
7141         <parameter name="start_index" transfer-ownership="none">
7142           <doc xml:whitespace="preserve">first byte in @text to process</doc>
7143           <type name="gint" c:type="int"/>
7144         </parameter>
7145         <parameter name="length" transfer-ownership="none">
7146           <doc xml:whitespace="preserve">the number of bytes (not characters) to process</doc>
7147           <type name="gint" c:type="int"/>
7148         </parameter>
7149         <parameter name="attrs" transfer-ownership="none">
7150           <doc xml:whitespace="preserve">the set of attributes that apply to @text.</doc>
7151           <type name="AttrList" c:type="PangoAttrList*"/>
7152         </parameter>
7153         <parameter name="cached_iter" transfer-ownership="none">
7154           <doc xml:whitespace="preserve">Cached attribute iterator, or %NULL</doc>
7155           <type name="AttrIterator" c:type="PangoAttrIterator*"/>
7156         </parameter>
7157       </parameters>
7158     </function>
7159     <function name="language_from_string"
7160               c:identifier="pango_language_from_string">
7161       <doc xml:whitespace="preserve">Take a RFC-3066 format language tag as a string and convert it to a
7162 #PangoLanguage pointer that can be efficiently copied (copy the
7163 pointer) and compared with other language tags (compare the
7164 pointer.)
7165 This function first canonicalizes the string by converting it to
7166 lowercase, mapping '_' to '-', and stripping all characters other
7167 than letters and '-'.
7168 Use pango_language_get_default() if you want to get the #PangoLanguage for
7169 the current locale of the process.
7170 if @language was %NULL.  The returned pointer will be valid
7171 forever after, and should not be freed.</doc>
7172       <return-value transfer-ownership="full">
7173         <doc xml:whitespace="preserve">an opaque pointer to a #PangoLanguage structure, or %NULL</doc>
7174         <type name="Language" c:type="PangoLanguage*"/>
7175       </return-value>
7176       <parameters>
7177         <parameter name="language" transfer-ownership="none">
7178           <doc xml:whitespace="preserve">a string representing a language tag, or %NULL</doc>
7179           <type name="utf8" c:type="char*"/>
7180         </parameter>
7181       </parameters>
7182     </function>
7183     <function name="language_get_default"
7184               c:identifier="pango_language_get_default"
7185               version="1.16">
7186       <doc xml:whitespace="preserve">Returns the #PangoLanguage for the current locale of the process.
7187 Note that this can change over the life of an application.
7188 On Unix systems, this is the return value is derived from
7189 &lt;literal&gt;setlocale(LC_CTYPE, NULL)&lt;/literal&gt;, and the user can
7190 affect this through the environment variables LC_ALL, LC_CTYPE or
7191 LANG (checked in that order). The locale string typically is in
7192 the form lang_COUNTRY, where lang is an ISO-639 language code, and
7193 COUNTRY is an ISO-3166 country code. For instance, sv_FI for
7194 Swedish as written in Finland or pt_BR for Portuguese as written in
7195 Brazil.
7196 On Windows, the C library does not use any such environment
7197 variables, and setting them won't affect the behavior of functions
7198 like ctime(). The user sets the locale through the Regional Options
7199 in the Control Panel. The C library (in the setlocale() function)
7200 does not use country and language codes, but country and language
7201 names spelled out in English.
7202 However, this function does check the above environment
7203 variables, and does return a Unix-style locale string based on
7204 either said environment variables or the thread's current locale.
7205 Your application should call &lt;literal&gt;setlocale(LC_ALL, "");&lt;/literal&gt;
7206 for the user settings to take effect.  Gtk+ does this in its initialization
7207 functions automatically (by calling gtk_set_locale()).
7208 See &lt;literal&gt;man setlocale&lt;/literal&gt; for more details.
7209 freed.</doc>
7210       <return-value transfer-ownership="full">
7211         <doc xml:whitespace="preserve">the default language as a #PangoLanguage, must not be</doc>
7212         <type name="Language" c:type="PangoLanguage*"/>
7213       </return-value>
7214     </function>
7215     <function name="log2vis_get_embedding_levels"
7216               c:identifier="pango_log2vis_get_embedding_levels"
7217               version="1.4">
7218       <doc xml:whitespace="preserve">This will return the bidirectional embedding levels of the input paragraph
7219 as defined by the Unicode Bidirectional Algorithm available at:
7220 http://www.unicode.org/reports/tr9/
7221 If the input base direction is a weak direction, the direction of the
7222 characters in the text will determine the final resolved direction.
7223 character (not byte), that should be freed using g_free.</doc>
7224       <return-value transfer-ownership="none">
7225         <doc xml:whitespace="preserve">a newly allocated array of embedding levels, one item per</doc>
7226         <type name="guint8" c:type="guint8*"/>
7227       </return-value>
7228       <parameters>
7229         <parameter name="text" transfer-ownership="none">
7230           <doc xml:whitespace="preserve">the text to itemize.</doc>
7231           <type name="utf8" c:type="gchar*"/>
7232         </parameter>
7233         <parameter name="length" transfer-ownership="none">
7234           <doc xml:whitespace="preserve">the number of bytes (not characters) to process, or -1 if @text is nul-terminated and the length should be calculated.</doc>
7235           <type name="gint" c:type="int"/>
7236         </parameter>
7237         <parameter name="pbase_dir" transfer-ownership="none">
7238           <doc xml:whitespace="preserve">input base direction, and output resolved direction.</doc>
7239           <type name="Direction" c:type="PangoDirection*"/>
7240         </parameter>
7241       </parameters>
7242     </function>
7243     <function name="parse_enum" c:identifier="pango_parse_enum" version="1.16">
7244       <doc xml:whitespace="preserve">Parses an enum type and stores the result in @value.
7245 If @str does not match the nick name of any of the possible values for the
7246 enum and is not an integer, %FALSE is returned, a warning is issued
7247 if @warn is %TRUE, and a
7248 string representing the list of possible values is stored in
7249 "none/start/middle/end".  If failed and @possible_values is not %NULL,
7250 returned string should be freed using g_free().</doc>
7251       <return-value transfer-ownership="none">
7252         <doc xml:whitespace="preserve">%TRUE if @str was successfully parsed.</doc>
7253         <type name="gboolean" c:type="gboolean"/>
7254       </return-value>
7255       <parameters>
7256         <parameter name="type" transfer-ownership="none">
7257           <doc xml:whitespace="preserve">enum type to parse, eg. %PANGO_TYPE_ELLIPSIZE_MODE.</doc>
7258           <type name="GType" c:type="GType"/>
7259         </parameter>
7260         <parameter name="str" transfer-ownership="none">
7261           <doc xml:whitespace="preserve">string to parse.  May be %NULL.</doc>
7262           <type name="utf8" c:type="char*"/>
7263         </parameter>
7264         <parameter name="value" transfer-ownership="none">
7265           <doc xml:whitespace="preserve">integer to store the result in, or %NULL.</doc>
7266           <type name="gint" c:type="int*"/>
7267         </parameter>
7268         <parameter name="warn" transfer-ownership="none">
7269           <doc xml:whitespace="preserve">if %TRUE, issue a g_warning() on bad input.</doc>
7270           <type name="gboolean" c:type="gboolean"/>
7271         </parameter>
7272         <parameter name="possible_values" transfer-ownership="none">
7273           <doc xml:whitespace="preserve">place to store list of possible values on failure, or %NULL.</doc>
7274           <type name="utf8" c:type="char**"/>
7275         </parameter>
7276       </parameters>
7277     </function>
7278     <function name="parse_markup"
7279               c:identifier="pango_parse_markup"
7280               introspectable="0"
7281               throws="1">
7282       <doc xml:whitespace="preserve">Parses marked-up text (see
7283 &lt;link linkend="PangoMarkupFormat"&gt;markup format&lt;/link&gt;) to create
7284 a plain-text string and an attribute list.
7285 If @accel_marker is nonzero, the given character will mark the
7286 character following it as an accelerator. For example, @accel_marker
7287 might be an ampersand or underscore. All characters marked
7288 as an accelerator will receive a %PANGO_UNDERLINE_LOW attribute,
7289 and the first character so marked will be returned in @accel_char.
7290 Two @accel_marker characters following each other produce a single
7291 literal @accel_marker character.
7292 If any error happens, none of the output arguments are touched except
7293 for @error.</doc>
7294       <return-value transfer-ownership="none">
7295         <doc xml:whitespace="preserve">%FALSE if @error is set, otherwise %TRUE</doc>
7296         <type name="gboolean" c:type="gboolean"/>
7297       </return-value>
7298       <parameters>
7299         <parameter name="markup_text" transfer-ownership="none">
7300           <doc xml:whitespace="preserve">markup to parse (see &lt;link linkend="PangoMarkupFormat"&gt;markup format&lt;/link&gt;)</doc>
7301           <type name="utf8" c:type="char*"/>
7302         </parameter>
7303         <parameter name="length" transfer-ownership="none">
7304           <doc xml:whitespace="preserve">length of @markup_text, or -1 if nul-terminated</doc>
7305           <type name="gint" c:type="int"/>
7306         </parameter>
7307         <parameter name="accel_marker" transfer-ownership="none">
7308           <doc xml:whitespace="preserve">character that precedes an accelerator, or 0 for none</doc>
7309           <type name="gunichar" c:type="gunichar"/>
7310         </parameter>
7311         <parameter name="attr_list" transfer-ownership="none">
7312           <doc xml:whitespace="preserve">address of return location for a #PangoAttrList, or %NULL</doc>
7313           <type name="AttrList" c:type="PangoAttrList**"/>
7314         </parameter>
7315         <parameter name="text" transfer-ownership="none">
7316           <doc xml:whitespace="preserve">address of return location for text with tags stripped, or %NULL</doc>
7317           <type name="utf8" c:type="char**"/>
7318         </parameter>
7319         <parameter name="accel_char" transfer-ownership="none">
7320           <doc xml:whitespace="preserve">address of return location for accelerator char, or %NULL</doc>
7321           <type name="gunichar" c:type="gunichar*"/>
7322         </parameter>
7323       </parameters>
7324     </function>
7325     <function name="parse_stretch" c:identifier="pango_parse_stretch">
7326       <doc xml:whitespace="preserve">Parses a font stretch. The allowed values are
7327 "ultra_condensed", "extra_condensed", "condensed",
7328 "semi_condensed", "normal", "semi_expanded", "expanded",
7329 "extra_expanded" and "ultra_expanded". Case variations are
7330 ignored and the '_' characters may be omitted.</doc>
7331       <return-value transfer-ownership="none">
7332         <doc xml:whitespace="preserve">%TRUE if @str was successfully parsed.</doc>
7333         <type name="gboolean" c:type="gboolean"/>
7334       </return-value>
7335       <parameters>
7336         <parameter name="str" transfer-ownership="none">
7337           <doc xml:whitespace="preserve">a string to parse.</doc>
7338           <type name="utf8" c:type="char*"/>
7339         </parameter>
7340         <parameter name="stretch" transfer-ownership="none">
7341           <doc xml:whitespace="preserve">a #PangoStretch to store the result in.</doc>
7342           <type name="Stretch" c:type="PangoStretch*"/>
7343         </parameter>
7344         <parameter name="warn" transfer-ownership="none">
7345           <doc xml:whitespace="preserve">if %TRUE, issue a g_warning() on bad input.</doc>
7346           <type name="gboolean" c:type="gboolean"/>
7347         </parameter>
7348       </parameters>
7349     </function>
7350     <function name="parse_style" c:identifier="pango_parse_style">
7351       <doc xml:whitespace="preserve">Parses a font style. The allowed values are "normal",
7352 "italic" and "oblique", case variations being
7353 ignored.</doc>
7354       <return-value transfer-ownership="none">
7355         <doc xml:whitespace="preserve">%TRUE if @str was successfully parsed.</doc>
7356         <type name="gboolean" c:type="gboolean"/>
7357       </return-value>
7358       <parameters>
7359         <parameter name="str" transfer-ownership="none">
7360           <doc xml:whitespace="preserve">a string to parse.</doc>
7361           <type name="utf8" c:type="char*"/>
7362         </parameter>
7363         <parameter name="style" transfer-ownership="none">
7364           <doc xml:whitespace="preserve">a #PangoStyle to store the result in.</doc>
7365           <type name="Style" c:type="PangoStyle*"/>
7366         </parameter>
7367         <parameter name="warn" transfer-ownership="none">
7368           <doc xml:whitespace="preserve">if %TRUE, issue a g_warning() on bad input.</doc>
7369           <type name="gboolean" c:type="gboolean"/>
7370         </parameter>
7371       </parameters>
7372     </function>
7373     <function name="parse_variant" c:identifier="pango_parse_variant">
7374       <doc xml:whitespace="preserve">Parses a font variant. The allowed values are "normal"
7375 and "smallcaps" or "small_caps", case variations being
7376 ignored.</doc>
7377       <return-value transfer-ownership="none">
7378         <doc xml:whitespace="preserve">%TRUE if @str was successfully parsed.</doc>
7379         <type name="gboolean" c:type="gboolean"/>
7380       </return-value>
7381       <parameters>
7382         <parameter name="str" transfer-ownership="none">
7383           <doc xml:whitespace="preserve">a string to parse.</doc>
7384           <type name="utf8" c:type="char*"/>
7385         </parameter>
7386         <parameter name="variant" transfer-ownership="none">
7387           <doc xml:whitespace="preserve">a #PangoVariant to store the result in.</doc>
7388           <type name="Variant" c:type="PangoVariant*"/>
7389         </parameter>
7390         <parameter name="warn" transfer-ownership="none">
7391           <doc xml:whitespace="preserve">if %TRUE, issue a g_warning() on bad input.</doc>
7392           <type name="gboolean" c:type="gboolean"/>
7393         </parameter>
7394       </parameters>
7395     </function>
7396     <function name="parse_weight" c:identifier="pango_parse_weight">
7397       <doc xml:whitespace="preserve">Parses a font weight. The allowed values are "heavy",
7398 "ultrabold", "bold", "normal", "light", "ultraleight"
7399 and integers. Case variations are ignored.</doc>
7400       <return-value transfer-ownership="none">
7401         <doc xml:whitespace="preserve">%TRUE if @str was successfully parsed.</doc>
7402         <type name="gboolean" c:type="gboolean"/>
7403       </return-value>
7404       <parameters>
7405         <parameter name="str" transfer-ownership="none">
7406           <doc xml:whitespace="preserve">a string to parse.</doc>
7407           <type name="utf8" c:type="char*"/>
7408         </parameter>
7409         <parameter name="weight" transfer-ownership="none">
7410           <doc xml:whitespace="preserve">a #PangoWeight to store the result in.</doc>
7411           <type name="Weight" c:type="PangoWeight*"/>
7412         </parameter>
7413         <parameter name="warn" transfer-ownership="none">
7414           <doc xml:whitespace="preserve">if %TRUE, issue a g_warning() on bad input.</doc>
7415           <type name="gboolean" c:type="gboolean"/>
7416         </parameter>
7417       </parameters>
7418     </function>
7419     <function name="quantize_line_geometry"
7420               c:identifier="pango_quantize_line_geometry"
7421               version="1.12">
7422       <doc xml:whitespace="preserve">Quantizes the thickness and position of a line, typically an
7423 underline or strikethrough, to whole device pixels, that is integer
7424 multiples of %PANGO_SCALE. The purpose of this function is to avoid
7425 such lines looking blurry.
7426 Care is taken to make sure @thickness is at least one pixel when this
7427 function returns, but returned @position may become zero as a result
7428 of rounding.</doc>
7429       <return-value transfer-ownership="none">
7430         <type name="none" c:type="void"/>
7431       </return-value>
7432       <parameters>
7433         <parameter name="thickness" transfer-ownership="none">
7434           <doc xml:whitespace="preserve">pointer to the thickness of a line, in Pango units</doc>
7435           <type name="gint" c:type="int*"/>
7436         </parameter>
7437         <parameter name="position" transfer-ownership="none">
7438           <doc xml:whitespace="preserve">corresponding position</doc>
7439           <type name="gint" c:type="int*"/>
7440         </parameter>
7441       </parameters>
7442     </function>
7443     <function name="read_line" c:identifier="pango_read_line">
7444       <doc xml:whitespace="preserve">Reads an entire line from a file into a buffer. Lines may
7445 be delimited with '\n', '\r', '\n\r', or '\r\n'. The delimiter
7446 is not written into the buffer. Text after a '#' character is treated as
7447 a comment and skipped. '\' can be used to escape a # character.
7448 '\' proceeding a line delimiter combines adjacent lines. A '\' proceeding
7449 any other character is ignored and written into the output buffer
7450 unmodified.
7451 the number of lines read (this is useful for maintaining
7452 a line number counter which doesn't combine lines with '\')</doc>
7453       <return-value transfer-ownership="none">
7454         <doc xml:whitespace="preserve">0 if the stream was already at an %EOF character, otherwise</doc>
7455         <type name="gint" c:type="gint"/>
7456       </return-value>
7457       <parameters>
7458         <parameter name="stream" transfer-ownership="none">
7459           <doc xml:whitespace="preserve">a stdio stream</doc>
7460           <type name="gpointer" c:type="FILE*"/>
7461         </parameter>
7462         <parameter name="str" transfer-ownership="none">
7463           <doc xml:whitespace="preserve">#GString buffer into which to write the result</doc>
7464           <type name="GLib.String" c:type="GString*"/>
7465         </parameter>
7466       </parameters>
7467     </function>
7468     <function name="reorder_items"
7469               c:identifier="pango_reorder_items"
7470               introspectable="0">
7471       <doc xml:whitespace="preserve">From a list of items in logical order and the associated
7472 directional levels, produce a list in visual order.
7473 The original list is unmodified.
7474 (Please open a bug if you use this function.
7475 It is not a particularly convenient interface, and the code
7476 is duplicated elsewhere in Pango for that reason.)</doc>
7477       <return-value>
7478         <doc xml:whitespace="preserve">a #GList of #PangoItem structures in visual order.</doc>
7479         <type name="GLib.List" c:type="GList*">
7480           <type name="gpointer" c:type="gpointer"/>
7481         </type>
7482       </return-value>
7483       <parameters>
7484         <parameter name="logical_items" transfer-ownership="none">
7485           <doc xml:whitespace="preserve">a #GList of #PangoItem in logical order.</doc>
7486           <type name="GLib.List" c:type="GList*">
7487             <type name="gpointer" c:type="gpointer"/>
7488           </type>
7489         </parameter>
7490       </parameters>
7491     </function>
7492     <function name="scan_int" c:identifier="pango_scan_int">
7493       <doc xml:whitespace="preserve">Scans an integer.
7494 Leading white space is skipped.</doc>
7495       <return-value transfer-ownership="none">
7496         <doc xml:whitespace="preserve">%FALSE if a parse error occurred.</doc>
7497         <type name="gboolean" c:type="gboolean"/>
7498       </return-value>
7499       <parameters>
7500         <parameter name="pos" transfer-ownership="none">
7501           <doc xml:whitespace="preserve">in/out string position</doc>
7502           <type name="utf8" c:type="char**"/>
7503         </parameter>
7504         <parameter name="out" transfer-ownership="none">
7505           <doc xml:whitespace="preserve">an int into which to write the result</doc>
7506           <type name="gint" c:type="int*"/>
7507         </parameter>
7508       </parameters>
7509     </function>
7510     <function name="scan_string" c:identifier="pango_scan_string">
7511       <doc xml:whitespace="preserve">Scans a string into a #GString buffer. The string may either
7512 be a sequence of non-white-space characters, or a quoted
7513 string with '"'. Instead a quoted string, '\"' represents
7514 a literal quote. Leading white space outside of quotes is skipped.</doc>
7515       <return-value transfer-ownership="none">
7516         <doc xml:whitespace="preserve">%FALSE if a parse error occurred.</doc>
7517         <type name="gboolean" c:type="gboolean"/>
7518       </return-value>
7519       <parameters>
7520         <parameter name="pos" transfer-ownership="none">
7521           <doc xml:whitespace="preserve">in/out string position</doc>
7522           <type name="utf8" c:type="char**"/>
7523         </parameter>
7524         <parameter name="out" transfer-ownership="none">
7525           <doc xml:whitespace="preserve">a #GString into which to write the result</doc>
7526           <type name="GLib.String" c:type="GString*"/>
7527         </parameter>
7528       </parameters>
7529     </function>
7530     <function name="scan_word" c:identifier="pango_scan_word">
7531       <doc xml:whitespace="preserve">Scans a word into a #GString buffer. A word consists
7532 of [A-Za-z_] followed by zero or more [A-Za-z_0-9]
7533 Leading white space is skipped.</doc>
7534       <return-value transfer-ownership="none">
7535         <doc xml:whitespace="preserve">%FALSE if a parse error occurred.</doc>
7536         <type name="gboolean" c:type="gboolean"/>
7537       </return-value>
7538       <parameters>
7539         <parameter name="pos" transfer-ownership="none">
7540           <doc xml:whitespace="preserve">in/out string position</doc>
7541           <type name="utf8" c:type="char**"/>
7542         </parameter>
7543         <parameter name="out" transfer-ownership="none">
7544           <doc xml:whitespace="preserve">a #GString into which to write the result</doc>
7545           <type name="GLib.String" c:type="GString*"/>
7546         </parameter>
7547       </parameters>
7548     </function>
7549     <function name="script_for_unichar"
7550               c:identifier="pango_script_for_unichar"
7551               version="1.4"
7552               introspectable="0">
7553       <doc xml:whitespace="preserve">Looks up the #PangoScript for a particular character (as defined by
7554 Unicode Standard Annex #24). No check is made for @ch being a
7555 valid Unicode character; if you pass in invalid character, the
7556 result is undefined.
7557 As of Pango 1.18, this function simply returns the return value of
7558 g_unichar_get_script().</doc>
7559       <return-value transfer-ownership="none">
7560         <doc xml:whitespace="preserve">the #PangoScript for the character.</doc>
7561         <type name="Script" c:type="PangoScript"/>
7562       </return-value>
7563       <parameters>
7564         <parameter name="ch" transfer-ownership="none">
7565           <doc xml:whitespace="preserve">a Unicode character</doc>
7566           <type name="gunichar" c:type="gunichar"/>
7567         </parameter>
7568       </parameters>
7569     </function>
7570     <function name="script_get_sample_language"
7571               c:identifier="pango_script_get_sample_language"
7572               version="1.4">
7573       <doc xml:whitespace="preserve">Given a script, finds a language tag that is reasonably
7574 representative of that script. This will usually be the
7575 most widely spoken or used language written in that script:
7576 for instance, the sample language for %PANGO_SCRIPT_CYRILLIC
7577 is &lt;literal&gt;ru&lt;/literal&gt; (Russian), the sample language
7578 for %PANGO_SCRIPT_ARABIC is &lt;literal&gt;ar&lt;/literal&gt;.
7579 For some
7580 scripts, no sample language will be returned because there
7581 is no language that is sufficiently representative. The best
7582 example of this is %PANGO_SCRIPT_HAN, where various different
7583 variants of written Chinese, Japanese, and Korean all use
7584 significantly different sets of Han characters and forms
7585 of shared characters. No sample language can be provided
7586 for many historical scripts as well.
7587 As of 1.18, this function checks the environment variables
7588 PANGO_LANGUAGE and LANGUAGE (checked in that order) first.
7589 If one of them is set, it is parsed as a list of language tags
7590 separated by colons or other separators.  This function
7591 will return the first language in the parsed list that Pango
7592 believes may use @script for writing.  This last predicate
7593 is tested using pango_language_includes_script().  This can
7594 be used to control Pango's font selection for non-primary
7595 languages.  For example, a PANGO_LANGUAGE enviroment variable
7596 set to "en:fa" makes Pango choose fonts suitable for Persian (fa) 
7597 instead of Arabic (ar) when a segment of Arabic text is found
7598 in an otherwise non-Arabic text.  The same trick can be used to
7599 choose a default language for %PANGO_SCRIPT_HAN when setting
7600 context language is not feasible.
7601 of the script, or %NULL if no such language exists.</doc>
7602       <return-value transfer-ownership="full">
7603         <doc xml:whitespace="preserve">a #PangoLanguage that is representative</doc>
7604         <type name="Language" c:type="PangoLanguage*"/>
7605       </return-value>
7606       <parameters>
7607         <parameter name="script" transfer-ownership="none">
7608           <doc xml:whitespace="preserve">a #PangoScript</doc>
7609           <type name="Script" c:type="PangoScript"/>
7610         </parameter>
7611       </parameters>
7612     </function>
7613     <function name="script_iter_new"
7614               c:identifier="pango_script_iter_new"
7615               version="1.4"
7616               introspectable="0">
7617       <doc xml:whitespace="preserve">Create a new #PangoScriptIter, used to break a string of
7618 Unicode into runs by text. No copy is made of @text, so
7619 the caller needs to make sure it remains valid until
7620 the iterator is freed with pango_script_iter_free().
7621 to point at the first range in the text, which should be
7622 freed with pango_script_iter_free(). If the string is
7623 empty, it will point at an empty range.</doc>
7624       <return-value>
7625         <doc xml:whitespace="preserve">the new script iterator, initialized</doc>
7626         <type name="ScriptIter" c:type="PangoScriptIter*"/>
7627       </return-value>
7628       <parameters>
7629         <parameter name="text" transfer-ownership="none">
7630           <doc xml:whitespace="preserve">a UTF-8 string</doc>
7631           <type name="utf8" c:type="char*"/>
7632         </parameter>
7633         <parameter name="length" transfer-ownership="none">
7634           <doc xml:whitespace="preserve">length of @text, or -1 if @text is nul-terminated.</doc>
7635           <type name="gint" c:type="int"/>
7636         </parameter>
7637       </parameters>
7638     </function>
7639     <function name="shape" c:identifier="pango_shape">
7640       <doc xml:whitespace="preserve">Given a segment of text and the corresponding
7641 #PangoAnalysis structure returned from pango_itemize(),
7642 convert the characters into glyphs. You may also pass
7643 in only a substring of the item from pango_itemize().</doc>
7644       <return-value transfer-ownership="none">
7645         <type name="none" c:type="void"/>
7646       </return-value>
7647       <parameters>
7648         <parameter name="text" transfer-ownership="none">
7649           <doc xml:whitespace="preserve">the text to process</doc>
7650           <type name="utf8" c:type="gchar*"/>
7651         </parameter>
7652         <parameter name="length" transfer-ownership="none">
7653           <doc xml:whitespace="preserve">the length (in bytes) of @text</doc>
7654           <type name="gint" c:type="gint"/>
7655         </parameter>
7656         <parameter name="analysis" transfer-ownership="none">
7657           <doc xml:whitespace="preserve">#PangoAnalysis structure from pango_itemize()</doc>
7658           <type name="Analysis" c:type="PangoAnalysis*"/>
7659         </parameter>
7660         <parameter name="glyphs" transfer-ownership="none">
7661           <doc xml:whitespace="preserve">glyph string in which to store results</doc>
7662           <type name="GlyphString" c:type="PangoGlyphString*"/>
7663         </parameter>
7664       </parameters>
7665     </function>
7666     <function name="skip_space" c:identifier="pango_skip_space">
7667       <doc xml:whitespace="preserve">Skips 0 or more characters of white space.
7668 the position at a '\0' character.</doc>
7669       <return-value transfer-ownership="none">
7670         <doc xml:whitespace="preserve">%FALSE if skipping the white space leaves</doc>
7671         <type name="gboolean" c:type="gboolean"/>
7672       </return-value>
7673       <parameters>
7674         <parameter name="pos" transfer-ownership="none">
7675           <doc xml:whitespace="preserve">in/out string position</doc>
7676           <type name="utf8" c:type="char**"/>
7677         </parameter>
7678       </parameters>
7679     </function>
7680     <function name="split_file_list"
7681               c:identifier="pango_split_file_list"
7682               introspectable="0">
7683       <doc xml:whitespace="preserve">Splits a %G_SEARCHPATH_SEPARATOR-separated list of files, stripping
7684 white space and substituting ~/ with $HOME/.</doc>
7685       <return-value>
7686         <doc xml:whitespace="preserve">a list of strings to be freed with g_strfreev()</doc>
7687         <array c:type="char**">
7688           <type name="utf8"/>
7689         </array>
7690       </return-value>
7691       <parameters>
7692         <parameter name="str" transfer-ownership="none">
7693           <doc xml:whitespace="preserve">a %G_SEARCHPATH_SEPARATOR separated list of filenames</doc>
7694           <type name="utf8" c:type="char*"/>
7695         </parameter>
7696       </parameters>
7697     </function>
7698     <function name="trim_string" c:identifier="pango_trim_string">
7699       <doc xml:whitespace="preserve">Trims leading and trailing whitespace from a string.</doc>
7700       <return-value transfer-ownership="full">
7701         <doc xml:whitespace="preserve">A newly-allocated string that must be freed with g_free()</doc>
7702         <type name="utf8" c:type="char*"/>
7703       </return-value>
7704       <parameters>
7705         <parameter name="str" transfer-ownership="none">
7706           <doc xml:whitespace="preserve">a string</doc>
7707           <type name="utf8" c:type="char*"/>
7708         </parameter>
7709       </parameters>
7710     </function>
7711     <function name="unichar_direction"
7712               c:identifier="pango_unichar_direction"
7713               introspectable="0">
7714       <doc xml:whitespace="preserve">Determines the inherent direction of a character; either
7715 %PANGO_DIRECTION_LTR, %PANGO_DIRECTION_RTL, or
7716 %PANGO_DIRECTION_NEUTRAL.
7717 This function is useful to categorize characters into left-to-right
7718 letters, right-to-left letters, and everything else.  If full
7719 Unicode bidirectional type of a character is needed,
7720 pango_bidi_type_for_gunichar() can be used instead.</doc>
7721       <return-value transfer-ownership="none">
7722         <doc xml:whitespace="preserve">the direction of the character.</doc>
7723         <type name="Direction" c:type="PangoDirection"/>
7724       </return-value>
7725       <parameters>
7726         <parameter name="ch" transfer-ownership="none">
7727           <doc xml:whitespace="preserve">a Unicode character</doc>
7728           <type name="gunichar" c:type="gunichar"/>
7729         </parameter>
7730       </parameters>
7731     </function>
7732     <function name="units_from_double"
7733               c:identifier="pango_units_from_double"
7734               version="1.16">
7735       <doc xml:whitespace="preserve">it by %PANGO_SCALE and rounds to nearest integer.</doc>
7736       <return-value transfer-ownership="none">
7737         <doc xml:whitespace="preserve">the value in Pango units.</doc>
7738         <type name="gint" c:type="int"/>
7739       </return-value>
7740       <parameters>
7741         <parameter name="d" transfer-ownership="none">
7742           <doc xml:whitespace="preserve">double floating-point value</doc>
7743           <type name="gdouble" c:type="double"/>
7744         </parameter>
7745       </parameters>
7746     </function>
7747     <function name="units_to_double"
7748               c:identifier="pango_units_to_double"
7749               version="1.16">
7750       <doc xml:whitespace="preserve">it by %PANGO_SCALE.</doc>
7751       <return-value transfer-ownership="none">
7752         <doc xml:whitespace="preserve">the double value.</doc>
7753         <type name="gdouble" c:type="double"/>
7754       </return-value>
7755       <parameters>
7756         <parameter name="i" transfer-ownership="none">
7757           <doc xml:whitespace="preserve">value in Pango units</doc>
7758           <type name="gint" c:type="int"/>
7759         </parameter>
7760       </parameters>
7761     </function>
7762     <function name="version" c:identifier="pango_version" version="1.16">
7763       <doc xml:whitespace="preserve">This is similar to the macro %PANGO_VERSION except that
7764 it returns the encoded version of Pango available at run-time,
7765 as opposed to the version available at compile-time.
7766 A version number can be encoded into an integer using
7767 PANGO_VERSION_ENCODE().
7768 available at run time.</doc>
7769       <return-value transfer-ownership="none">
7770         <doc xml:whitespace="preserve">The encoded version of Pango library</doc>
7771         <type name="gint" c:type="int"/>
7772       </return-value>
7773     </function>
7774     <function name="version_check"
7775               c:identifier="pango_version_check"
7776               version="1.16">
7777       <doc xml:whitespace="preserve">Checks that the Pango library in use is compatible with the
7778 given version. Generally you would pass in the constants
7779 %PANGO_VERSION_MAJOR, %PANGO_VERSION_MINOR, %PANGO_VERSION_MICRO
7780 as the three arguments to this function; that produces
7781 a check that the library in use at run-time is compatible with
7782 the version of Pango the application or module was compiled against.
7783 of the running library is newer than the version
7784 the running library must be binary compatible with the
7785 version @required_major.required_minor.@required_micro
7786 (same major version.)
7787 For compile-time version checking use PANGO_VERSION_CHECK().
7788 given version, or a string describing the version mismatch.
7789 The returned string is owned by Pango and should not be modified
7790 or freed.</doc>
7791       <return-value transfer-ownership="none">
7792         <doc xml:whitespace="preserve">%NULL if the Pango library is compatible with the</doc>
7793         <type name="utf8" c:type="char*"/>
7794       </return-value>
7795       <parameters>
7796         <parameter name="required_major" transfer-ownership="none">
7797           <doc xml:whitespace="preserve">the required major version.</doc>
7798           <type name="gint" c:type="int"/>
7799         </parameter>
7800         <parameter name="required_minor" transfer-ownership="none">
7801           <doc xml:whitespace="preserve">the required minor version.</doc>
7802           <type name="gint" c:type="int"/>
7803         </parameter>
7804         <parameter name="required_micro" transfer-ownership="none">
7805           <doc xml:whitespace="preserve">the required major version.</doc>
7806           <type name="gint" c:type="int"/>
7807         </parameter>
7808       </parameters>
7809     </function>
7810     <function name="version_string"
7811               c:identifier="pango_version_string"
7812               version="1.16">
7813       <doc xml:whitespace="preserve">This is similar to the macro %PANGO_VERSION_STRING except that
7814 it returns the version of Pango available at run-time, as opposed to
7815 the version available at compile-time.
7816 available at run time.
7817 The returned string is owned by Pango and should not be modified
7818 or freed.</doc>
7819       <return-value transfer-ownership="none">
7820         <doc xml:whitespace="preserve">A string containing the version of Pango library</doc>
7821         <type name="utf8" c:type="char*"/>
7822       </return-value>
7823     </function>
7824   </namespace>
7825 </repository>