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