32
30
<h2><span class="refentrytitle"><a name="pango-Text-Attributes.top_of_page"></a>Text Attributes</span></h2>
33
31
<p>Text Attributes — Font and other attributes for annotating text</p>
35
<td valign="top" align="right"></td>
33
<td class="gallery_image" valign="top" align="right"></td>
36
34
</tr></table></div>
37
<div class="refsynopsisdiv">
38
<a name="pango-Text-Attributes.synopsis"></a><h2>Synopsis</h2>
39
<a name="PangoAttrType"></a><a name="PangoUnderline"></a><a name="PangoColor"></a><a name="PangoAttrList"></a><pre class="synopsis">enum <a class="link" href="pango-Text-Attributes.html#PangoAttrType-enum" title="enum PangoAttrType">PangoAttrType</a>;
40
#define <a class="link" href="pango-Text-Attributes.html#PANGO-TYPE-ATTR-TYPE:CAPS" title="PANGO_TYPE_ATTR_TYPE">PANGO_TYPE_ATTR_TYPE</a>
41
struct <a class="link" href="pango-Text-Attributes.html#PangoAttrClass" title="struct PangoAttrClass">PangoAttrClass</a>;
42
struct <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute">PangoAttribute</a>;
43
#define <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-INDEX-FROM-TEXT-BEGINNING:CAPS" title="PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING">PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING</a>
44
#define <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-INDEX-TO-TEXT-END:CAPS" title="PANGO_ATTR_INDEX_TO_TEXT_END">PANGO_ATTR_INDEX_TO_TEXT_END</a>
45
struct <a class="link" href="pango-Text-Attributes.html#PangoAttrString" title="struct PangoAttrString">PangoAttrString</a>;
46
struct <a class="link" href="pango-Text-Attributes.html#PangoAttrLanguage" title="struct PangoAttrLanguage">PangoAttrLanguage</a>;
47
struct <a class="link" href="pango-Text-Attributes.html#PangoAttrColor" title="struct PangoAttrColor">PangoAttrColor</a>;
48
struct <a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt">PangoAttrInt</a>;
49
struct <a class="link" href="pango-Text-Attributes.html#PangoAttrFloat" title="struct PangoAttrFloat">PangoAttrFloat</a>;
50
struct <a class="link" href="pango-Text-Attributes.html#PangoAttrFontDesc" title="struct PangoAttrFontDesc">PangoAttrFontDesc</a>;
51
struct <a class="link" href="pango-Text-Attributes.html#PangoAttrShape" title="struct PangoAttrShape">PangoAttrShape</a>;
52
struct <a class="link" href="pango-Text-Attributes.html#PangoAttrSize" title="struct PangoAttrSize">PangoAttrSize</a>;
53
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="pango-Text-Attributes.html#pango-parse-markup" title="pango_parse_markup ()">pango_parse_markup</a> (<em class="parameter"><code>const <span class="type">char</span> *markup_text</code></em>,
54
<em class="parameter"><code><span class="type">int</span> length</code></em>,
55
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Unicode-Manipulation.html#gunichar"><span class="type">gunichar</span></a> accel_marker</code></em>,
56
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> **attr_list</code></em>,
57
<em class="parameter"><code><span class="type">char</span> **text</code></em>,
58
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Unicode-Manipulation.html#gunichar"><span class="type">gunichar</span></a> *accel_char</code></em>,
59
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
60
<a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#GMarkupParseContext"><span class="returnvalue">GMarkupParseContext</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-markup-parser-new" title="pango_markup_parser_new ()">pango_markup_parser_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Unicode-Manipulation.html#gunichar"><span class="type">gunichar</span></a> accel_marker</code></em>);
61
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="pango-Text-Attributes.html#pango-markup-parser-finish" title="pango_markup_parser_finish ()">pango_markup_parser_finish</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>,
62
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> **attr_list</code></em>,
63
<em class="parameter"><code><span class="type">char</span> **text</code></em>,
64
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Unicode-Manipulation.html#gunichar"><span class="type">gunichar</span></a> *accel_char</code></em>,
65
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
66
<a class="link" href="pango-Text-Attributes.html#PangoAttrType"><span class="returnvalue">PangoAttrType</span></a> <a class="link" href="pango-Text-Attributes.html#pango-attr-type-register" title="pango_attr_type_register ()">pango_attr_type_register</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);
67
const <span class="returnvalue">char</span> * <a class="link" href="pango-Text-Attributes.html#pango-attr-type-get-name" title="pango_attr_type_get_name ()">pango_attr_type_get_name</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrType"><span class="type">PangoAttrType</span></a> type</code></em>);
68
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Attributes.html#pango-attribute-init" title="pango_attribute_init ()">pango_attribute_init</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr</code></em>,
69
<em class="parameter"><code>const <a class="link" href="pango-Text-Attributes.html#PangoAttrClass" title="struct PangoAttrClass"><span class="type">PangoAttrClass</span></a> *klass</code></em>);
70
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attribute-copy" title="pango_attribute_copy ()">pango_attribute_copy</a> (<em class="parameter"><code>const <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr</code></em>);
71
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="pango-Text-Attributes.html#pango-attribute-equal" title="pango_attribute_equal ()">pango_attribute_equal</a> (<em class="parameter"><code>const <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr1</code></em>,
72
<em class="parameter"><code>const <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr2</code></em>);
73
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()">pango_attribute_destroy</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr</code></em>);
75
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-language-new" title="pango_attr_language_new ()">pango_attr_language_new</a> (<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);
76
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-family-new" title="pango_attr_family_new ()">pango_attr_family_new</a> (<em class="parameter"><code>const <span class="type">char</span> *family</code></em>);
77
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-style-new" title="pango_attr_style_new ()">pango_attr_style_new</a> (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoStyle"><span class="type">PangoStyle</span></a> style</code></em>);
78
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-variant-new" title="pango_attr_variant_new ()">pango_attr_variant_new</a> (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoVariant"><span class="type">PangoVariant</span></a> variant</code></em>);
79
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-stretch-new" title="pango_attr_stretch_new ()">pango_attr_stretch_new</a> (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoStretch"><span class="type">PangoStretch</span></a> stretch</code></em>);
80
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-weight-new" title="pango_attr_weight_new ()">pango_attr_weight_new</a> (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoWeight"><span class="type">PangoWeight</span></a> weight</code></em>);
81
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-size-new" title="pango_attr_size_new ()">pango_attr_size_new</a> (<em class="parameter"><code><span class="type">int</span> size</code></em>);
82
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-size-new-absolute" title="pango_attr_size_new_absolute ()">pango_attr_size_new_absolute</a> (<em class="parameter"><code><span class="type">int</span> size</code></em>);
83
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-font-desc-new" title="pango_attr_font_desc_new ()">pango_attr_font_desc_new</a> (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
84
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-foreground-new" title="pango_attr_foreground_new ()">pango_attr_foreground_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> red</code></em>,
85
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> green</code></em>,
86
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> blue</code></em>);
87
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-background-new" title="pango_attr_background_new ()">pango_attr_background_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> red</code></em>,
88
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> green</code></em>,
89
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> blue</code></em>);
90
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-strikethrough-new" title="pango_attr_strikethrough_new ()">pango_attr_strikethrough_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> strikethrough</code></em>);
91
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-strikethrough-color-new" title="pango_attr_strikethrough_color_new ()">pango_attr_strikethrough_color_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> red</code></em>,
92
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> green</code></em>,
93
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> blue</code></em>);
94
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-underline-new" title="pango_attr_underline_new ()">pango_attr_underline_new</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoUnderline"><span class="type">PangoUnderline</span></a> underline</code></em>);
95
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-underline-color-new" title="pango_attr_underline_color_new ()">pango_attr_underline_color_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> red</code></em>,
96
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> green</code></em>,
97
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> blue</code></em>);
98
enum <a class="link" href="pango-Text-Attributes.html#PangoUnderline-enum" title="enum PangoUnderline">PangoUnderline</a>;
99
#define <a class="link" href="pango-Text-Attributes.html#PANGO-TYPE-UNDERLINE:CAPS" title="PANGO_TYPE_UNDERLINE">PANGO_TYPE_UNDERLINE</a>
100
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-shape-new" title="pango_attr_shape_new ()">pango_attr_shape_new</a> (<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
101
<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);
102
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-shape-new-with-data" title="pango_attr_shape_new_with_data ()">pango_attr_shape_new_with_data</a> (<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
103
<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>,
104
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
105
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrDataCopyFunc" title="PangoAttrDataCopyFunc ()"><span class="type">PangoAttrDataCopyFunc</span></a> copy_func</code></em>,
106
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy_func</code></em>);
107
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> (<a class="link" href="pango-Text-Attributes.html#PangoAttrDataCopyFunc" title="PangoAttrDataCopyFunc ()">*PangoAttrDataCopyFunc</a>) (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> user_data</code></em>);
108
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-scale-new" title="pango_attr_scale_new ()">pango_attr_scale_new</a> (<em class="parameter"><code><span class="type">double</span> scale_factor</code></em>);
109
#define <a class="link" href="pango-Text-Attributes.html#PANGO-SCALE-XX-SMALL:CAPS" title="PANGO_SCALE_XX_SMALL">PANGO_SCALE_XX_SMALL</a>
110
#define <a class="link" href="pango-Text-Attributes.html#PANGO-SCALE-X-SMALL:CAPS" title="PANGO_SCALE_X_SMALL">PANGO_SCALE_X_SMALL</a>
111
#define <a class="link" href="pango-Text-Attributes.html#PANGO-SCALE-SMALL:CAPS" title="PANGO_SCALE_SMALL">PANGO_SCALE_SMALL</a>
112
#define <a class="link" href="pango-Text-Attributes.html#PANGO-SCALE-MEDIUM:CAPS" title="PANGO_SCALE_MEDIUM">PANGO_SCALE_MEDIUM</a>
113
#define <a class="link" href="pango-Text-Attributes.html#PANGO-SCALE-LARGE:CAPS" title="PANGO_SCALE_LARGE">PANGO_SCALE_LARGE</a>
114
#define <a class="link" href="pango-Text-Attributes.html#PANGO-SCALE-X-LARGE:CAPS" title="PANGO_SCALE_X_LARGE">PANGO_SCALE_X_LARGE</a>
115
#define <a class="link" href="pango-Text-Attributes.html#PANGO-SCALE-XX-LARGE:CAPS" title="PANGO_SCALE_XX_LARGE">PANGO_SCALE_XX_LARGE</a>
116
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-rise-new" title="pango_attr_rise_new ()">pango_attr_rise_new</a> (<em class="parameter"><code><span class="type">int</span> rise</code></em>);
117
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-letter-spacing-new" title="pango_attr_letter_spacing_new ()">pango_attr_letter_spacing_new</a> (<em class="parameter"><code><span class="type">int</span> letter_spacing</code></em>);
118
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-fallback-new" title="pango_attr_fallback_new ()">pango_attr_fallback_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> enable_fallback</code></em>);
119
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-gravity-new" title="pango_attr_gravity_new ()">pango_attr_gravity_new</a> (<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="type">PangoGravity</span></a> gravity</code></em>);
120
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-gravity-hint-new" title="pango_attr_gravity_hint_new ()">pango_attr_gravity_hint_new</a> (<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravityHint"><span class="type">PangoGravityHint</span></a> hint</code></em>);
121
struct <a class="link" href="pango-Text-Attributes.html#PangoColor-struct" title="struct PangoColor">PangoColor</a>;
122
#define <a class="link" href="pango-Text-Attributes.html#PANGO-TYPE-COLOR:CAPS" title="PANGO_TYPE_COLOR">PANGO_TYPE_COLOR</a>
123
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="pango-Text-Attributes.html#pango-color-parse" title="pango_color_parse ()">pango_color_parse</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="type">PangoColor</span></a> *color</code></em>,
124
<em class="parameter"><code>const <span class="type">char</span> *spec</code></em>);
125
<a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="returnvalue">PangoColor</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-color-copy" title="pango_color_copy ()">pango_color_copy</a> (<em class="parameter"><code>const <a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="type">PangoColor</span></a> *src</code></em>);
126
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Attributes.html#pango-color-free" title="pango_color_free ()">pango_color_free</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="type">PangoColor</span></a> *color</code></em>);
127
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-color-to-string" title="pango_color_to_string ()">pango_color_to_string</a> (<em class="parameter"><code>const <a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="type">PangoColor</span></a> *color</code></em>);
129
<a class="link" href="pango-Text-Attributes.html#PangoAttrList-struct" title="PangoAttrList">PangoAttrList</a>;
130
#define <a class="link" href="pango-Text-Attributes.html#PANGO-TYPE-ATTR-LIST:CAPS" title="PANGO_TYPE_ATTR_LIST">PANGO_TYPE_ATTR_LIST</a>
131
<a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-list-new" title="pango_attr_list_new ()">pango_attr_list_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
132
<a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-list-ref" title="pango_attr_list_ref ()">pango_attr_list_ref</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>);
133
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Attributes.html#pango-attr-list-unref" title="pango_attr_list_unref ()">pango_attr_list_unref</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>);
134
<a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-list-copy" title="pango_attr_list_copy ()">pango_attr_list_copy</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>);
135
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Attributes.html#pango-attr-list-insert" title="pango_attr_list_insert ()">pango_attr_list_insert</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>,
136
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr</code></em>);
137
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Attributes.html#pango-attr-list-insert-before" title="pango_attr_list_insert_before ()">pango_attr_list_insert_before</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>,
138
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr</code></em>);
139
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Attributes.html#pango-attr-list-change" title="pango_attr_list_change ()">pango_attr_list_change</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>,
140
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr</code></em>);
141
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Attributes.html#pango-attr-list-splice" title="pango_attr_list_splice ()">pango_attr_list_splice</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>,
142
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *other</code></em>,
143
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pos</code></em>,
144
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> len</code></em>);
145
<a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-list-filter" title="pango_attr_list_filter ()">pango_attr_list_filter</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>,
146
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrFilterFunc" title="PangoAttrFilterFunc ()"><span class="type">PangoAttrFilterFunc</span></a> func</code></em>,
147
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);
148
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> (<a class="link" href="pango-Text-Attributes.html#PangoAttrFilterFunc" title="PangoAttrFilterFunc ()">*PangoAttrFilterFunc</a>) (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attribute</code></em>,
149
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
150
<a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="returnvalue">PangoAttrIterator</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-list-get-iterator" title="pango_attr_list_get_iterator ()">pango_attr_list_get_iterator</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>);
151
<a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator">PangoAttrIterator</a>;
152
<a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="returnvalue">PangoAttrIterator</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-iterator-copy" title="pango_attr_iterator_copy ()">pango_attr_iterator_copy</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>);
153
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="pango-Text-Attributes.html#pango-attr-iterator-next" title="pango_attr_iterator_next ()">pango_attr_iterator_next</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>);
154
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Attributes.html#pango-attr-iterator-range" title="pango_attr_iterator_range ()">pango_attr_iterator_range</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>,
155
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *start</code></em>,
156
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *end</code></em>);
157
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-iterator-get" title="pango_attr_iterator_get ()">pango_attr_iterator_get</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>,
158
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrType"><span class="type">PangoAttrType</span></a> type</code></em>);
159
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Attributes.html#pango-attr-iterator-get-font" title="pango_attr_iterator_get_font ()">pango_attr_iterator_get_font</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>,
160
<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
161
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> **language</code></em>,
162
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> **extra_attrs</code></em>);
163
<a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> * <a class="link" href="pango-Text-Attributes.html#pango-attr-iterator-get-attrs" title="pango_attr_iterator_get_attrs ()">pango_attr_iterator_get_attrs</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>);
164
<span class="returnvalue">void</span> <a class="link" href="pango-Text-Attributes.html#pango-attr-iterator-destroy" title="pango_attr_iterator_destroy ()">pango_attr_iterator_destroy</a> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>);
35
<div class="refsect1">
36
<a name="pango-Text-Attributes.functions"></a><h2>Functions</h2>
37
<div class="informaltable"><table width="100%" border="0">
39
<col width="150px" class="functions_return">
40
<col class="functions_name">
44
<td class="define_keyword">#define</td>
45
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PANGO-TYPE-ATTR-TYPE:CAPS" title="PANGO_TYPE_ATTR_TYPE">PANGO_TYPE_ATTR_TYPE</a></td>
48
<td class="function_type">
49
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
51
<td class="function_name">
52
<a class="link" href="pango-Text-Attributes.html#pango-parse-markup" title="pango_parse_markup ()">pango_parse_markup</a> <span class="c_punctuation">()</span>
56
<td class="function_type">
57
<a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#GMarkupParseContext"><span class="returnvalue">GMarkupParseContext</span></a> *
59
<td class="function_name">
60
<a class="link" href="pango-Text-Attributes.html#pango-markup-parser-new" title="pango_markup_parser_new ()">pango_markup_parser_new</a> <span class="c_punctuation">()</span>
64
<td class="function_type">
65
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
67
<td class="function_name">
68
<a class="link" href="pango-Text-Attributes.html#pango-markup-parser-finish" title="pango_markup_parser_finish ()">pango_markup_parser_finish</a> <span class="c_punctuation">()</span>
72
<td class="function_type">
73
<a class="link" href="pango-Text-Attributes.html#PangoAttrType" title="enum PangoAttrType"><span class="returnvalue">PangoAttrType</span></a>
75
<td class="function_name">
76
<a class="link" href="pango-Text-Attributes.html#pango-attr-type-register" title="pango_attr_type_register ()">pango_attr_type_register</a> <span class="c_punctuation">()</span>
80
<td class="function_type">const <span class="returnvalue">char</span> *
82
<td class="function_name">
83
<a class="link" href="pango-Text-Attributes.html#pango-attr-type-get-name" title="pango_attr_type_get_name ()">pango_attr_type_get_name</a> <span class="c_punctuation">()</span>
87
<td class="function_type">
88
<span class="returnvalue">void</span>
90
<td class="function_name">
91
<a class="link" href="pango-Text-Attributes.html#pango-attribute-init" title="pango_attribute_init ()">pango_attribute_init</a> <span class="c_punctuation">()</span>
95
<td class="function_type">
96
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
98
<td class="function_name">
99
<a class="link" href="pango-Text-Attributes.html#pango-attribute-copy" title="pango_attribute_copy ()">pango_attribute_copy</a> <span class="c_punctuation">()</span>
103
<td class="function_type">
104
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
106
<td class="function_name">
107
<a class="link" href="pango-Text-Attributes.html#pango-attribute-equal" title="pango_attribute_equal ()">pango_attribute_equal</a> <span class="c_punctuation">()</span>
111
<td class="function_type">
112
<span class="returnvalue">void</span>
114
<td class="function_name">
115
<a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()">pango_attribute_destroy</a> <span class="c_punctuation">()</span>
119
<td class="function_type">
120
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
122
<td class="function_name">
123
<a class="link" href="pango-Text-Attributes.html#pango-attr-language-new" title="pango_attr_language_new ()">pango_attr_language_new</a> <span class="c_punctuation">()</span>
127
<td class="function_type">
128
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
130
<td class="function_name">
131
<a class="link" href="pango-Text-Attributes.html#pango-attr-family-new" title="pango_attr_family_new ()">pango_attr_family_new</a> <span class="c_punctuation">()</span>
135
<td class="function_type">
136
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
138
<td class="function_name">
139
<a class="link" href="pango-Text-Attributes.html#pango-attr-style-new" title="pango_attr_style_new ()">pango_attr_style_new</a> <span class="c_punctuation">()</span>
143
<td class="function_type">
144
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
146
<td class="function_name">
147
<a class="link" href="pango-Text-Attributes.html#pango-attr-variant-new" title="pango_attr_variant_new ()">pango_attr_variant_new</a> <span class="c_punctuation">()</span>
151
<td class="function_type">
152
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
154
<td class="function_name">
155
<a class="link" href="pango-Text-Attributes.html#pango-attr-stretch-new" title="pango_attr_stretch_new ()">pango_attr_stretch_new</a> <span class="c_punctuation">()</span>
159
<td class="function_type">
160
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
162
<td class="function_name">
163
<a class="link" href="pango-Text-Attributes.html#pango-attr-weight-new" title="pango_attr_weight_new ()">pango_attr_weight_new</a> <span class="c_punctuation">()</span>
167
<td class="function_type">
168
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
170
<td class="function_name">
171
<a class="link" href="pango-Text-Attributes.html#pango-attr-size-new" title="pango_attr_size_new ()">pango_attr_size_new</a> <span class="c_punctuation">()</span>
175
<td class="function_type">
176
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
178
<td class="function_name">
179
<a class="link" href="pango-Text-Attributes.html#pango-attr-size-new-absolute" title="pango_attr_size_new_absolute ()">pango_attr_size_new_absolute</a> <span class="c_punctuation">()</span>
183
<td class="function_type">
184
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
186
<td class="function_name">
187
<a class="link" href="pango-Text-Attributes.html#pango-attr-font-desc-new" title="pango_attr_font_desc_new ()">pango_attr_font_desc_new</a> <span class="c_punctuation">()</span>
191
<td class="function_type">
192
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
194
<td class="function_name">
195
<a class="link" href="pango-Text-Attributes.html#pango-attr-foreground-new" title="pango_attr_foreground_new ()">pango_attr_foreground_new</a> <span class="c_punctuation">()</span>
199
<td class="function_type">
200
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
202
<td class="function_name">
203
<a class="link" href="pango-Text-Attributes.html#pango-attr-background-new" title="pango_attr_background_new ()">pango_attr_background_new</a> <span class="c_punctuation">()</span>
207
<td class="function_type">
208
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
210
<td class="function_name">
211
<a class="link" href="pango-Text-Attributes.html#pango-attr-strikethrough-new" title="pango_attr_strikethrough_new ()">pango_attr_strikethrough_new</a> <span class="c_punctuation">()</span>
215
<td class="function_type">
216
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
218
<td class="function_name">
219
<a class="link" href="pango-Text-Attributes.html#pango-attr-strikethrough-color-new" title="pango_attr_strikethrough_color_new ()">pango_attr_strikethrough_color_new</a> <span class="c_punctuation">()</span>
223
<td class="function_type">
224
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
226
<td class="function_name">
227
<a class="link" href="pango-Text-Attributes.html#pango-attr-underline-new" title="pango_attr_underline_new ()">pango_attr_underline_new</a> <span class="c_punctuation">()</span>
231
<td class="function_type">
232
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
234
<td class="function_name">
235
<a class="link" href="pango-Text-Attributes.html#pango-attr-underline-color-new" title="pango_attr_underline_color_new ()">pango_attr_underline_color_new</a> <span class="c_punctuation">()</span>
239
<td class="define_keyword">#define</td>
240
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PANGO-TYPE-UNDERLINE:CAPS" title="PANGO_TYPE_UNDERLINE">PANGO_TYPE_UNDERLINE</a></td>
243
<td class="function_type">
244
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
246
<td class="function_name">
247
<a class="link" href="pango-Text-Attributes.html#pango-attr-shape-new" title="pango_attr_shape_new ()">pango_attr_shape_new</a> <span class="c_punctuation">()</span>
251
<td class="function_type">
252
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
254
<td class="function_name">
255
<a class="link" href="pango-Text-Attributes.html#pango-attr-shape-new-with-data" title="pango_attr_shape_new_with_data ()">pango_attr_shape_new_with_data</a> <span class="c_punctuation">()</span>
259
<td class="function_type">
260
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
262
<td class="function_name">
263
<span class="c_punctuation">(</span><a class="link" href="pango-Text-Attributes.html#PangoAttrDataCopyFunc" title="PangoAttrDataCopyFunc ()">*PangoAttrDataCopyFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
267
<td class="function_type">
268
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
270
<td class="function_name">
271
<a class="link" href="pango-Text-Attributes.html#pango-attr-scale-new" title="pango_attr_scale_new ()">pango_attr_scale_new</a> <span class="c_punctuation">()</span>
275
<td class="define_keyword">#define</td>
276
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PANGO-SCALE-XX-SMALL:CAPS" title="PANGO_SCALE_XX_SMALL">PANGO_SCALE_XX_SMALL</a></td>
279
<td class="define_keyword">#define</td>
280
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PANGO-SCALE-X-SMALL:CAPS" title="PANGO_SCALE_X_SMALL">PANGO_SCALE_X_SMALL</a></td>
283
<td class="define_keyword">#define</td>
284
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PANGO-SCALE-SMALL:CAPS" title="PANGO_SCALE_SMALL">PANGO_SCALE_SMALL</a></td>
287
<td class="define_keyword">#define</td>
288
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PANGO-SCALE-MEDIUM:CAPS" title="PANGO_SCALE_MEDIUM">PANGO_SCALE_MEDIUM</a></td>
291
<td class="define_keyword">#define</td>
292
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PANGO-SCALE-LARGE:CAPS" title="PANGO_SCALE_LARGE">PANGO_SCALE_LARGE</a></td>
295
<td class="define_keyword">#define</td>
296
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PANGO-SCALE-X-LARGE:CAPS" title="PANGO_SCALE_X_LARGE">PANGO_SCALE_X_LARGE</a></td>
299
<td class="define_keyword">#define</td>
300
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PANGO-SCALE-XX-LARGE:CAPS" title="PANGO_SCALE_XX_LARGE">PANGO_SCALE_XX_LARGE</a></td>
303
<td class="function_type">
304
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
306
<td class="function_name">
307
<a class="link" href="pango-Text-Attributes.html#pango-attr-rise-new" title="pango_attr_rise_new ()">pango_attr_rise_new</a> <span class="c_punctuation">()</span>
311
<td class="function_type">
312
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
314
<td class="function_name">
315
<a class="link" href="pango-Text-Attributes.html#pango-attr-letter-spacing-new" title="pango_attr_letter_spacing_new ()">pango_attr_letter_spacing_new</a> <span class="c_punctuation">()</span>
319
<td class="function_type">
320
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
322
<td class="function_name">
323
<a class="link" href="pango-Text-Attributes.html#pango-attr-fallback-new" title="pango_attr_fallback_new ()">pango_attr_fallback_new</a> <span class="c_punctuation">()</span>
327
<td class="function_type">
328
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
330
<td class="function_name">
331
<a class="link" href="pango-Text-Attributes.html#pango-attr-gravity-new" title="pango_attr_gravity_new ()">pango_attr_gravity_new</a> <span class="c_punctuation">()</span>
335
<td class="function_type">
336
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
338
<td class="function_name">
339
<a class="link" href="pango-Text-Attributes.html#pango-attr-gravity-hint-new" title="pango_attr_gravity_hint_new ()">pango_attr_gravity_hint_new</a> <span class="c_punctuation">()</span>
343
<td class="function_type">
344
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
346
<td class="function_name">
347
<a class="link" href="pango-Text-Attributes.html#pango-color-parse" title="pango_color_parse ()">pango_color_parse</a> <span class="c_punctuation">()</span>
351
<td class="function_type">
352
<a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="returnvalue">PangoColor</span></a> *
354
<td class="function_name">
355
<a class="link" href="pango-Text-Attributes.html#pango-color-copy" title="pango_color_copy ()">pango_color_copy</a> <span class="c_punctuation">()</span>
359
<td class="function_type">
360
<span class="returnvalue">void</span>
362
<td class="function_name">
363
<a class="link" href="pango-Text-Attributes.html#pango-color-free" title="pango_color_free ()">pango_color_free</a> <span class="c_punctuation">()</span>
367
<td class="function_type">
368
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
370
<td class="function_name">
371
<a class="link" href="pango-Text-Attributes.html#pango-color-to-string" title="pango_color_to_string ()">pango_color_to_string</a> <span class="c_punctuation">()</span>
375
<td class="function_type">
376
<a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> *
378
<td class="function_name">
379
<a class="link" href="pango-Text-Attributes.html#pango-attr-list-new" title="pango_attr_list_new ()">pango_attr_list_new</a> <span class="c_punctuation">()</span>
383
<td class="function_type">
384
<a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> *
386
<td class="function_name">
387
<a class="link" href="pango-Text-Attributes.html#pango-attr-list-ref" title="pango_attr_list_ref ()">pango_attr_list_ref</a> <span class="c_punctuation">()</span>
391
<td class="function_type">
392
<span class="returnvalue">void</span>
394
<td class="function_name">
395
<a class="link" href="pango-Text-Attributes.html#pango-attr-list-unref" title="pango_attr_list_unref ()">pango_attr_list_unref</a> <span class="c_punctuation">()</span>
399
<td class="function_type">
400
<a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> *
402
<td class="function_name">
403
<a class="link" href="pango-Text-Attributes.html#pango-attr-list-copy" title="pango_attr_list_copy ()">pango_attr_list_copy</a> <span class="c_punctuation">()</span>
407
<td class="function_type">
408
<span class="returnvalue">void</span>
410
<td class="function_name">
411
<a class="link" href="pango-Text-Attributes.html#pango-attr-list-insert" title="pango_attr_list_insert ()">pango_attr_list_insert</a> <span class="c_punctuation">()</span>
415
<td class="function_type">
416
<span class="returnvalue">void</span>
418
<td class="function_name">
419
<a class="link" href="pango-Text-Attributes.html#pango-attr-list-insert-before" title="pango_attr_list_insert_before ()">pango_attr_list_insert_before</a> <span class="c_punctuation">()</span>
423
<td class="function_type">
424
<span class="returnvalue">void</span>
426
<td class="function_name">
427
<a class="link" href="pango-Text-Attributes.html#pango-attr-list-change" title="pango_attr_list_change ()">pango_attr_list_change</a> <span class="c_punctuation">()</span>
431
<td class="function_type">
432
<span class="returnvalue">void</span>
434
<td class="function_name">
435
<a class="link" href="pango-Text-Attributes.html#pango-attr-list-splice" title="pango_attr_list_splice ()">pango_attr_list_splice</a> <span class="c_punctuation">()</span>
439
<td class="function_type">
440
<a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> *
442
<td class="function_name">
443
<a class="link" href="pango-Text-Attributes.html#pango-attr-list-filter" title="pango_attr_list_filter ()">pango_attr_list_filter</a> <span class="c_punctuation">()</span>
447
<td class="function_type">
448
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
450
<td class="function_name">
451
<span class="c_punctuation">(</span><a class="link" href="pango-Text-Attributes.html#PangoAttrFilterFunc" title="PangoAttrFilterFunc ()">*PangoAttrFilterFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
455
<td class="function_type">
456
<a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="returnvalue">PangoAttrIterator</span></a> *
458
<td class="function_name">
459
<a class="link" href="pango-Text-Attributes.html#pango-attr-list-get-iterator" title="pango_attr_list_get_iterator ()">pango_attr_list_get_iterator</a> <span class="c_punctuation">()</span>
463
<td class="function_type">
464
<a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="returnvalue">PangoAttrIterator</span></a> *
466
<td class="function_name">
467
<a class="link" href="pango-Text-Attributes.html#pango-attr-iterator-copy" title="pango_attr_iterator_copy ()">pango_attr_iterator_copy</a> <span class="c_punctuation">()</span>
471
<td class="function_type">
472
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
474
<td class="function_name">
475
<a class="link" href="pango-Text-Attributes.html#pango-attr-iterator-next" title="pango_attr_iterator_next ()">pango_attr_iterator_next</a> <span class="c_punctuation">()</span>
479
<td class="function_type">
480
<span class="returnvalue">void</span>
482
<td class="function_name">
483
<a class="link" href="pango-Text-Attributes.html#pango-attr-iterator-range" title="pango_attr_iterator_range ()">pango_attr_iterator_range</a> <span class="c_punctuation">()</span>
487
<td class="function_type">
488
<a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
490
<td class="function_name">
491
<a class="link" href="pango-Text-Attributes.html#pango-attr-iterator-get" title="pango_attr_iterator_get ()">pango_attr_iterator_get</a> <span class="c_punctuation">()</span>
495
<td class="function_type">
496
<span class="returnvalue">void</span>
498
<td class="function_name">
499
<a class="link" href="pango-Text-Attributes.html#pango-attr-iterator-get-font" title="pango_attr_iterator_get_font ()">pango_attr_iterator_get_font</a> <span class="c_punctuation">()</span>
503
<td class="function_type">
504
<a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *
506
<td class="function_name">
507
<a class="link" href="pango-Text-Attributes.html#pango-attr-iterator-get-attrs" title="pango_attr_iterator_get_attrs ()">pango_attr_iterator_get_attrs</a> <span class="c_punctuation">()</span>
511
<td class="function_type">
512
<span class="returnvalue">void</span>
514
<td class="function_name">
515
<a class="link" href="pango-Text-Attributes.html#pango-attr-iterator-destroy" title="pango_attr_iterator_destroy ()">pango_attr_iterator_destroy</a> <span class="c_punctuation">()</span>
521
<a name="PangoColor"></a><a name="PangoAttrList"></a><div class="refsect1">
522
<a name="pango-Text-Attributes.other"></a><h2>Types and Values</h2>
523
<div class="informaltable"><table width="100%" border="0">
525
<col width="150px" class="name">
526
<col class="description">
530
<td class="datatype_keyword">enum</td>
531
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PangoAttrType" title="enum PangoAttrType">PangoAttrType</a></td>
534
<td class="datatype_keyword">struct</td>
535
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PangoAttrClass" title="struct PangoAttrClass">PangoAttrClass</a></td>
538
<td class="datatype_keyword">struct</td>
539
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute">PangoAttribute</a></td>
542
<td class="define_keyword">#define</td>
543
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-INDEX-FROM-TEXT-BEGINNING:CAPS" title="PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING">PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING</a></td>
546
<td class="define_keyword">#define</td>
547
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-INDEX-TO-TEXT-END:CAPS" title="PANGO_ATTR_INDEX_TO_TEXT_END">PANGO_ATTR_INDEX_TO_TEXT_END</a></td>
550
<td class="datatype_keyword">struct</td>
551
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PangoAttrString" title="struct PangoAttrString">PangoAttrString</a></td>
554
<td class="datatype_keyword">struct</td>
555
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PangoAttrLanguage" title="struct PangoAttrLanguage">PangoAttrLanguage</a></td>
558
<td class="datatype_keyword">struct</td>
559
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PangoAttrColor" title="struct PangoAttrColor">PangoAttrColor</a></td>
562
<td class="datatype_keyword">struct</td>
563
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt">PangoAttrInt</a></td>
566
<td class="datatype_keyword">struct</td>
567
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PangoAttrFloat" title="struct PangoAttrFloat">PangoAttrFloat</a></td>
570
<td class="datatype_keyword">struct</td>
571
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PangoAttrFontDesc" title="struct PangoAttrFontDesc">PangoAttrFontDesc</a></td>
574
<td class="datatype_keyword">struct</td>
575
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PangoAttrShape" title="struct PangoAttrShape">PangoAttrShape</a></td>
578
<td class="datatype_keyword">struct</td>
579
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PangoAttrSize" title="struct PangoAttrSize">PangoAttrSize</a></td>
582
<td class="datatype_keyword">enum</td>
583
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PangoUnderline" title="enum PangoUnderline">PangoUnderline</a></td>
586
<td class="datatype_keyword">struct</td>
587
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PangoColor-struct" title="struct PangoColor">PangoColor</a></td>
590
<td class="define_keyword">#define</td>
591
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PANGO-TYPE-COLOR:CAPS" title="PANGO_TYPE_COLOR">PANGO_TYPE_COLOR</a></td>
594
<td class="datatype_keyword"> </td>
595
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PangoAttrList-struct" title="PangoAttrList">PangoAttrList</a></td>
598
<td class="define_keyword">#define</td>
599
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PANGO-TYPE-ATTR-LIST:CAPS" title="PANGO_TYPE_ATTR_LIST">PANGO_TYPE_ATTR_LIST</a></td>
602
<td class="datatype_keyword"> </td>
603
<td class="function_name"><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator">PangoAttrIterator</a></td>
167
608
<div class="refsect1">
168
609
<a name="pango-Text-Attributes.object-hierarchy"></a><h2>Object Hierarchy</h2>
169
<pre class="synopsis">
173
<pre class="synopsis">
177
<pre class="synopsis">
181
<pre class="synopsis">
610
<pre class="screen"> GBoxed
611
<span class="lineart">├──</span> PangoAttrList
612
<span class="lineart">╰──</span> PangoColor
614
<span class="lineart">├──</span> PangoAttrType
615
<span class="lineart">╰──</span> PangoUnderline
186
618
<div class="refsect1">
187
619
<a name="pango-Text-Attributes.description"></a><h2>Description</h2>
189
Attributed text is used in a number of places in Pango. It
620
<p>Attributed text is used in a number of places in Pango. It
190
621
is used as the input to the itemization process and also when
191
622
creating a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>. The data types and functions in
192
623
this section are used to represent and manipulate sets
193
624
of attributes applied to a portion of text.</p>
195
626
<div class="refsect1">
196
<a name="pango-Text-Attributes.details"></a><h2>Details</h2>
197
<div class="refsect2">
198
<a name="PangoAttrType-enum"></a><h3>enum PangoAttrType</h3>
199
<pre class="programlisting">typedef enum {
200
PANGO_ATTR_INVALID, /* 0 is an invalid attribute type */
201
PANGO_ATTR_LANGUAGE, /* PangoAttrLanguage */
202
PANGO_ATTR_FAMILY, /* PangoAttrString */
203
PANGO_ATTR_STYLE, /* PangoAttrInt */
204
PANGO_ATTR_WEIGHT, /* PangoAttrInt */
205
PANGO_ATTR_VARIANT, /* PangoAttrInt */
206
PANGO_ATTR_STRETCH, /* PangoAttrInt */
207
PANGO_ATTR_SIZE, /* PangoAttrSize */
208
PANGO_ATTR_FONT_DESC, /* PangoAttrFontDesc */
209
PANGO_ATTR_FOREGROUND, /* PangoAttrColor */
210
PANGO_ATTR_BACKGROUND, /* PangoAttrColor */
211
PANGO_ATTR_UNDERLINE, /* PangoAttrInt */
212
PANGO_ATTR_STRIKETHROUGH, /* PangoAttrInt */
213
PANGO_ATTR_RISE, /* PangoAttrInt */
214
PANGO_ATTR_SHAPE, /* PangoAttrShape */
215
PANGO_ATTR_SCALE, /* PangoAttrFloat */
216
PANGO_ATTR_FALLBACK, /* PangoAttrInt */
217
PANGO_ATTR_LETTER_SPACING, /* PangoAttrInt */
218
PANGO_ATTR_UNDERLINE_COLOR, /* PangoAttrColor */
219
PANGO_ATTR_STRIKETHROUGH_COLOR,/* PangoAttrColor */
220
PANGO_ATTR_ABSOLUTE_SIZE, /* PangoAttrSize */
221
PANGO_ATTR_GRAVITY, /* PangoAttrInt */
222
PANGO_ATTR_GRAVITY_HINT /* PangoAttrInt */
226
The <a class="link" href="pango-Text-Attributes.html#PangoAttrType"><span class="type">PangoAttrType</span></a>
627
<a name="pango-Text-Attributes.functions_details"></a><h2>Functions</h2>
628
<div class="refsect2">
629
<a name="PANGO-TYPE-ATTR-TYPE:CAPS"></a><h3>PANGO_TYPE_ATTR_TYPE</h3>
630
<pre class="programlisting">#define PANGO_TYPE_ATTR_TYPE (pango_attr_type_get_type ())
634
<div class="refsect2">
635
<a name="pango-parse-markup"></a><h3>pango_parse_markup ()</h3>
636
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
637
pango_parse_markup (<em class="parameter"><code>const <span class="type">char</span> *markup_text</code></em>,
638
<em class="parameter"><code><span class="type">int</span> length</code></em>,
639
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Unicode-Manipulation.html#gunichar"><span class="type">gunichar</span></a> accel_marker</code></em>,
640
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> **attr_list</code></em>,
641
<em class="parameter"><code><span class="type">char</span> **text</code></em>,
642
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Unicode-Manipulation.html#gunichar"><span class="type">gunichar</span></a> *accel_char</code></em>,
643
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
644
<p>Parses marked-up text (see</p>
645
<a href="PangoMarkupFormat.html">markup format</a>) to create
646
<p>a plain-text string and an attribute list.</p>
647
<p>If <em class="parameter"><code>accel_marker</code></em>
648
is nonzero, the given character will mark the
649
character following it as an accelerator. For example, <em class="parameter"><code>accel_marker</code></em>
651
might be an ampersand or underscore. All characters marked
652
as an accelerator will receive a <a class="link" href="pango-Text-Attributes.html#PANGO-UNDERLINE-LOW:CAPS"><code class="literal">PANGO_UNDERLINE_LOW</code></a> attribute,
653
and the first character so marked will be returned in <em class="parameter"><code>accel_char</code></em>
655
Two <em class="parameter"><code>accel_marker</code></em>
656
characters following each other produce a single
657
literal <em class="parameter"><code>accel_marker</code></em>
659
<p>To parse a stream of pango markup incrementally, use <a class="link" href="pango-Text-Attributes.html#pango-markup-parser-new" title="pango_markup_parser_new ()"><code class="function">pango_markup_parser_new()</code></a>.</p>
660
<p>If any error happens, none of the output arguments are touched except
661
for <em class="parameter"><code>error</code></em>
663
<div class="refsect3">
664
<a name="id-1.2.5.9.3.10"></a><h4>Parameters</h4>
665
<div class="informaltable"><table width="100%" border="0">
667
<col width="150px" class="parameters_name">
668
<col class="parameters_description">
669
<col width="200px" class="parameters_annotations">
673
<td class="parameter_name"><p>markup_text</p></td>
674
<td class="parameter_description"><p>markup to parse (see <a href="PangoMarkupFormat.html">markup format</a>)</p></td>
675
<td class="parameter_annotations"> </td>
678
<td class="parameter_name"><p>length</p></td>
679
<td class="parameter_description"><p>length of <em class="parameter"><code>markup_text</code></em>
680
, or -1 if nul-terminated</p></td>
681
<td class="parameter_annotations"> </td>
684
<td class="parameter_name"><p>accel_marker</p></td>
685
<td class="parameter_description"><p>character that precedes an accelerator, or 0 for none</p></td>
686
<td class="parameter_annotations"> </td>
689
<td class="parameter_name"><p>attr_list</p></td>
690
<td class="parameter_description"><p> address of return location for a <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
691
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
694
<td class="parameter_name"><p>text</p></td>
695
<td class="parameter_description"><p> address of return location for text with tags stripped, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
696
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
699
<td class="parameter_name"><p>accel_char</p></td>
700
<td class="parameter_description"><p> address of return location for accelerator char, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
701
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
704
<td class="parameter_name"><p>error</p></td>
705
<td class="parameter_description"><p>address of return location for errors, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
706
<td class="parameter_annotations"> </td>
711
<div class="refsect3">
712
<a name="id-1.2.5.9.3.11"></a><h4>Returns</h4>
713
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if <em class="parameter"><code>error</code></em>
714
is set, otherwise <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a></p>
719
<div class="refsect2">
720
<a name="pango-markup-parser-new"></a><h3>pango_markup_parser_new ()</h3>
721
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#GMarkupParseContext"><span class="returnvalue">GMarkupParseContext</span></a> *
722
pango_markup_parser_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Unicode-Manipulation.html#gunichar"><span class="type">gunichar</span></a> accel_marker</code></em>);</pre>
723
<p>Parses marked-up text (see</p>
724
<a href="PangoMarkupFormat.html">markup format</a>) to create
725
<p>a plain-text string and an attribute list.</p>
726
<p>If <em class="parameter"><code>accel_marker</code></em>
727
is nonzero, the given character will mark the
728
character following it as an accelerator. For example, <em class="parameter"><code>accel_marker</code></em>
730
might be an ampersand or underscore. All characters marked
731
as an accelerator will receive a <a class="link" href="pango-Text-Attributes.html#PANGO-UNDERLINE-LOW:CAPS"><code class="literal">PANGO_UNDERLINE_LOW</code></a> attribute,
732
and the first character so marked will be returned in <em class="parameter"><code>accel_char</code></em>
734
when calling <code class="function">finish()</code>. Two <em class="parameter"><code>accel_marker</code></em>
735
characters following each
736
other produce a single literal <em class="parameter"><code>accel_marker</code></em>
738
<p>To feed markup to the parser, use <a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-parse"><code class="function">g_markup_parse_context_parse()</code></a>
739
on the returned <a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#GMarkupParseContext"><span class="type">GMarkupParseContext</span></a>. When done with feeding markup
740
to the parser, use <a class="link" href="pango-Text-Attributes.html#pango-markup-parser-finish" title="pango_markup_parser_finish ()"><code class="function">pango_markup_parser_finish()</code></a> to get the data out
741
of it, and then use <a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-free"><code class="function">g_markup_parse_context_free()</code></a> to free it.</p>
742
<p>This function is designed for applications that read pango markup
743
from streams. To simply parse a string containing pango markup,
744
the simpler <a class="link" href="pango-Text-Attributes.html#pango-parse-markup" title="pango_parse_markup ()"><code class="function">pango_parse_markup()</code></a> API is recommended instead.</p>
745
<div class="refsect3">
746
<a name="id-1.2.5.9.4.10"></a><h4>Parameters</h4>
747
<div class="informaltable"><table width="100%" border="0">
749
<col width="150px" class="parameters_name">
750
<col class="parameters_description">
751
<col width="200px" class="parameters_annotations">
754
<td class="parameter_name"><p>accel_marker</p></td>
755
<td class="parameter_description"><p>character that precedes an accelerator, or 0 for none</p></td>
756
<td class="parameter_annotations"> </td>
760
<div class="refsect3">
761
<a name="id-1.2.5.9.4.11"></a><h4>Returns</h4>
762
<p> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> that should be
763
destroyed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-free"><code class="function">g_markup_parse_context_free()</code></a>. </p>
764
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
766
<p class="since">Since 1.31.0</p>
769
<div class="refsect2">
770
<a name="pango-markup-parser-finish"></a><h3>pango_markup_parser_finish ()</h3>
771
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
772
pango_markup_parser_finish (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>,
773
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> **attr_list</code></em>,
774
<em class="parameter"><code><span class="type">char</span> **text</code></em>,
775
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Unicode-Manipulation.html#gunichar"><span class="type">gunichar</span></a> *accel_char</code></em>,
776
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
777
<p>After feeding a pango markup parser some data with <a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-parse"><code class="function">g_markup_parse_context_parse()</code></a>,
778
use this function to get the list of pango attributes and text out of the
779
markup. This function will not free <em class="parameter"><code>context</code></em>
780
, use <a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-free"><code class="function">g_markup_parse_context_free()</code></a>
782
<div class="refsect3">
783
<a name="id-1.2.5.9.5.5"></a><h4>Parameters</h4>
784
<div class="informaltable"><table width="100%" border="0">
786
<col width="150px" class="parameters_name">
787
<col class="parameters_description">
788
<col width="200px" class="parameters_annotations">
792
<td class="parameter_name"><p>context</p></td>
793
<td class="parameter_description"><p>A valid parse context that was returned from <a class="link" href="pango-Text-Attributes.html#pango-markup-parser-new" title="pango_markup_parser_new ()"><code class="function">pango_markup_parser_new()</code></a></p></td>
794
<td class="parameter_annotations"> </td>
797
<td class="parameter_name"><p>attr_list</p></td>
798
<td class="parameter_description"><p> address of return location for a <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
799
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
802
<td class="parameter_name"><p>text</p></td>
803
<td class="parameter_description"><p> address of return location for text with tags stripped, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
804
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
807
<td class="parameter_name"><p>accel_char</p></td>
808
<td class="parameter_description"><p> address of return location for accelerator char, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
809
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
812
<td class="parameter_name"><p>error</p></td>
813
<td class="parameter_description"><p>address of return location for errors, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
814
<td class="parameter_annotations"> </td>
819
<div class="refsect3">
820
<a name="id-1.2.5.9.5.6"></a><h4>Returns</h4>
821
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if <em class="parameter"><code>error</code></em>
822
is set, otherwise <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a></p>
825
<p class="since">Since 1.31.0</p>
828
<div class="refsect2">
829
<a name="pango-attr-type-register"></a><h3>pango_attr_type_register ()</h3>
830
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttrType" title="enum PangoAttrType"><span class="returnvalue">PangoAttrType</span></a>
831
pango_attr_type_register (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
832
<p>Allocate a new attribute type ID. The attribute type name can be accessed
833
later by using <a class="link" href="pango-Text-Attributes.html#pango-attr-type-get-name" title="pango_attr_type_get_name ()"><code class="function">pango_attr_type_get_name()</code></a>.</p>
834
<div class="refsect3">
835
<a name="id-1.2.5.9.6.5"></a><h4>Parameters</h4>
836
<div class="informaltable"><table width="100%" border="0">
838
<col width="150px" class="parameters_name">
839
<col class="parameters_description">
840
<col width="200px" class="parameters_annotations">
843
<td class="parameter_name"><p>name</p></td>
844
<td class="parameter_description"><p>an identifier for the type</p></td>
845
<td class="parameter_annotations"> </td>
849
<div class="refsect3">
850
<a name="id-1.2.5.9.6.6"></a><h4>Returns</h4>
851
<p> the new type ID.</p>
856
<div class="refsect2">
857
<a name="pango-attr-type-get-name"></a><h3>pango_attr_type_get_name ()</h3>
858
<pre class="programlisting">const <span class="returnvalue">char</span> *
859
pango_attr_type_get_name (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrType" title="enum PangoAttrType"><span class="type">PangoAttrType</span></a> type</code></em>);</pre>
860
<p>Fetches the attribute type name passed in when registering the type using
861
<a class="link" href="pango-Text-Attributes.html#pango-attr-type-register" title="pango_attr_type_register ()"><code class="function">pango_attr_type_register()</code></a>.</p>
862
<p>The returned value is an interned string (see <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#g-intern-string"><code class="function">g_intern_string()</code></a> for what
863
that means) that should not be modified or freed.</p>
864
<div class="refsect3">
865
<a name="id-1.2.5.9.7.6"></a><h4>Parameters</h4>
866
<div class="informaltable"><table width="100%" border="0">
868
<col width="150px" class="parameters_name">
869
<col class="parameters_description">
870
<col width="200px" class="parameters_annotations">
873
<td class="parameter_name"><p>type</p></td>
874
<td class="parameter_description"><p>an attribute type ID to fetch the name for</p></td>
875
<td class="parameter_annotations"> </td>
879
<div class="refsect3">
880
<a name="id-1.2.5.9.7.7"></a><h4>Returns</h4>
881
<p> the type ID name (which may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>), or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>type</code></em>
883
a built-in Pango attribute type or invalid. </p>
886
<p class="since">Since 1.22</p>
889
<div class="refsect2">
890
<a name="pango-attribute-init"></a><h3>pango_attribute_init ()</h3>
891
<pre class="programlisting"><span class="returnvalue">void</span>
892
pango_attribute_init (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr</code></em>,
893
<em class="parameter"><code>const <a class="link" href="pango-Text-Attributes.html#PangoAttrClass" title="struct PangoAttrClass"><span class="type">PangoAttrClass</span></a> *klass</code></em>);</pre>
894
<p>Initializes <em class="parameter"><code>attr</code></em>
895
's klass to <em class="parameter"><code>klass</code></em>
897
it's start_index to <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-INDEX-FROM-TEXT-BEGINNING:CAPS" title="PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING"><code class="literal">PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING</code></a>
898
and end_index to <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-INDEX-TO-TEXT-END:CAPS" title="PANGO_ATTR_INDEX_TO_TEXT_END"><code class="literal">PANGO_ATTR_INDEX_TO_TEXT_END</code></a>
899
such that the attribute applies
900
to the entire text by default.</p>
901
<div class="refsect3">
902
<a name="id-1.2.5.9.8.5"></a><h4>Parameters</h4>
903
<div class="informaltable"><table width="100%" border="0">
905
<col width="150px" class="parameters_name">
906
<col class="parameters_description">
907
<col width="200px" class="parameters_annotations">
911
<td class="parameter_name"><p>attr</p></td>
912
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a></p></td>
913
<td class="parameter_annotations"> </td>
916
<td class="parameter_name"><p>klass</p></td>
917
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttrClass" title="struct PangoAttrClass"><span class="type">PangoAttrClass</span></a></p></td>
918
<td class="parameter_annotations"> </td>
923
<p class="since">Since 1.20</p>
926
<div class="refsect2">
927
<a name="pango-attribute-copy"></a><h3>pango_attribute_copy ()</h3>
928
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
929
pango_attribute_copy (<em class="parameter"><code>const <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr</code></em>);</pre>
930
<p>Make a copy of an attribute.</p>
931
<div class="refsect3">
932
<a name="id-1.2.5.9.9.5"></a><h4>Parameters</h4>
933
<div class="informaltable"><table width="100%" border="0">
935
<col width="150px" class="parameters_name">
936
<col class="parameters_description">
937
<col width="200px" class="parameters_annotations">
940
<td class="parameter_name"><p>attr</p></td>
941
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a></p></td>
942
<td class="parameter_annotations"> </td>
946
<div class="refsect3">
947
<a name="id-1.2.5.9.9.6"></a><h4>Returns</h4>
948
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
949
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
950
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
954
<div class="refsect2">
955
<a name="pango-attribute-equal"></a><h3>pango_attribute_equal ()</h3>
956
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
957
pango_attribute_equal (<em class="parameter"><code>const <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr1</code></em>,
958
<em class="parameter"><code>const <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr2</code></em>);</pre>
959
<p>Compare two attributes for equality. This compares only the
960
actual value of the two attributes and not the ranges that the
961
attributes apply to.</p>
962
<div class="refsect3">
963
<a name="id-1.2.5.9.10.5"></a><h4>Parameters</h4>
964
<div class="informaltable"><table width="100%" border="0">
966
<col width="150px" class="parameters_name">
967
<col class="parameters_description">
968
<col width="200px" class="parameters_annotations">
972
<td class="parameter_name"><p>attr1</p></td>
973
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a></p></td>
974
<td class="parameter_annotations"> </td>
977
<td class="parameter_name"><p>attr2</p></td>
978
<td class="parameter_description"><p>another <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a></p></td>
979
<td class="parameter_annotations"> </td>
984
<div class="refsect3">
985
<a name="id-1.2.5.9.10.6"></a><h4>Returns</h4>
986
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the two attributes have the same value.</p>
991
<div class="refsect2">
992
<a name="pango-attribute-destroy"></a><h3>pango_attribute_destroy ()</h3>
993
<pre class="programlisting"><span class="returnvalue">void</span>
994
pango_attribute_destroy (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr</code></em>);</pre>
995
<p>Destroy a <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> and free all associated memory.</p>
996
<div class="refsect3">
997
<a name="id-1.2.5.9.11.5"></a><h4>Parameters</h4>
998
<div class="informaltable"><table width="100%" border="0">
1000
<col width="150px" class="parameters_name">
1001
<col class="parameters_description">
1002
<col width="200px" class="parameters_annotations">
1005
<td class="parameter_name"><p>attr</p></td>
1006
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>.</p></td>
1007
<td class="parameter_annotations"> </td>
1013
<div class="refsect2">
1014
<a name="pango-attr-language-new"></a><h3>pango_attr_language_new ()</h3>
1015
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1016
pango_attr_language_new (<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);</pre>
1017
<p>Create a new language tag attribute.</p>
1018
<div class="refsect3">
1019
<a name="id-1.2.5.9.12.5"></a><h4>Parameters</h4>
1020
<div class="informaltable"><table width="100%" border="0">
1022
<col width="150px" class="parameters_name">
1023
<col class="parameters_description">
1024
<col width="200px" class="parameters_annotations">
1027
<td class="parameter_name"><p>language</p></td>
1028
<td class="parameter_description"><p>language tag</p></td>
1029
<td class="parameter_annotations"> </td>
1033
<div class="refsect3">
1034
<a name="id-1.2.5.9.12.6"></a><h4>Returns</h4>
1035
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1036
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1037
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1041
<div class="refsect2">
1042
<a name="pango-attr-family-new"></a><h3>pango_attr_family_new ()</h3>
1043
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1044
pango_attr_family_new (<em class="parameter"><code>const <span class="type">char</span> *family</code></em>);</pre>
1045
<p>Create a new font family attribute.</p>
1046
<div class="refsect3">
1047
<a name="id-1.2.5.9.13.5"></a><h4>Parameters</h4>
1048
<div class="informaltable"><table width="100%" border="0">
1050
<col width="150px" class="parameters_name">
1051
<col class="parameters_description">
1052
<col width="200px" class="parameters_annotations">
1055
<td class="parameter_name"><p>family</p></td>
1056
<td class="parameter_description"><p>the family or comma separated list of families</p></td>
1057
<td class="parameter_annotations"> </td>
1061
<div class="refsect3">
1062
<a name="id-1.2.5.9.13.6"></a><h4>Returns</h4>
1063
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1064
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1065
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1069
<div class="refsect2">
1070
<a name="pango-attr-style-new"></a><h3>pango_attr_style_new ()</h3>
1071
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1072
pango_attr_style_new (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoStyle" title="enum PangoStyle"><span class="type">PangoStyle</span></a> style</code></em>);</pre>
1073
<p>Create a new font slant style attribute.</p>
1074
<div class="refsect3">
1075
<a name="id-1.2.5.9.14.5"></a><h4>Parameters</h4>
1076
<div class="informaltable"><table width="100%" border="0">
1078
<col width="150px" class="parameters_name">
1079
<col class="parameters_description">
1080
<col width="200px" class="parameters_annotations">
1083
<td class="parameter_name"><p>style</p></td>
1084
<td class="parameter_description"><p>the slant style</p></td>
1085
<td class="parameter_annotations"> </td>
1089
<div class="refsect3">
1090
<a name="id-1.2.5.9.14.6"></a><h4>Returns</h4>
1091
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1092
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1093
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1097
<div class="refsect2">
1098
<a name="pango-attr-variant-new"></a><h3>pango_attr_variant_new ()</h3>
1099
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1100
pango_attr_variant_new (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoVariant" title="enum PangoVariant"><span class="type">PangoVariant</span></a> variant</code></em>);</pre>
1101
<p>Create a new font variant attribute (normal or small caps)</p>
1102
<div class="refsect3">
1103
<a name="id-1.2.5.9.15.5"></a><h4>Parameters</h4>
1104
<div class="informaltable"><table width="100%" border="0">
1106
<col width="150px" class="parameters_name">
1107
<col class="parameters_description">
1108
<col width="200px" class="parameters_annotations">
1111
<td class="parameter_name"><p>variant</p></td>
1112
<td class="parameter_description"><p>the variant</p></td>
1113
<td class="parameter_annotations"> </td>
1117
<div class="refsect3">
1118
<a name="id-1.2.5.9.15.6"></a><h4>Returns</h4>
1119
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1120
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1121
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1125
<div class="refsect2">
1126
<a name="pango-attr-stretch-new"></a><h3>pango_attr_stretch_new ()</h3>
1127
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1128
pango_attr_stretch_new (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoStretch" title="enum PangoStretch"><span class="type">PangoStretch</span></a> stretch</code></em>);</pre>
1129
<p>Create a new font stretch attribute</p>
1130
<div class="refsect3">
1131
<a name="id-1.2.5.9.16.5"></a><h4>Parameters</h4>
1132
<div class="informaltable"><table width="100%" border="0">
1134
<col width="150px" class="parameters_name">
1135
<col class="parameters_description">
1136
<col width="200px" class="parameters_annotations">
1139
<td class="parameter_name"><p>stretch</p></td>
1140
<td class="parameter_description"><p>the stretch</p></td>
1141
<td class="parameter_annotations"> </td>
1145
<div class="refsect3">
1146
<a name="id-1.2.5.9.16.6"></a><h4>Returns</h4>
1147
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1148
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1149
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1153
<div class="refsect2">
1154
<a name="pango-attr-weight-new"></a><h3>pango_attr_weight_new ()</h3>
1155
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1156
pango_attr_weight_new (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoWeight" title="enum PangoWeight"><span class="type">PangoWeight</span></a> weight</code></em>);</pre>
1157
<p>Create a new font weight attribute.</p>
1158
<div class="refsect3">
1159
<a name="id-1.2.5.9.17.5"></a><h4>Parameters</h4>
1160
<div class="informaltable"><table width="100%" border="0">
1162
<col width="150px" class="parameters_name">
1163
<col class="parameters_description">
1164
<col width="200px" class="parameters_annotations">
1167
<td class="parameter_name"><p>weight</p></td>
1168
<td class="parameter_description"><p>the weight</p></td>
1169
<td class="parameter_annotations"> </td>
1173
<div class="refsect3">
1174
<a name="id-1.2.5.9.17.6"></a><h4>Returns</h4>
1175
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1176
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1177
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1181
<div class="refsect2">
1182
<a name="pango-attr-size-new"></a><h3>pango_attr_size_new ()</h3>
1183
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1184
pango_attr_size_new (<em class="parameter"><code><span class="type">int</span> size</code></em>);</pre>
1185
<p>Create a new font-size attribute in fractional points.</p>
1186
<div class="refsect3">
1187
<a name="id-1.2.5.9.18.5"></a><h4>Parameters</h4>
1188
<div class="informaltable"><table width="100%" border="0">
1190
<col width="150px" class="parameters_name">
1191
<col class="parameters_description">
1192
<col width="200px" class="parameters_annotations">
1195
<td class="parameter_name"><p>size</p></td>
1196
<td class="parameter_description"><p>the font size, in <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a>ths of a point.</p></td>
1197
<td class="parameter_annotations"> </td>
1201
<div class="refsect3">
1202
<a name="id-1.2.5.9.18.6"></a><h4>Returns</h4>
1203
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1204
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1205
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1209
<div class="refsect2">
1210
<a name="pango-attr-size-new-absolute"></a><h3>pango_attr_size_new_absolute ()</h3>
1211
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1212
pango_attr_size_new_absolute (<em class="parameter"><code><span class="type">int</span> size</code></em>);</pre>
1213
<p>Create a new font-size attribute in device units.</p>
1214
<div class="refsect3">
1215
<a name="id-1.2.5.9.19.5"></a><h4>Parameters</h4>
1216
<div class="informaltable"><table width="100%" border="0">
1218
<col width="150px" class="parameters_name">
1219
<col class="parameters_description">
1220
<col width="200px" class="parameters_annotations">
1223
<td class="parameter_name"><p>size</p></td>
1224
<td class="parameter_description"><p>the font size, in <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a>ths of a device unit.</p></td>
1225
<td class="parameter_annotations"> </td>
1229
<div class="refsect3">
1230
<a name="id-1.2.5.9.19.6"></a><h4>Returns</h4>
1231
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be
1232
freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>.</p>
1235
<p class="since">Since 1.8</p>
1238
<div class="refsect2">
1239
<a name="pango-attr-font-desc-new"></a><h3>pango_attr_font_desc_new ()</h3>
1240
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1241
pango_attr_font_desc_new (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
1242
<p>Create a new font description attribute. This attribute
1243
allows setting family, style, weight, variant, stretch,
1244
and size simultaneously.</p>
1245
<div class="refsect3">
1246
<a name="id-1.2.5.9.20.5"></a><h4>Parameters</h4>
1247
<div class="informaltable"><table width="100%" border="0">
1249
<col width="150px" class="parameters_name">
1250
<col class="parameters_description">
1251
<col width="200px" class="parameters_annotations">
1254
<td class="parameter_name"><p>desc</p></td>
1255
<td class="parameter_description"><p>the font description</p></td>
1256
<td class="parameter_annotations"> </td>
1260
<div class="refsect3">
1261
<a name="id-1.2.5.9.20.6"></a><h4>Returns</h4>
1262
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1263
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1264
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1268
<div class="refsect2">
1269
<a name="pango-attr-foreground-new"></a><h3>pango_attr_foreground_new ()</h3>
1270
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1271
pango_attr_foreground_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> red</code></em>,
1272
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> green</code></em>,
1273
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> blue</code></em>);</pre>
1274
<p>Create a new foreground color attribute.</p>
1275
<div class="refsect3">
1276
<a name="id-1.2.5.9.21.5"></a><h4>Parameters</h4>
1277
<div class="informaltable"><table width="100%" border="0">
1279
<col width="150px" class="parameters_name">
1280
<col class="parameters_description">
1281
<col width="200px" class="parameters_annotations">
1285
<td class="parameter_name"><p>red</p></td>
1286
<td class="parameter_description"><p>the red value (ranging from 0 to 65535)</p></td>
1287
<td class="parameter_annotations"> </td>
1290
<td class="parameter_name"><p>green</p></td>
1291
<td class="parameter_description"><p>the green value</p></td>
1292
<td class="parameter_annotations"> </td>
1295
<td class="parameter_name"><p>blue</p></td>
1296
<td class="parameter_description"><p>the blue value</p></td>
1297
<td class="parameter_annotations"> </td>
1302
<div class="refsect3">
1303
<a name="id-1.2.5.9.21.6"></a><h4>Returns</h4>
1304
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1305
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1306
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1310
<div class="refsect2">
1311
<a name="pango-attr-background-new"></a><h3>pango_attr_background_new ()</h3>
1312
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1313
pango_attr_background_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> red</code></em>,
1314
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> green</code></em>,
1315
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> blue</code></em>);</pre>
1316
<p>Create a new background color attribute.</p>
1317
<div class="refsect3">
1318
<a name="id-1.2.5.9.22.5"></a><h4>Parameters</h4>
1319
<div class="informaltable"><table width="100%" border="0">
1321
<col width="150px" class="parameters_name">
1322
<col class="parameters_description">
1323
<col width="200px" class="parameters_annotations">
1327
<td class="parameter_name"><p>red</p></td>
1328
<td class="parameter_description"><p>the red value (ranging from 0 to 65535)</p></td>
1329
<td class="parameter_annotations"> </td>
1332
<td class="parameter_name"><p>green</p></td>
1333
<td class="parameter_description"><p>the green value</p></td>
1334
<td class="parameter_annotations"> </td>
1337
<td class="parameter_name"><p>blue</p></td>
1338
<td class="parameter_description"><p>the blue value</p></td>
1339
<td class="parameter_annotations"> </td>
1344
<div class="refsect3">
1345
<a name="id-1.2.5.9.22.6"></a><h4>Returns</h4>
1346
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1347
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1348
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1352
<div class="refsect2">
1353
<a name="pango-attr-strikethrough-new"></a><h3>pango_attr_strikethrough_new ()</h3>
1354
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1355
pango_attr_strikethrough_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> strikethrough</code></em>);</pre>
1356
<p>Create a new strike-through attribute.</p>
1357
<div class="refsect3">
1358
<a name="id-1.2.5.9.23.5"></a><h4>Parameters</h4>
1359
<div class="informaltable"><table width="100%" border="0">
1361
<col width="150px" class="parameters_name">
1362
<col class="parameters_description">
1363
<col width="200px" class="parameters_annotations">
1366
<td class="parameter_name"><p>strikethrough</p></td>
1367
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the text should be struck-through.</p></td>
1368
<td class="parameter_annotations"> </td>
1372
<div class="refsect3">
1373
<a name="id-1.2.5.9.23.6"></a><h4>Returns</h4>
1374
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1375
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1376
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1380
<div class="refsect2">
1381
<a name="pango-attr-strikethrough-color-new"></a><h3>pango_attr_strikethrough_color_new ()</h3>
1382
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1383
pango_attr_strikethrough_color_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> red</code></em>,
1384
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> green</code></em>,
1385
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> blue</code></em>);</pre>
1386
<p>Create a new strikethrough color attribute. This attribute
1387
modifies the color of strikethrough lines. If not set, strikethrough
1388
lines will use the foreground color.</p>
1389
<div class="refsect3">
1390
<a name="id-1.2.5.9.24.5"></a><h4>Parameters</h4>
1391
<div class="informaltable"><table width="100%" border="0">
1393
<col width="150px" class="parameters_name">
1394
<col class="parameters_description">
1395
<col width="200px" class="parameters_annotations">
1399
<td class="parameter_name"><p>red</p></td>
1400
<td class="parameter_description"><p>the red value (ranging from 0 to 65535)</p></td>
1401
<td class="parameter_annotations"> </td>
1404
<td class="parameter_name"><p>green</p></td>
1405
<td class="parameter_description"><p>the green value</p></td>
1406
<td class="parameter_annotations"> </td>
1409
<td class="parameter_name"><p>blue</p></td>
1410
<td class="parameter_description"><p>the blue value</p></td>
1411
<td class="parameter_annotations"> </td>
1416
<div class="refsect3">
1417
<a name="id-1.2.5.9.24.6"></a><h4>Returns</h4>
1418
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1419
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1420
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1422
<p class="since">Since 1.8</p>
1425
<div class="refsect2">
1426
<a name="pango-attr-underline-new"></a><h3>pango_attr_underline_new ()</h3>
1427
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1428
pango_attr_underline_new (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoUnderline" title="enum PangoUnderline"><span class="type">PangoUnderline</span></a> underline</code></em>);</pre>
1429
<p>Create a new underline-style attribute.</p>
1430
<div class="refsect3">
1431
<a name="id-1.2.5.9.25.5"></a><h4>Parameters</h4>
1432
<div class="informaltable"><table width="100%" border="0">
1434
<col width="150px" class="parameters_name">
1435
<col class="parameters_description">
1436
<col width="200px" class="parameters_annotations">
1439
<td class="parameter_name"><p>underline</p></td>
1440
<td class="parameter_description"><p>the underline style.</p></td>
1441
<td class="parameter_annotations"> </td>
1445
<div class="refsect3">
1446
<a name="id-1.2.5.9.25.6"></a><h4>Returns</h4>
1447
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1448
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1449
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1453
<div class="refsect2">
1454
<a name="pango-attr-underline-color-new"></a><h3>pango_attr_underline_color_new ()</h3>
1455
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1456
pango_attr_underline_color_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> red</code></em>,
1457
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> green</code></em>,
1458
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> blue</code></em>);</pre>
1459
<p>Create a new underline color attribute. This attribute
1460
modifies the color of underlines. If not set, underlines
1461
will use the foreground color.</p>
1462
<div class="refsect3">
1463
<a name="id-1.2.5.9.26.5"></a><h4>Parameters</h4>
1464
<div class="informaltable"><table width="100%" border="0">
1466
<col width="150px" class="parameters_name">
1467
<col class="parameters_description">
1468
<col width="200px" class="parameters_annotations">
1472
<td class="parameter_name"><p>red</p></td>
1473
<td class="parameter_description"><p>the red value (ranging from 0 to 65535)</p></td>
1474
<td class="parameter_annotations"> </td>
1477
<td class="parameter_name"><p>green</p></td>
1478
<td class="parameter_description"><p>the green value</p></td>
1479
<td class="parameter_annotations"> </td>
1482
<td class="parameter_name"><p>blue</p></td>
1483
<td class="parameter_description"><p>the blue value</p></td>
1484
<td class="parameter_annotations"> </td>
1489
<div class="refsect3">
1490
<a name="id-1.2.5.9.26.6"></a><h4>Returns</h4>
1491
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1492
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1493
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1495
<p class="since">Since 1.8</p>
1498
<div class="refsect2">
1499
<a name="PANGO-TYPE-UNDERLINE:CAPS"></a><h3>PANGO_TYPE_UNDERLINE</h3>
1500
<pre class="programlisting">#define PANGO_TYPE_UNDERLINE (pango_underline_get_type ())
1504
<div class="refsect2">
1505
<a name="pango-attr-shape-new"></a><h3>pango_attr_shape_new ()</h3>
1506
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1507
pango_attr_shape_new (<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
1508
<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);</pre>
1509
<p>Create a new shape attribute. A shape is used to impose a
1510
particular ink and logical rectangle on the result of shaping a
1511
particular glyph. This might be used, for instance, for
1512
embedding a picture or a widget inside a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>.</p>
1513
<div class="refsect3">
1514
<a name="id-1.2.5.9.28.5"></a><h4>Parameters</h4>
1515
<div class="informaltable"><table width="100%" border="0">
1517
<col width="150px" class="parameters_name">
1518
<col class="parameters_description">
1519
<col width="200px" class="parameters_annotations">
1523
<td class="parameter_name"><p>ink_rect</p></td>
1524
<td class="parameter_description"><p>ink rectangle to assign to each character</p></td>
1525
<td class="parameter_annotations"> </td>
1528
<td class="parameter_name"><p>logical_rect</p></td>
1529
<td class="parameter_description"><p>logical rectangle to assign to each character</p></td>
1530
<td class="parameter_annotations"> </td>
1535
<div class="refsect3">
1536
<a name="id-1.2.5.9.28.6"></a><h4>Returns</h4>
1537
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1538
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1539
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1543
<div class="refsect2">
1544
<a name="pango-attr-shape-new-with-data"></a><h3>pango_attr_shape_new_with_data ()</h3>
1545
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1546
pango_attr_shape_new_with_data (<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
1547
<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>,
1548
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
1549
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrDataCopyFunc" title="PangoAttrDataCopyFunc ()"><span class="type">PangoAttrDataCopyFunc</span></a> copy_func</code></em>,
1550
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy_func</code></em>);</pre>
1551
<p>Like <a class="link" href="pango-Text-Attributes.html#pango-attr-shape-new" title="pango_attr_shape_new ()"><code class="function">pango_attr_shape_new()</code></a>, but a user data pointer is also
1552
provided; this pointer can be accessed when later
1553
rendering the glyph.</p>
1554
<div class="refsect3">
1555
<a name="id-1.2.5.9.29.5"></a><h4>Parameters</h4>
1556
<div class="informaltable"><table width="100%" border="0">
1558
<col width="150px" class="parameters_name">
1559
<col class="parameters_description">
1560
<col width="200px" class="parameters_annotations">
1564
<td class="parameter_name"><p>ink_rect</p></td>
1565
<td class="parameter_description"><p>ink rectangle to assign to each character</p></td>
1566
<td class="parameter_annotations"> </td>
1569
<td class="parameter_name"><p>logical_rect</p></td>
1570
<td class="parameter_description"><p>logical rectangle to assign to each character</p></td>
1571
<td class="parameter_annotations"> </td>
1574
<td class="parameter_name"><p>data</p></td>
1575
<td class="parameter_description"><p>user data pointer</p></td>
1576
<td class="parameter_annotations"> </td>
1579
<td class="parameter_name"><p>copy_func</p></td>
1580
<td class="parameter_description"><p> function to copy <em class="parameter"><code>data</code></em>
1582
attribute is copied. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, <em class="parameter"><code>data</code></em>
1584
copied as a pointer. </p></td>
1585
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1588
<td class="parameter_name"><p>destroy_func</p></td>
1589
<td class="parameter_description"><p> function to free <em class="parameter"><code>data</code></em>
1591
attribute is freed, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
1592
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1597
<div class="refsect3">
1598
<a name="id-1.2.5.9.29.6"></a><h4>Returns</h4>
1599
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be
1600
freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>.</p>
1603
<p class="since">Since 1.8</p>
1606
<div class="refsect2">
1607
<a name="PangoAttrDataCopyFunc"></a><h3>PangoAttrDataCopyFunc ()</h3>
1608
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
1609
<span class="c_punctuation">(</span>*PangoAttrDataCopyFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> user_data</code></em>);</pre>
1610
<p>Type of a function that can duplicate user data for an attribute.</p>
1611
<div class="refsect3">
1612
<a name="id-1.2.5.9.30.5"></a><h4>Parameters</h4>
1613
<div class="informaltable"><table width="100%" border="0">
1615
<col width="150px" class="parameters_name">
1616
<col class="parameters_description">
1617
<col width="200px" class="parameters_annotations">
1620
<td class="parameter_name"><p>user_data</p></td>
1621
<td class="parameter_description"><p>user data to copy</p></td>
1622
<td class="parameter_annotations"> </td>
1626
<div class="refsect3">
1627
<a name="id-1.2.5.9.30.6"></a><h4>Returns</h4>
1628
<p> new copy of <em class="parameter"><code>user_data</code></em>
1634
<div class="refsect2">
1635
<a name="pango-attr-scale-new"></a><h3>pango_attr_scale_new ()</h3>
1636
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1637
pango_attr_scale_new (<em class="parameter"><code><span class="type">double</span> scale_factor</code></em>);</pre>
1638
<p>Create a new font size scale attribute. The base font for the
1639
affected text will have its size multiplied by <em class="parameter"><code>scale_factor</code></em>
1641
<div class="refsect3">
1642
<a name="id-1.2.5.9.31.5"></a><h4>Parameters</h4>
1643
<div class="informaltable"><table width="100%" border="0">
1645
<col width="150px" class="parameters_name">
1646
<col class="parameters_description">
1647
<col width="200px" class="parameters_annotations">
1650
<td class="parameter_name"><p>scale_factor</p></td>
1651
<td class="parameter_description"><p>factor to scale the font</p></td>
1652
<td class="parameter_annotations"> </td>
1656
<div class="refsect3">
1657
<a name="id-1.2.5.9.31.6"></a><h4>Returns</h4>
1658
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1659
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1660
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1664
<div class="refsect2">
1665
<a name="PANGO-SCALE-XX-SMALL:CAPS"></a><h3>PANGO_SCALE_XX_SMALL</h3>
1666
<pre class="programlisting">#define PANGO_SCALE_XX_SMALL ((double)0.5787037037037)
1668
<p>The scale factor for three shrinking steps (1 / (1.2 * 1.2 * 1.2)).</p>
1671
<div class="refsect2">
1672
<a name="PANGO-SCALE-X-SMALL:CAPS"></a><h3>PANGO_SCALE_X_SMALL</h3>
1673
<pre class="programlisting">#define PANGO_SCALE_X_SMALL ((double)0.6444444444444)
1675
<p>The scale factor for two shrinking steps (1 / (1.2 * 1.2)).</p>
1678
<div class="refsect2">
1679
<a name="PANGO-SCALE-SMALL:CAPS"></a><h3>PANGO_SCALE_SMALL</h3>
1680
<pre class="programlisting">#define PANGO_SCALE_SMALL ((double)0.8333333333333)
1682
<p>The scale factor for one shrinking step (1 / 1.2).</p>
1685
<div class="refsect2">
1686
<a name="PANGO-SCALE-MEDIUM:CAPS"></a><h3>PANGO_SCALE_MEDIUM</h3>
1687
<pre class="programlisting">#define PANGO_SCALE_MEDIUM ((double)1.0)
1689
<p>The scale factor for normal size (1.0).</p>
1692
<div class="refsect2">
1693
<a name="PANGO-SCALE-LARGE:CAPS"></a><h3>PANGO_SCALE_LARGE</h3>
1694
<pre class="programlisting">#define PANGO_SCALE_LARGE ((double)1.2)
1696
<p>The scale factor for one magnification step (1.2).</p>
1699
<div class="refsect2">
1700
<a name="PANGO-SCALE-X-LARGE:CAPS"></a><h3>PANGO_SCALE_X_LARGE</h3>
1701
<pre class="programlisting">#define PANGO_SCALE_X_LARGE ((double)1.4399999999999)
1703
<p>The scale factor for two magnification steps (1.2 * 1.2).</p>
1706
<div class="refsect2">
1707
<a name="PANGO-SCALE-XX-LARGE:CAPS"></a><h3>PANGO_SCALE_XX_LARGE</h3>
1708
<pre class="programlisting">#define PANGO_SCALE_XX_LARGE ((double)1.728)
1710
<p>The scale factor for three magnification steps (1.2 * 1.2 * 1.2).</p>
1713
<div class="refsect2">
1714
<a name="pango-attr-rise-new"></a><h3>pango_attr_rise_new ()</h3>
1715
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1716
pango_attr_rise_new (<em class="parameter"><code><span class="type">int</span> rise</code></em>);</pre>
1717
<p>Create a new baseline displacement attribute.</p>
1718
<div class="refsect3">
1719
<a name="id-1.2.5.9.39.5"></a><h4>Parameters</h4>
1720
<div class="informaltable"><table width="100%" border="0">
1722
<col width="150px" class="parameters_name">
1723
<col class="parameters_description">
1724
<col width="200px" class="parameters_annotations">
1727
<td class="parameter_name"><p>rise</p></td>
1728
<td class="parameter_description"><p>the amount that the text should be displaced vertically,
1729
in Pango units. Positive values displace the text upwards.</p></td>
1730
<td class="parameter_annotations"> </td>
1734
<div class="refsect3">
1735
<a name="id-1.2.5.9.39.6"></a><h4>Returns</h4>
1736
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1737
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1738
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1742
<div class="refsect2">
1743
<a name="pango-attr-letter-spacing-new"></a><h3>pango_attr_letter_spacing_new ()</h3>
1744
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1745
pango_attr_letter_spacing_new (<em class="parameter"><code><span class="type">int</span> letter_spacing</code></em>);</pre>
1746
<p>Create a new letter-spacing attribute.</p>
1747
<div class="refsect3">
1748
<a name="id-1.2.5.9.40.5"></a><h4>Parameters</h4>
1749
<div class="informaltable"><table width="100%" border="0">
1751
<col width="150px" class="parameters_name">
1752
<col class="parameters_description">
1753
<col width="200px" class="parameters_annotations">
1756
<td class="parameter_name"><p>letter_spacing</p></td>
1757
<td class="parameter_description"><p>amount of extra space to add between graphemes
1758
of the text, in Pango units.</p></td>
1759
<td class="parameter_annotations"> </td>
1763
<div class="refsect3">
1764
<a name="id-1.2.5.9.40.6"></a><h4>Returns</h4>
1765
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1766
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1767
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1769
<p class="since">Since 1.6</p>
1772
<div class="refsect2">
1773
<a name="pango-attr-fallback-new"></a><h3>pango_attr_fallback_new ()</h3>
1774
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1775
pango_attr_fallback_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> enable_fallback</code></em>);</pre>
1776
<p>Create a new font fallback attribute.</p>
1777
<p>If fallback is disabled, characters will only be used from the
1778
closest matching font on the system. No fallback will be done to
1779
other fonts on the system that might contain the characters in the
1781
<div class="refsect3">
1782
<a name="id-1.2.5.9.41.6"></a><h4>Parameters</h4>
1783
<div class="informaltable"><table width="100%" border="0">
1785
<col width="150px" class="parameters_name">
1786
<col class="parameters_description">
1787
<col width="200px" class="parameters_annotations">
1790
<td class="parameter_name"><p>enable_fallback</p></td>
1791
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if we should fall back on other fonts
1792
for characters the active font is missing.</p></td>
1793
<td class="parameter_annotations"> </td>
1797
<div class="refsect3">
1798
<a name="id-1.2.5.9.41.7"></a><h4>Returns</h4>
1799
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1800
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1801
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1803
<p class="since">Since 1.4</p>
1806
<div class="refsect2">
1807
<a name="pango-attr-gravity-new"></a><h3>pango_attr_gravity_new ()</h3>
1808
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1809
pango_attr_gravity_new (<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravity" title="enum PangoGravity"><span class="type">PangoGravity</span></a> gravity</code></em>);</pre>
1810
<p>Create a new gravity attribute.</p>
1811
<div class="refsect3">
1812
<a name="id-1.2.5.9.42.5"></a><h4>Parameters</h4>
1813
<div class="informaltable"><table width="100%" border="0">
1815
<col width="150px" class="parameters_name">
1816
<col class="parameters_description">
1817
<col width="200px" class="parameters_annotations">
1820
<td class="parameter_name"><p>gravity</p></td>
1821
<td class="parameter_description"><p>the gravity value; should not be <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-AUTO:CAPS"><code class="literal">PANGO_GRAVITY_AUTO</code></a>.</p></td>
1822
<td class="parameter_annotations"> </td>
1826
<div class="refsect3">
1827
<a name="id-1.2.5.9.42.6"></a><h4>Returns</h4>
1828
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1829
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1830
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1832
<p class="since">Since 1.16</p>
1835
<div class="refsect2">
1836
<a name="pango-attr-gravity-hint-new"></a><h3>pango_attr_gravity_hint_new ()</h3>
1837
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
1838
pango_attr_gravity_hint_new (<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravityHint" title="enum PangoGravityHint"><span class="type">PangoGravityHint</span></a> hint</code></em>);</pre>
1839
<p>Create a new gravity hint attribute.</p>
1840
<div class="refsect3">
1841
<a name="id-1.2.5.9.43.5"></a><h4>Parameters</h4>
1842
<div class="informaltable"><table width="100%" border="0">
1844
<col width="150px" class="parameters_name">
1845
<col class="parameters_description">
1846
<col width="200px" class="parameters_annotations">
1849
<td class="parameter_name"><p>hint</p></td>
1850
<td class="parameter_description"><p>the gravity hint value.</p></td>
1851
<td class="parameter_annotations"> </td>
1855
<div class="refsect3">
1856
<a name="id-1.2.5.9.43.6"></a><h4>Returns</h4>
1857
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1858
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. </p>
1859
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1861
<p class="since">Since 1.16</p>
1864
<div class="refsect2">
1865
<a name="pango-color-parse"></a><h3>pango_color_parse ()</h3>
1866
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1867
pango_color_parse (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="type">PangoColor</span></a> *color</code></em>,
1868
<em class="parameter"><code>const <span class="type">char</span> *spec</code></em>);</pre>
1869
<p>Fill in the fields of a color from a string specification. The
1870
string can either one of a large set of standard names. (Taken
1871
from the CSS <a class="ulink" href="http://dev.w3.org/csswg/css-color/#named-colors" target="_top">specification</a>), or it can be a hexadecimal
1873
form '#rgb' '#rrggbb' '#rrrgggbbb' or '#rrrrggggbbbb' where
1874
'r', 'g' and 'b' are hex digits of the red, green, and blue
1875
components of the color, respectively. (White in the four
1876
forms is '#fff' '#ffffff' '#fffffffff' and '#ffffffffffff')</p>
1877
<div class="refsect3">
1878
<a name="id-1.2.5.9.44.5"></a><h4>Parameters</h4>
1879
<div class="informaltable"><table width="100%" border="0">
1881
<col width="150px" class="parameters_name">
1882
<col class="parameters_description">
1883
<col width="200px" class="parameters_annotations">
1887
<td class="parameter_name"><p>color</p></td>
1888
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="type">PangoColor</span></a> structure in which to store the result, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
1889
<td class="parameter_annotations"> </td>
1892
<td class="parameter_name"><p>spec</p></td>
1893
<td class="parameter_description"><p>a string specifying the new color</p></td>
1894
<td class="parameter_annotations"> </td>
1899
<div class="refsect3">
1900
<a name="id-1.2.5.9.44.6"></a><h4>Returns</h4>
1901
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if parsing of the specifier succeeded,
1902
otherwise false.</p>
1907
<div class="refsect2">
1908
<a name="pango-color-copy"></a><h3>pango_color_copy ()</h3>
1909
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="returnvalue">PangoColor</span></a> *
1910
pango_color_copy (<em class="parameter"><code>const <a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="type">PangoColor</span></a> *src</code></em>);</pre>
1911
<p>Creates a copy of <em class="parameter"><code>src</code></em>
1912
, which should be freed with
1913
<a class="link" href="pango-Text-Attributes.html#pango-color-free" title="pango_color_free ()"><code class="function">pango_color_free()</code></a>. Primarily used by language bindings,
1914
not that useful otherwise (since colors can just be copied
1915
by assignment in C).</p>
1916
<div class="refsect3">
1917
<a name="id-1.2.5.9.45.5"></a><h4>Parameters</h4>
1918
<div class="informaltable"><table width="100%" border="0">
1920
<col width="150px" class="parameters_name">
1921
<col class="parameters_description">
1922
<col width="200px" class="parameters_annotations">
1925
<td class="parameter_name"><p>src</p></td>
1926
<td class="parameter_description"><p>color to copy, may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
1927
<td class="parameter_annotations"> </td>
1931
<div class="refsect3">
1932
<a name="id-1.2.5.9.45.6"></a><h4>Returns</h4>
1933
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="type">PangoColor</span></a>, which should
1934
be freed with <a class="link" href="pango-Text-Attributes.html#pango-color-free" title="pango_color_free ()"><code class="function">pango_color_free()</code></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1935
if <em class="parameter"><code>src</code></em>
1936
was <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
1941
<div class="refsect2">
1942
<a name="pango-color-free"></a><h3>pango_color_free ()</h3>
1943
<pre class="programlisting"><span class="returnvalue">void</span>
1944
pango_color_free (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="type">PangoColor</span></a> *color</code></em>);</pre>
1945
<p>Frees a color allocated by <a class="link" href="pango-Text-Attributes.html#pango-color-copy" title="pango_color_copy ()"><code class="function">pango_color_copy()</code></a>.</p>
1946
<div class="refsect3">
1947
<a name="id-1.2.5.9.46.5"></a><h4>Parameters</h4>
1948
<div class="informaltable"><table width="100%" border="0">
1950
<col width="150px" class="parameters_name">
1951
<col class="parameters_description">
1952
<col width="200px" class="parameters_annotations">
1955
<td class="parameter_name"><p>color</p></td>
1956
<td class="parameter_description"><p>an allocated <a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="type">PangoColor</span></a>, may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
1957
<td class="parameter_annotations"> </td>
1963
<div class="refsect2">
1964
<a name="pango-color-to-string"></a><h3>pango_color_to_string ()</h3>
1965
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
1966
pango_color_to_string (<em class="parameter"><code>const <a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="type">PangoColor</span></a> *color</code></em>);</pre>
1967
<p>Returns a textual specification of <em class="parameter"><code>color</code></em>
1968
in the hexadecimal form
1969
<code class="literal">#rrrrggggbbbb</code>, where <code class="literal">r</code>,
1970
<code class="literal">g</code> and <code class="literal">b</code> are hex digits representing
1971
the red, green, and blue components respectively.</p>
1972
<div class="refsect3">
1973
<a name="id-1.2.5.9.47.5"></a><h4>Parameters</h4>
1974
<div class="informaltable"><table width="100%" border="0">
1976
<col width="150px" class="parameters_name">
1977
<col class="parameters_description">
1978
<col width="200px" class="parameters_annotations">
1981
<td class="parameter_name"><p>color</p></td>
1982
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="type">PangoColor</span></a></p></td>
1983
<td class="parameter_annotations"> </td>
1987
<div class="refsect3">
1988
<a name="id-1.2.5.9.47.6"></a><h4>Returns</h4>
1989
<p> a newly-allocated text string that must be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</p>
1992
<p class="since">Since 1.16</p>
1995
<div class="refsect2">
1996
<a name="pango-attr-list-new"></a><h3>pango_attr_list_new ()</h3>
1997
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> *
1998
pango_attr_list_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
1999
<p>Create a new empty attribute list with a reference count of one.</p>
2000
<div class="refsect3">
2001
<a name="id-1.2.5.9.48.5"></a><h4>Returns</h4>
2002
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a>,
2003
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attr-list-unref" title="pango_attr_list_unref ()"><code class="function">pango_attr_list_unref()</code></a>. </p>
2004
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
2008
<div class="refsect2">
2009
<a name="pango-attr-list-ref"></a><h3>pango_attr_list_ref ()</h3>
2010
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> *
2011
pango_attr_list_ref (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>);</pre>
2012
<p>Increase the reference count of the given attribute list by one.</p>
2013
<div class="refsect3">
2014
<a name="id-1.2.5.9.49.5"></a><h4>Parameters</h4>
2015
<div class="informaltable"><table width="100%" border="0">
2017
<col width="150px" class="parameters_name">
2018
<col class="parameters_description">
2019
<col width="200px" class="parameters_annotations">
2022
<td class="parameter_name"><p>list</p></td>
2023
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a>, may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
2024
<td class="parameter_annotations"> </td>
2028
<div class="refsect3">
2029
<a name="id-1.2.5.9.49.6"></a><h4>Returns</h4>
2030
<p> The attribute list passed in</p>
2033
<p class="since">Since 1.10</p>
2036
<div class="refsect2">
2037
<a name="pango-attr-list-unref"></a><h3>pango_attr_list_unref ()</h3>
2038
<pre class="programlisting"><span class="returnvalue">void</span>
2039
pango_attr_list_unref (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>);</pre>
2040
<p>Decrease the reference count of the given attribute list by one.
2041
If the result is zero, free the attribute list and the attributes
2043
<div class="refsect3">
2044
<a name="id-1.2.5.9.50.5"></a><h4>Parameters</h4>
2045
<div class="informaltable"><table width="100%" border="0">
2047
<col width="150px" class="parameters_name">
2048
<col class="parameters_description">
2049
<col width="200px" class="parameters_annotations">
2052
<td class="parameter_name"><p>list</p></td>
2053
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a>, may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
2054
<td class="parameter_annotations"> </td>
2060
<div class="refsect2">
2061
<a name="pango-attr-list-copy"></a><h3>pango_attr_list_copy ()</h3>
2062
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> *
2063
pango_attr_list_copy (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>);</pre>
2064
<p>Copy <em class="parameter"><code>list</code></em>
2065
and return an identical new list.</p>
2066
<div class="refsect3">
2067
<a name="id-1.2.5.9.51.5"></a><h4>Parameters</h4>
2068
<div class="informaltable"><table width="100%" border="0">
2070
<col width="150px" class="parameters_name">
2071
<col class="parameters_description">
2072
<col width="200px" class="parameters_annotations">
2075
<td class="parameter_name"><p>list</p></td>
2076
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a>, may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
2077
<td class="parameter_annotations"> </td>
2081
<div class="refsect3">
2082
<a name="id-1.2.5.9.51.6"></a><h4>Returns</h4>
2083
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a>, with a
2084
reference count of one, which should
2085
be freed with <a class="link" href="pango-Text-Attributes.html#pango-attr-list-unref" title="pango_attr_list_unref ()"><code class="function">pango_attr_list_unref()</code></a>.
2086
Returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>list</code></em>
2087
was <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
2092
<div class="refsect2">
2093
<a name="pango-attr-list-insert"></a><h3>pango_attr_list_insert ()</h3>
2094
<pre class="programlisting"><span class="returnvalue">void</span>
2095
pango_attr_list_insert (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>,
2096
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr</code></em>);</pre>
2097
<p>Insert the given attribute into the <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a>. It will
2098
be inserted after all other attributes with a matching
2099
<em class="parameter"><code>start_index</code></em>
2101
<div class="refsect3">
2102
<a name="id-1.2.5.9.52.5"></a><h4>Parameters</h4>
2103
<div class="informaltable"><table width="100%" border="0">
2105
<col width="150px" class="parameters_name">
2106
<col class="parameters_description">
2107
<col width="200px" class="parameters_annotations">
2111
<td class="parameter_name"><p>list</p></td>
2112
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a></p></td>
2113
<td class="parameter_annotations"> </td>
2116
<td class="parameter_name"><p>attr</p></td>
2117
<td class="parameter_description"><p> the attribute to insert. Ownership of this
2118
value is assumed by the list. </p></td>
2119
<td class="parameter_annotations"><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
2126
<div class="refsect2">
2127
<a name="pango-attr-list-insert-before"></a><h3>pango_attr_list_insert_before ()</h3>
2128
<pre class="programlisting"><span class="returnvalue">void</span>
2129
pango_attr_list_insert_before (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>,
2130
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr</code></em>);</pre>
2131
<p>Insert the given attribute into the <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a>. It will
2132
be inserted before all other attributes with a matching
2133
<em class="parameter"><code>start_index</code></em>
2135
<div class="refsect3">
2136
<a name="id-1.2.5.9.53.5"></a><h4>Parameters</h4>
2137
<div class="informaltable"><table width="100%" border="0">
2139
<col width="150px" class="parameters_name">
2140
<col class="parameters_description">
2141
<col width="200px" class="parameters_annotations">
2145
<td class="parameter_name"><p>list</p></td>
2146
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a></p></td>
2147
<td class="parameter_annotations"> </td>
2150
<td class="parameter_name"><p>attr</p></td>
2151
<td class="parameter_description"><p> the attribute to insert. Ownership of this
2152
value is assumed by the list. </p></td>
2153
<td class="parameter_annotations"><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
2160
<div class="refsect2">
2161
<a name="pango-attr-list-change"></a><h3>pango_attr_list_change ()</h3>
2162
<pre class="programlisting"><span class="returnvalue">void</span>
2163
pango_attr_list_change (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>,
2164
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr</code></em>);</pre>
2165
<p>Insert the given attribute into the <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a>. It will
2166
replace any attributes of the same type on that segment
2167
and be merged with any adjoining attributes that are identical.</p>
2168
<p>This function is slower than <a class="link" href="pango-Text-Attributes.html#pango-attr-list-insert" title="pango_attr_list_insert ()"><code class="function">pango_attr_list_insert()</code></a> for
2169
creating a attribute list in order (potentially much slower
2170
for large lists). However, <a class="link" href="pango-Text-Attributes.html#pango-attr-list-insert" title="pango_attr_list_insert ()"><code class="function">pango_attr_list_insert()</code></a> is not
2171
suitable for continually changing a set of attributes
2172
since it never removes or combines existing attributes.</p>
2173
<div class="refsect3">
2174
<a name="id-1.2.5.9.54.6"></a><h4>Parameters</h4>
2175
<div class="informaltable"><table width="100%" border="0">
2177
<col width="150px" class="parameters_name">
2178
<col class="parameters_description">
2179
<col width="200px" class="parameters_annotations">
2183
<td class="parameter_name"><p>list</p></td>
2184
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a></p></td>
2185
<td class="parameter_annotations"> </td>
2188
<td class="parameter_name"><p>attr</p></td>
2189
<td class="parameter_description"><p> the attribute to insert. Ownership of this
2190
value is assumed by the list. </p></td>
2191
<td class="parameter_annotations"><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
2198
<div class="refsect2">
2199
<a name="pango-attr-list-splice"></a><h3>pango_attr_list_splice ()</h3>
2200
<pre class="programlisting"><span class="returnvalue">void</span>
2201
pango_attr_list_splice (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>,
2202
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *other</code></em>,
2203
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pos</code></em>,
2204
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> len</code></em>);</pre>
2205
<p>This function opens up a hole in <em class="parameter"><code>list</code></em>
2206
, fills it in with attributes from
2207
the left, and then merges <em class="parameter"><code>other</code></em>
2208
on top of the hole.</p>
2209
<p>This operation is equivalent to stretching every attribute
2210
that applies at position <em class="parameter"><code>pos</code></em>
2211
in <em class="parameter"><code>list</code></em>
2212
by an amount <em class="parameter"><code>len</code></em>
2214
and then calling <a class="link" href="pango-Text-Attributes.html#pango-attr-list-change" title="pango_attr_list_change ()"><code class="function">pango_attr_list_change()</code></a> with a copy
2215
of each attribute in <em class="parameter"><code>other</code></em>
2216
in sequence (offset in position by <em class="parameter"><code>pos</code></em>
2218
<p>This operation proves useful for, for instance, inserting
2219
a pre-edit string in the middle of an edit buffer.</p>
2220
<div class="refsect3">
2221
<a name="id-1.2.5.9.55.7"></a><h4>Parameters</h4>
2222
<div class="informaltable"><table width="100%" border="0">
2224
<col width="150px" class="parameters_name">
2225
<col class="parameters_description">
2226
<col width="200px" class="parameters_annotations">
2230
<td class="parameter_name"><p>list</p></td>
2231
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a></p></td>
2232
<td class="parameter_annotations"> </td>
2235
<td class="parameter_name"><p>other</p></td>
2236
<td class="parameter_description"><p>another <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a></p></td>
2237
<td class="parameter_annotations"> </td>
2240
<td class="parameter_name"><p>pos</p></td>
2241
<td class="parameter_description"><p>the position in <em class="parameter"><code>list</code></em>
2242
at which to insert <em class="parameter"><code>other</code></em>
2244
<td class="parameter_annotations"> </td>
2247
<td class="parameter_name"><p>len</p></td>
2248
<td class="parameter_description"><p>the length of the spliced segment. (Note that this
2249
must be specified since the attributes in <em class="parameter"><code>other</code></em>
2250
may only be present at some subsection of this range)</p></td>
2251
<td class="parameter_annotations"> </td>
2258
<div class="refsect2">
2259
<a name="pango-attr-list-filter"></a><h3>pango_attr_list_filter ()</h3>
2260
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> *
2261
pango_attr_list_filter (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>,
2262
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrFilterFunc" title="PangoAttrFilterFunc ()"><span class="type">PangoAttrFilterFunc</span></a> func</code></em>,
2263
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
2264
<p>Given a <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> and callback function, removes any elements
2265
of <em class="parameter"><code>list</code></em>
2266
for which <em class="parameter"><code>func</code></em>
2267
returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> and inserts them into
2269
<div class="refsect3">
2270
<a name="id-1.2.5.9.56.5"></a><h4>Parameters</h4>
2271
<div class="informaltable"><table width="100%" border="0">
2273
<col width="150px" class="parameters_name">
2274
<col class="parameters_description">
2275
<col width="200px" class="parameters_annotations">
2279
<td class="parameter_name"><p>list</p></td>
2280
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a></p></td>
2281
<td class="parameter_annotations"> </td>
2284
<td class="parameter_name"><p>func</p></td>
2285
<td class="parameter_description"><p> callback function; returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>
2286
if an attribute should be filtered out. </p></td>
2287
<td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>][<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym> data]</span></td>
2290
<td class="parameter_name"><p>data</p></td>
2291
<td class="parameter_description"><p> Data to be passed to <em class="parameter"><code>func</code></em>
2293
<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span></td>
2298
<div class="refsect3">
2299
<a name="id-1.2.5.9.56.6"></a><h4>Returns</h4>
2300
<p> the new <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
2301
no attributes of the given types were found. </p>
2302
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
2304
<p class="since">Since 1.2</p>
2307
<div class="refsect2">
2308
<a name="PangoAttrFilterFunc"></a><h3>PangoAttrFilterFunc ()</h3>
2309
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
2310
<span class="c_punctuation">(</span>*PangoAttrFilterFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attribute</code></em>,
2311
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
2312
<p>Type of a function filtering a list of attributes.</p>
2313
<div class="refsect3">
2314
<a name="id-1.2.5.9.57.5"></a><h4>Parameters</h4>
2315
<div class="informaltable"><table width="100%" border="0">
2317
<col width="150px" class="parameters_name">
2318
<col class="parameters_description">
2319
<col width="200px" class="parameters_annotations">
2323
<td class="parameter_name"><p>attribute</p></td>
2324
<td class="parameter_description"><p>a Pango attribute</p></td>
2325
<td class="parameter_annotations"> </td>
2328
<td class="parameter_name"><p>user_data</p></td>
2329
<td class="parameter_description"><p>user data passed to the function</p></td>
2330
<td class="parameter_annotations"> </td>
2335
<div class="refsect3">
2336
<a name="id-1.2.5.9.57.6"></a><h4>Returns</h4>
2337
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the attribute should be selected for
2338
filtering, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
2343
<div class="refsect2">
2344
<a name="pango-attr-list-get-iterator"></a><h3>pango_attr_list_get_iterator ()</h3>
2345
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="returnvalue">PangoAttrIterator</span></a> *
2346
pango_attr_list_get_iterator (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>);</pre>
2347
<p>Create a iterator initialized to the beginning of the list.
2348
<em class="parameter"><code>list</code></em>
2349
must not be modified until this iterator is freed.</p>
2350
<div class="refsect3">
2351
<a name="id-1.2.5.9.58.5"></a><h4>Parameters</h4>
2352
<div class="informaltable"><table width="100%" border="0">
2354
<col width="150px" class="parameters_name">
2355
<col class="parameters_description">
2356
<col width="200px" class="parameters_annotations">
2359
<td class="parameter_name"><p>list</p></td>
2360
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a></p></td>
2361
<td class="parameter_annotations"> </td>
2365
<div class="refsect3">
2366
<a name="id-1.2.5.9.58.6"></a><h4>Returns</h4>
2367
<p> the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a>, which should
2368
be freed with <a class="link" href="pango-Text-Attributes.html#pango-attr-iterator-destroy" title="pango_attr_iterator_destroy ()"><code class="function">pango_attr_iterator_destroy()</code></a>. </p>
2369
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
2373
<div class="refsect2">
2374
<a name="pango-attr-iterator-copy"></a><h3>pango_attr_iterator_copy ()</h3>
2375
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="returnvalue">PangoAttrIterator</span></a> *
2376
pango_attr_iterator_copy (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>);</pre>
2377
<p>Copy a <a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a></p>
2378
<div class="refsect3">
2379
<a name="id-1.2.5.9.59.5"></a><h4>Parameters</h4>
2380
<div class="informaltable"><table width="100%" border="0">
2382
<col width="150px" class="parameters_name">
2383
<col class="parameters_description">
2384
<col width="200px" class="parameters_annotations">
2387
<td class="parameter_name"><p>iterator</p></td>
2388
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a>.</p></td>
2389
<td class="parameter_annotations"> </td>
2393
<div class="refsect3">
2394
<a name="id-1.2.5.9.59.6"></a><h4>Returns</h4>
2395
<p> the newly allocated
2396
<a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a>, which should be freed with
2397
<a class="link" href="pango-Text-Attributes.html#pango-attr-iterator-destroy" title="pango_attr_iterator_destroy ()"><code class="function">pango_attr_iterator_destroy()</code></a>. </p>
2398
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
2402
<div class="refsect2">
2403
<a name="pango-attr-iterator-next"></a><h3>pango_attr_iterator_next ()</h3>
2404
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
2405
pango_attr_iterator_next (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>);</pre>
2406
<p>Advance the iterator until the next change of style.</p>
2407
<div class="refsect3">
2408
<a name="id-1.2.5.9.60.5"></a><h4>Parameters</h4>
2409
<div class="informaltable"><table width="100%" border="0">
2411
<col width="150px" class="parameters_name">
2412
<col class="parameters_description">
2413
<col width="200px" class="parameters_annotations">
2416
<td class="parameter_name"><p>iterator</p></td>
2417
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a></p></td>
2418
<td class="parameter_annotations"> </td>
2422
<div class="refsect3">
2423
<a name="id-1.2.5.9.60.6"></a><h4>Returns</h4>
2424
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the iterator is at the end of the list, otherwise <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a></p>
2429
<div class="refsect2">
2430
<a name="pango-attr-iterator-range"></a><h3>pango_attr_iterator_range ()</h3>
2431
<pre class="programlisting"><span class="returnvalue">void</span>
2432
pango_attr_iterator_range (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>,
2433
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *start</code></em>,
2434
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *end</code></em>);</pre>
2435
<p>Get the range of the current segment. Note that the
2436
stored return values are signed, not unsigned like
2437
the values in <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>. To deal with this API
2438
oversight, stored return values that wouldn't fit into
2439
a signed integer are clamped to <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#G-MAXINT:CAPS"><code class="literal">G_MAXINT</code></a>.</p>
2440
<div class="refsect3">
2441
<a name="id-1.2.5.9.61.5"></a><h4>Parameters</h4>
2442
<div class="informaltable"><table width="100%" border="0">
2444
<col width="150px" class="parameters_name">
2445
<col class="parameters_description">
2446
<col width="200px" class="parameters_annotations">
2450
<td class="parameter_name"><p>iterator</p></td>
2451
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a></p></td>
2452
<td class="parameter_annotations"> </td>
2455
<td class="parameter_name"><p>start</p></td>
2456
<td class="parameter_description"><p> location to store the start of the range. </p></td>
2457
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
2460
<td class="parameter_name"><p>end</p></td>
2461
<td class="parameter_description"><p> location to store the end of the range. </p></td>
2462
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
2469
<div class="refsect2">
2470
<a name="pango-attr-iterator-get"></a><h3>pango_attr_iterator_get ()</h3>
2471
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> *
2472
pango_attr_iterator_get (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>,
2473
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrType" title="enum PangoAttrType"><span class="type">PangoAttrType</span></a> type</code></em>);</pre>
2474
<p>Find the current attribute of a particular type at the iterator
2475
location. When multiple attributes of the same type overlap,
2476
the attribute whose range starts closest to the current location
2478
<div class="refsect3">
2479
<a name="id-1.2.5.9.62.5"></a><h4>Parameters</h4>
2480
<div class="informaltable"><table width="100%" border="0">
2482
<col width="150px" class="parameters_name">
2483
<col class="parameters_description">
2484
<col width="200px" class="parameters_annotations">
2488
<td class="parameter_name"><p>iterator</p></td>
2489
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a></p></td>
2490
<td class="parameter_annotations"> </td>
2493
<td class="parameter_name"><p>type</p></td>
2494
<td class="parameter_description"><p>the type of attribute to find.</p></td>
2495
<td class="parameter_annotations"> </td>
2500
<div class="refsect3">
2501
<a name="id-1.2.5.9.62.6"></a><h4>Returns</h4>
2502
<p> the current attribute of the given type, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
2503
no attribute of that type applies to the current
2509
<div class="refsect2">
2510
<a name="pango-attr-iterator-get-font"></a><h3>pango_attr_iterator_get_font ()</h3>
2511
<pre class="programlisting"><span class="returnvalue">void</span>
2512
pango_attr_iterator_get_font (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>,
2513
<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
2514
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> **language</code></em>,
2515
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> **extra_attrs</code></em>);</pre>
2516
<p>Get the font and other attributes at the current iterator position.</p>
2517
<div class="refsect3">
2518
<a name="id-1.2.5.9.63.5"></a><h4>Parameters</h4>
2519
<div class="informaltable"><table width="100%" border="0">
2521
<col width="150px" class="parameters_name">
2522
<col class="parameters_description">
2523
<col width="200px" class="parameters_annotations">
2527
<td class="parameter_name"><p>iterator</p></td>
2528
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a></p></td>
2529
<td class="parameter_annotations"> </td>
2532
<td class="parameter_name"><p>desc</p></td>
2533
<td class="parameter_description"><p>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> to fill in with the current values.
2534
The family name in this structure will be set using
2535
<a class="link" href="pango-Fonts.html#pango-font-description-set-family-static" title="pango_font_description_set_family_static ()"><code class="function">pango_font_description_set_family_static()</code></a> using values from
2536
an attribute in the <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> associated with the iterator,
2537
so if you plan to keep it around, you must call:
2538
<code class="literal">pango_font_description_set_family (desc, pango_font_description_get_family (desc))</code>.</p></td>
2539
<td class="parameter_annotations"> </td>
2542
<td class="parameter_name"><p>language</p></td>
2543
<td class="parameter_description"><p> if non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, location to store language tag for item, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
2544
if none is found. </p></td>
2545
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
2548
<td class="parameter_name"><p>extra_attrs</p></td>
2549
<td class="parameter_description"><p> if non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>,
2550
location in which to store a list of non-font
2551
attributes at the the current position; only the highest priority
2552
value of each attribute will be added to this list. In order
2553
to free this value, you must call <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a> on
2554
each member. </p></td>
2555
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Pango.Attribute][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
2562
<div class="refsect2">
2563
<a name="pango-attr-iterator-get-attrs"></a><h3>pango_attr_iterator_get_attrs ()</h3>
2564
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *
2565
pango_attr_iterator_get_attrs (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>);</pre>
2566
<p>Gets a list of all attributes at the current position of the
2568
<div class="refsect3">
2569
<a name="id-1.2.5.9.64.5"></a><h4>Parameters</h4>
2570
<div class="informaltable"><table width="100%" border="0">
2572
<col width="150px" class="parameters_name">
2573
<col class="parameters_description">
2574
<col width="200px" class="parameters_annotations">
2577
<td class="parameter_name"><p>iterator</p></td>
2578
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a></p></td>
2579
<td class="parameter_annotations"> </td>
2583
<div class="refsect3">
2584
<a name="id-1.2.5.9.64.6"></a><h4>Returns</h4>
2586
all attributes for the current range.
2587
To free this value, call <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a> on
2588
each value and <a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#g-slist-free"><code class="function">g_slist_free()</code></a> on the list. </p>
2589
<p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Pango.Attribute][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
2591
<p class="since">Since 1.2</p>
2594
<div class="refsect2">
2595
<a name="pango-attr-iterator-destroy"></a><h3>pango_attr_iterator_destroy ()</h3>
2596
<pre class="programlisting"><span class="returnvalue">void</span>
2597
pango_attr_iterator_destroy (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>);</pre>
2598
<p>Destroy a <a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> and free all associated memory.</p>
2599
<div class="refsect3">
2600
<a name="id-1.2.5.9.65.5"></a><h4>Parameters</h4>
2601
<div class="informaltable"><table width="100%" border="0">
2603
<col width="150px" class="parameters_name">
2604
<col class="parameters_description">
2605
<col width="200px" class="parameters_annotations">
2608
<td class="parameter_name"><p>iterator</p></td>
2609
<td class="parameter_description"><p>a <a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a>.</p></td>
2610
<td class="parameter_annotations"> </td>
2616
<div class="refsect1">
2617
<a name="pango-Text-Attributes.other_details"></a><h2>Types and Values</h2>
2618
<div class="refsect2">
2619
<a name="PangoAttrType"></a><h3>enum PangoAttrType</h3>
2620
<p>The <a class="link" href="pango-Text-Attributes.html#PangoAttrType" title="enum PangoAttrType"><span class="type">PangoAttrType</span></a>
227
2621
distinguishes between different types of attributes. Along with the
228
2622
predefined values, it is possible to allocate additional values
229
for custom attributes using <a class="link" href="pango-Text-Attributes.html#pango-attr-type-register" title="pango_attr_type_register ()"><code class="function">pango_attr_type_register()</code></a>. The predefined
2623
for custom attributes using <a class="link" href="pango-Text-Attributes.html#pango-attr-type-register" title="pango_attr_type_register ()"><code class="function">pango_attr_type_register()</code></a>. The predefined
230
2624
values are given below. The type of structure used to store the
231
2625
attribute is listed in parentheses after the description.</p>
232
<div class="variablelist"><table border="0" class="variablelist">
2626
<div class="refsect3">
2627
<a name="id-1.2.5.10.2.4"></a><h4>Members</h4>
2628
<div class="informaltable"><table width="100%" border="0">
234
<col align="left" valign="top">
2630
<col width="300px" class="enum_members_name">
2631
<col class="enum_members_description">
2632
<col width="200px" class="enum_members_annotations">
239
<td><p><a name="PANGO-ATTR-INVALID:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_INVALID</code></span></p></td>
244
<td><p><a name="PANGO-ATTR-LANGUAGE:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_LANGUAGE</code></span></p></td>
245
<td>language (<a class="link" href="pango-Text-Attributes.html#PangoAttrLanguage" title="struct PangoAttrLanguage"><span class="type">PangoAttrLanguage</span></a>)
249
<td><p><a name="PANGO-ATTR-FAMILY:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_FAMILY</code></span></p></td>
250
<td>font family name list (<a class="link" href="pango-Text-Attributes.html#PangoAttrString" title="struct PangoAttrString"><span class="type">PangoAttrString</span></a>)
254
<td><p><a name="PANGO-ATTR-STYLE:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_STYLE</code></span></p></td>
255
<td>font slant style (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)
259
<td><p><a name="PANGO-ATTR-WEIGHT:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_WEIGHT</code></span></p></td>
260
<td>font weight (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)
264
<td><p><a name="PANGO-ATTR-VARIANT:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_VARIANT</code></span></p></td>
265
<td>font variant (normal or small caps) (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)
269
<td><p><a name="PANGO-ATTR-STRETCH:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_STRETCH</code></span></p></td>
270
<td>font stretch (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)
274
<td><p><a name="PANGO-ATTR-SIZE:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_SIZE</code></span></p></td>
275
<td>font size in points scaled by <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a> (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)
279
<td><p><a name="PANGO-ATTR-FONT-DESC:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_FONT_DESC</code></span></p></td>
280
<td>font description (<a class="link" href="pango-Text-Attributes.html#PangoAttrFontDesc" title="struct PangoAttrFontDesc"><span class="type">PangoAttrFontDesc</span></a>)
284
<td><p><a name="PANGO-ATTR-FOREGROUND:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_FOREGROUND</code></span></p></td>
285
<td>foreground color (<a class="link" href="pango-Text-Attributes.html#PangoAttrColor" title="struct PangoAttrColor"><span class="type">PangoAttrColor</span></a>)
289
<td><p><a name="PANGO-ATTR-BACKGROUND:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_BACKGROUND</code></span></p></td>
290
<td>background color (<a class="link" href="pango-Text-Attributes.html#PangoAttrColor" title="struct PangoAttrColor"><span class="type">PangoAttrColor</span></a>)
294
<td><p><a name="PANGO-ATTR-UNDERLINE:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_UNDERLINE</code></span></p></td>
295
<td>whether the text has an underline (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)
299
<td><p><a name="PANGO-ATTR-STRIKETHROUGH:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_STRIKETHROUGH</code></span></p></td>
300
<td>whether the text is struck-through (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)
304
<td><p><a name="PANGO-ATTR-RISE:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_RISE</code></span></p></td>
305
<td>baseline displacement (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)
309
<td><p><a name="PANGO-ATTR-SHAPE:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_SHAPE</code></span></p></td>
310
<td>shape (<a class="link" href="pango-Text-Attributes.html#PangoAttrShape" title="struct PangoAttrShape"><span class="type">PangoAttrShape</span></a>)
314
<td><p><a name="PANGO-ATTR-SCALE:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_SCALE</code></span></p></td>
315
<td>font size scale factor (<a class="link" href="pango-Text-Attributes.html#PangoAttrFloat" title="struct PangoAttrFloat"><span class="type">PangoAttrFloat</span></a>)
319
<td><p><a name="PANGO-ATTR-FALLBACK:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_FALLBACK</code></span></p></td>
320
<td>whether fallback is enabled (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)
324
<td><p><a name="PANGO-ATTR-LETTER-SPACING:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_LETTER_SPACING</code></span></p></td>
325
<td>letter spacing (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)
329
<td><p><a name="PANGO-ATTR-UNDERLINE-COLOR:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_UNDERLINE_COLOR</code></span></p></td>
330
<td>underline color (<a class="link" href="pango-Text-Attributes.html#PangoAttrColor" title="struct PangoAttrColor"><span class="type">PangoAttrColor</span></a>)
334
<td><p><a name="PANGO-ATTR-STRIKETHROUGH-COLOR:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_STRIKETHROUGH_COLOR</code></span></p></td>
335
<td>strikethrough color (<a class="link" href="pango-Text-Attributes.html#PangoAttrColor" title="struct PangoAttrColor"><span class="type">PangoAttrColor</span></a>)
339
<td><p><a name="PANGO-ATTR-ABSOLUTE-SIZE:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_ABSOLUTE_SIZE</code></span></p></td>
340
<td>font size in pixels scaled by <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a> (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)
344
<td><p><a name="PANGO-ATTR-GRAVITY:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_GRAVITY</code></span></p></td>
345
<td>base text gravity (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)
349
<td><p><a name="PANGO-ATTR-GRAVITY-HINT:CAPS"></a><span class="term"><code class="literal">PANGO_ATTR_GRAVITY_HINT</code></span></p></td>
350
<td>gravity hint (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)
2636
<td class="enum_member_name"><p><a name="PANGO-ATTR-INVALID:CAPS"></a>PANGO_ATTR_INVALID</p></td>
2637
<td class="enum_member_description">
2638
<p>does not happen</p>
2640
<td class="enum_member_annotations"> </td>
2643
<td class="enum_member_name"><p><a name="PANGO-ATTR-LANGUAGE:CAPS"></a>PANGO_ATTR_LANGUAGE</p></td>
2644
<td class="enum_member_description">
2645
<p>language (<a class="link" href="pango-Text-Attributes.html#PangoAttrLanguage" title="struct PangoAttrLanguage"><span class="type">PangoAttrLanguage</span></a>)</p>
2647
<td class="enum_member_annotations"> </td>
2650
<td class="enum_member_name"><p><a name="PANGO-ATTR-FAMILY:CAPS"></a>PANGO_ATTR_FAMILY</p></td>
2651
<td class="enum_member_description">
2652
<p>font family name list (<a class="link" href="pango-Text-Attributes.html#PangoAttrString" title="struct PangoAttrString"><span class="type">PangoAttrString</span></a>)</p>
2654
<td class="enum_member_annotations"> </td>
2657
<td class="enum_member_name"><p><a name="PANGO-ATTR-STYLE:CAPS"></a>PANGO_ATTR_STYLE</p></td>
2658
<td class="enum_member_description">
2659
<p>font slant style (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)</p>
2661
<td class="enum_member_annotations"> </td>
2664
<td class="enum_member_name"><p><a name="PANGO-ATTR-WEIGHT:CAPS"></a>PANGO_ATTR_WEIGHT</p></td>
2665
<td class="enum_member_description">
2666
<p>font weight (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)</p>
2668
<td class="enum_member_annotations"> </td>
2671
<td class="enum_member_name"><p><a name="PANGO-ATTR-VARIANT:CAPS"></a>PANGO_ATTR_VARIANT</p></td>
2672
<td class="enum_member_description">
2673
<p>font variant (normal or small caps) (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)</p>
2675
<td class="enum_member_annotations"> </td>
2678
<td class="enum_member_name"><p><a name="PANGO-ATTR-STRETCH:CAPS"></a>PANGO_ATTR_STRETCH</p></td>
2679
<td class="enum_member_description">
2680
<p>font stretch (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)</p>
2682
<td class="enum_member_annotations"> </td>
2685
<td class="enum_member_name"><p><a name="PANGO-ATTR-SIZE:CAPS"></a>PANGO_ATTR_SIZE</p></td>
2686
<td class="enum_member_description">
2687
<p>font size in points scaled by <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a> (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)</p>
2689
<td class="enum_member_annotations"> </td>
2692
<td class="enum_member_name"><p><a name="PANGO-ATTR-FONT-DESC:CAPS"></a>PANGO_ATTR_FONT_DESC</p></td>
2693
<td class="enum_member_description">
2694
<p>font description (<a class="link" href="pango-Text-Attributes.html#PangoAttrFontDesc" title="struct PangoAttrFontDesc"><span class="type">PangoAttrFontDesc</span></a>)</p>
2696
<td class="enum_member_annotations"> </td>
2699
<td class="enum_member_name"><p><a name="PANGO-ATTR-FOREGROUND:CAPS"></a>PANGO_ATTR_FOREGROUND</p></td>
2700
<td class="enum_member_description">
2701
<p>foreground color (<a class="link" href="pango-Text-Attributes.html#PangoAttrColor" title="struct PangoAttrColor"><span class="type">PangoAttrColor</span></a>)</p>
2703
<td class="enum_member_annotations"> </td>
2706
<td class="enum_member_name"><p><a name="PANGO-ATTR-BACKGROUND:CAPS"></a>PANGO_ATTR_BACKGROUND</p></td>
2707
<td class="enum_member_description">
2708
<p>background color (<a class="link" href="pango-Text-Attributes.html#PangoAttrColor" title="struct PangoAttrColor"><span class="type">PangoAttrColor</span></a>)</p>
2710
<td class="enum_member_annotations"> </td>
2713
<td class="enum_member_name"><p><a name="PANGO-ATTR-UNDERLINE:CAPS"></a>PANGO_ATTR_UNDERLINE</p></td>
2714
<td class="enum_member_description">
2715
<p>whether the text has an underline (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)</p>
2717
<td class="enum_member_annotations"> </td>
2720
<td class="enum_member_name"><p><a name="PANGO-ATTR-STRIKETHROUGH:CAPS"></a>PANGO_ATTR_STRIKETHROUGH</p></td>
2721
<td class="enum_member_description">
2722
<p>whether the text is struck-through (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)</p>
2724
<td class="enum_member_annotations"> </td>
2727
<td class="enum_member_name"><p><a name="PANGO-ATTR-RISE:CAPS"></a>PANGO_ATTR_RISE</p></td>
2728
<td class="enum_member_description">
2729
<p>baseline displacement (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)</p>
2731
<td class="enum_member_annotations"> </td>
2734
<td class="enum_member_name"><p><a name="PANGO-ATTR-SHAPE:CAPS"></a>PANGO_ATTR_SHAPE</p></td>
2735
<td class="enum_member_description">
2736
<p>shape (<a class="link" href="pango-Text-Attributes.html#PangoAttrShape" title="struct PangoAttrShape"><span class="type">PangoAttrShape</span></a>)</p>
2738
<td class="enum_member_annotations"> </td>
2741
<td class="enum_member_name"><p><a name="PANGO-ATTR-SCALE:CAPS"></a>PANGO_ATTR_SCALE</p></td>
2742
<td class="enum_member_description">
2743
<p>font size scale factor (<a class="link" href="pango-Text-Attributes.html#PangoAttrFloat" title="struct PangoAttrFloat"><span class="type">PangoAttrFloat</span></a>)</p>
2745
<td class="enum_member_annotations"> </td>
2748
<td class="enum_member_name"><p><a name="PANGO-ATTR-FALLBACK:CAPS"></a>PANGO_ATTR_FALLBACK</p></td>
2749
<td class="enum_member_description">
2750
<p>whether fallback is enabled (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)</p>
2752
<td class="enum_member_annotations"> </td>
2755
<td class="enum_member_name"><p><a name="PANGO-ATTR-LETTER-SPACING:CAPS"></a>PANGO_ATTR_LETTER_SPACING</p></td>
2756
<td class="enum_member_description">
2757
<p>letter spacing (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)</p>
2759
<td class="enum_member_annotations"> </td>
2762
<td class="enum_member_name"><p><a name="PANGO-ATTR-UNDERLINE-COLOR:CAPS"></a>PANGO_ATTR_UNDERLINE_COLOR</p></td>
2763
<td class="enum_member_description">
2764
<p>underline color (<a class="link" href="pango-Text-Attributes.html#PangoAttrColor" title="struct PangoAttrColor"><span class="type">PangoAttrColor</span></a>)</p>
2766
<td class="enum_member_annotations"> </td>
2769
<td class="enum_member_name"><p><a name="PANGO-ATTR-STRIKETHROUGH-COLOR:CAPS"></a>PANGO_ATTR_STRIKETHROUGH_COLOR</p></td>
2770
<td class="enum_member_description">
2771
<p>strikethrough color (<a class="link" href="pango-Text-Attributes.html#PangoAttrColor" title="struct PangoAttrColor"><span class="type">PangoAttrColor</span></a>)</p>
2773
<td class="enum_member_annotations"> </td>
2776
<td class="enum_member_name"><p><a name="PANGO-ATTR-ABSOLUTE-SIZE:CAPS"></a>PANGO_ATTR_ABSOLUTE_SIZE</p></td>
2777
<td class="enum_member_description">
2778
<p>font size in pixels scaled by <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a> (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)</p>
2780
<td class="enum_member_annotations"> </td>
2783
<td class="enum_member_name"><p><a name="PANGO-ATTR-GRAVITY:CAPS"></a>PANGO_ATTR_GRAVITY</p></td>
2784
<td class="enum_member_description">
2785
<p>base text gravity (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)</p>
2787
<td class="enum_member_annotations"> </td>
2790
<td class="enum_member_name"><p><a name="PANGO-ATTR-GRAVITY-HINT:CAPS"></a>PANGO_ATTR_GRAVITY_HINT</p></td>
2791
<td class="enum_member_description">
2792
<p>gravity hint (<a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a>)</p>
2794
<td class="enum_member_annotations"> </td>
357
<div class="refsect2">
358
<a name="PANGO-TYPE-ATTR-TYPE:CAPS"></a><h3>PANGO_TYPE_ATTR_TYPE</h3>
359
<pre class="programlisting">#define PANGO_TYPE_ATTR_TYPE (pango_attr_type_get_type ())
363
2801
<div class="refsect2">
683
3171
guint absolute : 1;
687
The <a class="link" href="pango-Text-Attributes.html#PangoAttrSize" title="struct PangoAttrSize"><span class="type">PangoAttrSize</span></a> structure is used to represent attributes which
3174
<p>The <a class="link" href="pango-Text-Attributes.html#PangoAttrSize" title="struct PangoAttrSize"><span class="type">PangoAttrSize</span></a> structure is used to represent attributes which
688
3175
set font size.</p>
689
<div class="variablelist"><table border="0" class="variablelist">
3176
<div class="refsect3">
3177
<a name="id-1.2.5.10.14.5"></a><h4>Members</h4>
3178
<div class="informaltable"><table width="100%" border="0">
691
<col align="left" valign="top">
3180
<col width="300px" class="struct_members_name">
3181
<col class="struct_members_description">
3182
<col width="200px" class="struct_members_annotations">
696
<td><p><span class="term"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> <em class="structfield"><code><a name="PangoAttrSize.attr"></a>attr</code></em>;</span></p></td>
697
<td>the common portion of the attribute</td>
700
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="PangoAttrSize.size"></a>size</code></em>;</span></p></td>
701
<td>size of font, in units of 1/<a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a> of a point (for
702
<a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SIZE:CAPS"><code class="literal">PANGO_ATTR_SIZE</code></a>) or of a device uni (for <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-ABSOLUTE-SIZE:CAPS"><code class="literal">PANGO_ATTR_ABSOLUTE_SIZE</code></a>)</td>
705
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="PangoAttrSize.absolute"></a>absolute</code></em> : 1;</span></p></td>
706
<td>whether the font size is in device units or points.
3186
<td class="struct_member_name"><p><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> <em class="structfield"><code><a name="PangoAttrSize.attr"></a>attr</code></em>;</p></td>
3187
<td class="struct_member_description"><p>the common portion of the attribute</p></td>
3188
<td class="struct_member_annotations"> </td>
3191
<td class="struct_member_name"><p><span class="type">int</span> <em class="structfield"><code><a name="PangoAttrSize.size"></a>size</code></em>;</p></td>
3192
<td class="struct_member_description"><p>size of font, in units of 1/<a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a> of a point (for
3193
<a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SIZE:CAPS"><code class="literal">PANGO_ATTR_SIZE</code></a>) or of a device uni (for <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-ABSOLUTE-SIZE:CAPS"><code class="literal">PANGO_ATTR_ABSOLUTE_SIZE</code></a>)</p></td>
3194
<td class="struct_member_annotations"> </td>
3197
<td class="struct_member_name"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="PangoAttrSize.absolute"></a>absolute</code></em> : 1;</p></td>
3198
<td class="struct_member_description"><p>whether the font size is in device units or points.
707
3199
This field is only present for compatibility with Pango-1.8.0
708
3200
(<a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-ABSOLUTE-SIZE:CAPS"><code class="literal">PANGO_ATTR_ABSOLUTE_SIZE</code></a> was added in 1.8.1); and always will
709
be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> for <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SIZE:CAPS"><code class="literal">PANGO_ATTR_SIZE</code></a> and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-ABSOLUTE-SIZE:CAPS"><code class="literal">PANGO_ATTR_ABSOLUTE_SIZE</code></a>.</td>
715
<div class="refsect2">
716
<a name="pango-parse-markup"></a><h3>pango_parse_markup ()</h3>
717
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> pango_parse_markup (<em class="parameter"><code>const <span class="type">char</span> *markup_text</code></em>,
718
<em class="parameter"><code><span class="type">int</span> length</code></em>,
719
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Unicode-Manipulation.html#gunichar"><span class="type">gunichar</span></a> accel_marker</code></em>,
720
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> **attr_list</code></em>,
721
<em class="parameter"><code><span class="type">char</span> **text</code></em>,
722
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Unicode-Manipulation.html#gunichar"><span class="type">gunichar</span></a> *accel_char</code></em>,
723
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
725
Parses marked-up text (see
726
<a href="PangoMarkupFormat.html">markup format</a>) to create
727
a plain-text string and an attribute list.</p>
729
If <em class="parameter"><code>accel_marker</code></em> is nonzero, the given character will mark the
730
character following it as an accelerator. For example, <em class="parameter"><code>accel_marker</code></em>
731
might be an ampersand or underscore. All characters marked
732
as an accelerator will receive a <a class="link" href="pango-Text-Attributes.html#PANGO-UNDERLINE-LOW:CAPS"><code class="literal">PANGO_UNDERLINE_LOW</code></a> attribute,
733
and the first character so marked will be returned in <em class="parameter"><code>accel_char</code></em>.
734
Two <em class="parameter"><code>accel_marker</code></em> characters following each other produce a single
735
literal <em class="parameter"><code>accel_marker</code></em> character.</p>
737
To parse a stream of pango markup incrementally, use <a class="link" href="pango-Text-Attributes.html#pango-markup-parser-new" title="pango_markup_parser_new ()"><code class="function">pango_markup_parser_new()</code></a>.</p>
739
If any error happens, none of the output arguments are touched except
740
for <em class="parameter"><code>error</code></em>.</p>
741
<div class="variablelist"><table border="0" class="variablelist">
743
<col align="left" valign="top">
748
<td><p><span class="term"><em class="parameter"><code>markup_text</code></em> :</span></p></td>
749
<td>markup to parse (see <a href="PangoMarkupFormat.html">markup format</a>)</td>
752
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
753
<td>length of <em class="parameter"><code>markup_text</code></em>, or -1 if nul-terminated</td>
756
<td><p><span class="term"><em class="parameter"><code>accel_marker</code></em> :</span></p></td>
757
<td>character that precedes an accelerator, or 0 for none</td>
760
<td><p><span class="term"><em class="parameter"><code>attr_list</code></em> :</span></p></td>
761
<td>address of return location for a <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
765
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
766
<td>address of return location for text with tags stripped, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
770
<td><p><span class="term"><em class="parameter"><code>accel_char</code></em> :</span></p></td>
771
<td>address of return location for accelerator char, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
775
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
776
<td>address of return location for errors, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
780
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
782
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if <em class="parameter"><code>error</code></em> is set, otherwise <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>
789
<div class="refsect2">
790
<a name="pango-markup-parser-new"></a><h3>pango_markup_parser_new ()</h3>
791
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#GMarkupParseContext"><span class="returnvalue">GMarkupParseContext</span></a> * pango_markup_parser_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Unicode-Manipulation.html#gunichar"><span class="type">gunichar</span></a> accel_marker</code></em>);</pre>
793
Parses marked-up text (see
794
<a href="PangoMarkupFormat.html">markup format</a>) to create
795
a plain-text string and an attribute list.</p>
797
If <em class="parameter"><code>accel_marker</code></em> is nonzero, the given character will mark the
798
character following it as an accelerator. For example, <em class="parameter"><code>accel_marker</code></em>
799
might be an ampersand or underscore. All characters marked
800
as an accelerator will receive a <a class="link" href="pango-Text-Attributes.html#PANGO-UNDERLINE-LOW:CAPS"><code class="literal">PANGO_UNDERLINE_LOW</code></a> attribute,
801
and the first character so marked will be returned in <em class="parameter"><code>accel_char</code></em>,
802
when calling <code class="function">finish()</code>. Two <em class="parameter"><code>accel_marker</code></em> characters following each
803
other produce a single literal <em class="parameter"><code>accel_marker</code></em> character.</p>
805
To feed markup to the parser, use <a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-parse"><code class="function">g_markup_parse_context_parse()</code></a>
806
on the returned <a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#GMarkupParseContext"><span class="type">GMarkupParseContext</span></a>. When done with feeding markup
807
to the parser, use <a class="link" href="pango-Text-Attributes.html#pango-markup-parser-finish" title="pango_markup_parser_finish ()"><code class="function">pango_markup_parser_finish()</code></a> to get the data out
808
of it, and then use <a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-free"><code class="function">g_markup_parse_context_free()</code></a> to free it.</p>
810
This function is designed for applications that read pango markup
811
from streams. To simply parse a string containing pango markup,
812
the simpler <a class="link" href="pango-Text-Attributes.html#pango-parse-markup" title="pango_parse_markup ()"><code class="function">pango_parse_markup()</code></a> API is recommended instead.</p>
813
<div class="variablelist"><table border="0" class="variablelist">
815
<col align="left" valign="top">
820
<td><p><span class="term"><em class="parameter"><code>accel_marker</code></em> :</span></p></td>
821
<td>character that precedes an accelerator, or 0 for none</td>
824
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
825
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> that should be
826
destroyed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-free"><code class="function">g_markup_parse_context_free()</code></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
831
<p class="since">Since 1.31.0</p>
834
<div class="refsect2">
835
<a name="pango-markup-parser-finish"></a><h3>pango_markup_parser_finish ()</h3>
836
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> pango_markup_parser_finish (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>,
837
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> **attr_list</code></em>,
838
<em class="parameter"><code><span class="type">char</span> **text</code></em>,
839
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Unicode-Manipulation.html#gunichar"><span class="type">gunichar</span></a> *accel_char</code></em>,
840
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
842
After feeding a pango markup parser some data with <a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-parse"><code class="function">g_markup_parse_context_parse()</code></a>,
843
use this function to get the list of pango attributes and text out of the
844
markup. This function will not free <em class="parameter"><code>context</code></em>, use <a href="http://library.gnome.org/devel/glib/unstable/glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-free"><code class="function">g_markup_parse_context_free()</code></a>
846
<div class="variablelist"><table border="0" class="variablelist">
848
<col align="left" valign="top">
853
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
854
<td>A valid parse context that was returned from <a class="link" href="pango-Text-Attributes.html#pango-markup-parser-new" title="pango_markup_parser_new ()"><code class="function">pango_markup_parser_new()</code></a>
858
<td><p><span class="term"><em class="parameter"><code>attr_list</code></em> :</span></p></td>
859
<td>address of return location for a <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
863
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
864
<td>address of return location for text with tags stripped, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
868
<td><p><span class="term"><em class="parameter"><code>accel_char</code></em> :</span></p></td>
869
<td>address of return location for accelerator char, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
873
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
874
<td>address of return location for errors, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
878
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
880
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if <em class="parameter"><code>error</code></em> is set, otherwise <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>
885
<p class="since">Since 1.31.0</p>
888
<div class="refsect2">
889
<a name="pango-attr-type-register"></a><h3>pango_attr_type_register ()</h3>
890
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttrType"><span class="returnvalue">PangoAttrType</span></a> pango_attr_type_register (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
892
Allocate a new attribute type ID. The attribute type name can be accessed
893
later by using <a class="link" href="pango-Text-Attributes.html#pango-attr-type-get-name" title="pango_attr_type_get_name ()"><code class="function">pango_attr_type_get_name()</code></a>.</p>
894
<div class="variablelist"><table border="0" class="variablelist">
896
<col align="left" valign="top">
901
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
902
<td>an identifier for the type</td>
905
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
906
<td>the new type ID.</td>
912
<div class="refsect2">
913
<a name="pango-attr-type-get-name"></a><h3>pango_attr_type_get_name ()</h3>
914
<pre class="programlisting">const <span class="returnvalue">char</span> * pango_attr_type_get_name (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrType"><span class="type">PangoAttrType</span></a> type</code></em>);</pre>
916
Fetches the attribute type name passed in when registering the type using
917
<a class="link" href="pango-Text-Attributes.html#pango-attr-type-register" title="pango_attr_type_register ()"><code class="function">pango_attr_type_register()</code></a>.</p>
919
The returned value is an interned string (see <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#g-intern-string"><code class="function">g_intern_string()</code></a> for what
920
that means) that should not be modified or freed.</p>
921
<div class="variablelist"><table border="0" class="variablelist">
923
<col align="left" valign="top">
928
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
929
<td>an attribute type ID to fetch the name for</td>
932
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
933
<td>the type ID name (which may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>), or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>type</code></em> is
934
a built-in Pango attribute type or invalid.</td>
938
<p class="since">Since 1.22</p>
941
<div class="refsect2">
942
<a name="pango-attribute-init"></a><h3>pango_attribute_init ()</h3>
943
<pre class="programlisting"><span class="returnvalue">void</span> pango_attribute_init (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr</code></em>,
944
<em class="parameter"><code>const <a class="link" href="pango-Text-Attributes.html#PangoAttrClass" title="struct PangoAttrClass"><span class="type">PangoAttrClass</span></a> *klass</code></em>);</pre>
946
Initializes <em class="parameter"><code>attr</code></em>'s klass to <em class="parameter"><code>klass</code></em>,
947
it's start_index to <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-INDEX-FROM-TEXT-BEGINNING:CAPS" title="PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING"><code class="literal">PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING</code></a>
948
and end_index to <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-INDEX-TO-TEXT-END:CAPS" title="PANGO_ATTR_INDEX_TO_TEXT_END"><code class="literal">PANGO_ATTR_INDEX_TO_TEXT_END</code></a>
949
such that the attribute applies
950
to the entire text by default.</p>
951
<div class="variablelist"><table border="0" class="variablelist">
953
<col align="left" valign="top">
958
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
959
<td>a <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>
963
<td><p><span class="term"><em class="parameter"><code>klass</code></em> :</span></p></td>
964
<td>a <a class="link" href="pango-Text-Attributes.html#PangoAttrClass" title="struct PangoAttrClass"><span class="type">PangoAttrClass</span></a>
969
<p class="since">Since 1.20</p>
972
<div class="refsect2">
973
<a name="pango-attribute-copy"></a><h3>pango_attribute_copy ()</h3>
974
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attribute_copy (<em class="parameter"><code>const <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr</code></em>);</pre>
976
Make a copy of an attribute.</p>
977
<div class="variablelist"><table border="0" class="variablelist">
979
<col align="left" valign="top">
984
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
985
<td>a <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>
989
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
990
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
991
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
998
<div class="refsect2">
999
<a name="pango-attribute-equal"></a><h3>pango_attribute_equal ()</h3>
1000
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> pango_attribute_equal (<em class="parameter"><code>const <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr1</code></em>,
1001
<em class="parameter"><code>const <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr2</code></em>);</pre>
1003
Compare two attributes for equality. This compares only the
1004
actual value of the two attributes and not the ranges that the
1005
attributes apply to.</p>
1006
<div class="variablelist"><table border="0" class="variablelist">
1008
<col align="left" valign="top">
1013
<td><p><span class="term"><em class="parameter"><code>attr1</code></em> :</span></p></td>
1014
<td>a <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>
1018
<td><p><span class="term"><em class="parameter"><code>attr2</code></em> :</span></p></td>
1019
<td>another <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>
1023
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1025
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the two attributes have the same value.</td>
1031
<div class="refsect2">
1032
<a name="pango-attribute-destroy"></a><h3>pango_attribute_destroy ()</h3>
1033
<pre class="programlisting"><span class="returnvalue">void</span> pango_attribute_destroy (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr</code></em>);</pre>
1035
Destroy a <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> and free all associated memory.</p>
1036
<div class="variablelist"><table border="0" class="variablelist">
1038
<col align="left" valign="top">
1042
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
1043
<td>a <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>.</td>
1048
<div class="refsect2">
1049
<a name="pango-attr-language-new"></a><h3>pango_attr_language_new ()</h3>
1050
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_language_new (<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);</pre>
1052
Create a new language tag attribute.</p>
1053
<div class="variablelist"><table border="0" class="variablelist">
1055
<col align="left" valign="top">
1060
<td><p><span class="term"><em class="parameter"><code>language</code></em> :</span></p></td>
1061
<td>language tag</td>
1064
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1065
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1066
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1073
<div class="refsect2">
1074
<a name="pango-attr-family-new"></a><h3>pango_attr_family_new ()</h3>
1075
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_family_new (<em class="parameter"><code>const <span class="type">char</span> *family</code></em>);</pre>
1077
Create a new font family attribute.</p>
1078
<div class="variablelist"><table border="0" class="variablelist">
1080
<col align="left" valign="top">
1085
<td><p><span class="term"><em class="parameter"><code>family</code></em> :</span></p></td>
1086
<td>the family or comma separated list of families</td>
1089
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1090
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1091
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1098
<div class="refsect2">
1099
<a name="pango-attr-style-new"></a><h3>pango_attr_style_new ()</h3>
1100
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_style_new (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoStyle"><span class="type">PangoStyle</span></a> style</code></em>);</pre>
1102
Create a new font slant style attribute.</p>
1103
<div class="variablelist"><table border="0" class="variablelist">
1105
<col align="left" valign="top">
1110
<td><p><span class="term"><em class="parameter"><code>style</code></em> :</span></p></td>
1111
<td>the slant style</td>
1114
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1115
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1116
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1123
<div class="refsect2">
1124
<a name="pango-attr-variant-new"></a><h3>pango_attr_variant_new ()</h3>
1125
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_variant_new (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoVariant"><span class="type">PangoVariant</span></a> variant</code></em>);</pre>
1127
Create a new font variant attribute (normal or small caps)</p>
1128
<div class="variablelist"><table border="0" class="variablelist">
1130
<col align="left" valign="top">
1135
<td><p><span class="term"><em class="parameter"><code>variant</code></em> :</span></p></td>
1136
<td>the variant</td>
1139
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1140
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1141
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1148
<div class="refsect2">
1149
<a name="pango-attr-stretch-new"></a><h3>pango_attr_stretch_new ()</h3>
1150
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_stretch_new (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoStretch"><span class="type">PangoStretch</span></a> stretch</code></em>);</pre>
1152
Create a new font stretch attribute</p>
1153
<div class="variablelist"><table border="0" class="variablelist">
1155
<col align="left" valign="top">
1160
<td><p><span class="term"><em class="parameter"><code>stretch</code></em> :</span></p></td>
1161
<td>the stretch</td>
1164
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1165
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1166
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1173
<div class="refsect2">
1174
<a name="pango-attr-weight-new"></a><h3>pango_attr_weight_new ()</h3>
1175
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_weight_new (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoWeight"><span class="type">PangoWeight</span></a> weight</code></em>);</pre>
1177
Create a new font weight attribute.</p>
1178
<div class="variablelist"><table border="0" class="variablelist">
1180
<col align="left" valign="top">
1185
<td><p><span class="term"><em class="parameter"><code>weight</code></em> :</span></p></td>
1189
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1190
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1191
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1198
<div class="refsect2">
1199
<a name="pango-attr-size-new"></a><h3>pango_attr_size_new ()</h3>
1200
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_size_new (<em class="parameter"><code><span class="type">int</span> size</code></em>);</pre>
1202
Create a new font-size attribute in fractional points.</p>
1203
<div class="variablelist"><table border="0" class="variablelist">
1205
<col align="left" valign="top">
1210
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1211
<td>the font size, in <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a>ths of a point.</td>
1214
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1215
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1216
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1223
<div class="refsect2">
1224
<a name="pango-attr-size-new-absolute"></a><h3>pango_attr_size_new_absolute ()</h3>
1225
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_size_new_absolute (<em class="parameter"><code><span class="type">int</span> size</code></em>);</pre>
1227
Create a new font-size attribute in device units.</p>
1228
<div class="variablelist"><table border="0" class="variablelist">
1230
<col align="left" valign="top">
1235
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1236
<td>the font size, in <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a>ths of a device unit.</td>
1239
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1240
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be
1241
freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>.</td>
1245
<p class="since">Since 1.8</p>
1248
<div class="refsect2">
1249
<a name="pango-attr-font-desc-new"></a><h3>pango_attr_font_desc_new ()</h3>
1250
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_font_desc_new (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
1252
Create a new font description attribute. This attribute
1253
allows setting family, style, weight, variant, stretch,
1254
and size simultaneously.</p>
1255
<div class="variablelist"><table border="0" class="variablelist">
1257
<col align="left" valign="top">
1262
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
1263
<td>the font description</td>
1266
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1267
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1268
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1275
<div class="refsect2">
1276
<a name="pango-attr-foreground-new"></a><h3>pango_attr_foreground_new ()</h3>
1277
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_foreground_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> red</code></em>,
1278
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> green</code></em>,
1279
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> blue</code></em>);</pre>
1281
Create a new foreground color attribute.</p>
1282
<div class="variablelist"><table border="0" class="variablelist">
1284
<col align="left" valign="top">
1289
<td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
1290
<td>the red value (ranging from 0 to 65535)</td>
1293
<td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
1294
<td>the green value</td>
1297
<td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
1298
<td>the blue value</td>
1301
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1302
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1303
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1310
<div class="refsect2">
1311
<a name="pango-attr-background-new"></a><h3>pango_attr_background_new ()</h3>
1312
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_background_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> red</code></em>,
1313
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> green</code></em>,
1314
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> blue</code></em>);</pre>
1316
Create a new background color attribute.</p>
1317
<div class="variablelist"><table border="0" class="variablelist">
1319
<col align="left" valign="top">
1324
<td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
1325
<td>the red value (ranging from 0 to 65535)</td>
1328
<td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
1329
<td>the green value</td>
1332
<td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
1333
<td>the blue value</td>
1336
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1337
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1338
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1345
<div class="refsect2">
1346
<a name="pango-attr-strikethrough-new"></a><h3>pango_attr_strikethrough_new ()</h3>
1347
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_strikethrough_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> strikethrough</code></em>);</pre>
1349
Create a new strike-through attribute.</p>
1350
<div class="variablelist"><table border="0" class="variablelist">
1352
<col align="left" valign="top">
1357
<td><p><span class="term"><em class="parameter"><code>strikethrough</code></em> :</span></p></td>
1359
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the text should be struck-through.</td>
1362
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1363
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1364
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1371
<div class="refsect2">
1372
<a name="pango-attr-strikethrough-color-new"></a><h3>pango_attr_strikethrough_color_new ()</h3>
1373
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_strikethrough_color_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> red</code></em>,
1374
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> green</code></em>,
1375
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> blue</code></em>);</pre>
1377
Create a new strikethrough color attribute. This attribute
1378
modifies the color of strikethrough lines. If not set, strikethrough
1379
lines will use the foreground color.</p>
1380
<div class="variablelist"><table border="0" class="variablelist">
1382
<col align="left" valign="top">
1387
<td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
1388
<td>the red value (ranging from 0 to 65535)</td>
1391
<td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
1392
<td>the green value</td>
1395
<td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
1396
<td>the blue value</td>
1399
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1400
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1401
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1406
<p class="since">Since 1.8</p>
1409
<div class="refsect2">
1410
<a name="pango-attr-underline-new"></a><h3>pango_attr_underline_new ()</h3>
1411
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_underline_new (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoUnderline"><span class="type">PangoUnderline</span></a> underline</code></em>);</pre>
1413
Create a new underline-style attribute.</p>
1414
<div class="variablelist"><table border="0" class="variablelist">
1416
<col align="left" valign="top">
1421
<td><p><span class="term"><em class="parameter"><code>underline</code></em> :</span></p></td>
1422
<td>the underline style.</td>
1425
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1426
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1427
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1434
<div class="refsect2">
1435
<a name="pango-attr-underline-color-new"></a><h3>pango_attr_underline_color_new ()</h3>
1436
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_underline_color_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> red</code></em>,
1437
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> green</code></em>,
1438
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> blue</code></em>);</pre>
1440
Create a new underline color attribute. This attribute
1441
modifies the color of underlines. If not set, underlines
1442
will use the foreground color.</p>
1443
<div class="variablelist"><table border="0" class="variablelist">
1445
<col align="left" valign="top">
1450
<td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
1451
<td>the red value (ranging from 0 to 65535)</td>
1454
<td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
1455
<td>the green value</td>
1458
<td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
1459
<td>the blue value</td>
1462
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1463
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1464
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1469
<p class="since">Since 1.8</p>
1472
<div class="refsect2">
1473
<a name="PangoUnderline-enum"></a><h3>enum PangoUnderline</h3>
1474
<pre class="programlisting">typedef enum {
1475
PANGO_UNDERLINE_NONE,
1476
PANGO_UNDERLINE_SINGLE,
1477
PANGO_UNDERLINE_DOUBLE,
1478
PANGO_UNDERLINE_LOW,
1479
PANGO_UNDERLINE_ERROR
1483
The <a class="link" href="pango-Text-Attributes.html#PangoUnderline"><span class="type">PangoUnderline</span></a> enumeration is used to specify
3201
be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> for <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-SIZE:CAPS"><code class="literal">PANGO_ATTR_SIZE</code></a> and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-ABSOLUTE-SIZE:CAPS"><code class="literal">PANGO_ATTR_ABSOLUTE_SIZE</code></a>.</p></td>
3202
<td class="struct_member_annotations"> </td>
3209
<div class="refsect2">
3210
<a name="PangoUnderline"></a><h3>enum PangoUnderline</h3>
3211
<p>The <a class="link" href="pango-Text-Attributes.html#PangoUnderline" title="enum PangoUnderline"><span class="type">PangoUnderline</span></a> enumeration is used to specify
1484
3212
whether text should be underlined, and if so, the type
1485
3213
of underlining.</p>
1486
<div class="variablelist"><table border="0" class="variablelist">
3214
<div class="refsect3">
3215
<a name="id-1.2.5.10.15.4"></a><h4>Members</h4>
3216
<div class="informaltable"><table width="100%" border="0">
1488
<col align="left" valign="top">
3218
<col width="300px" class="enum_members_name">
3219
<col class="enum_members_description">
3220
<col width="200px" class="enum_members_annotations">
1493
<td><p><a name="PANGO-UNDERLINE-NONE:CAPS"></a><span class="term"><code class="literal">PANGO_UNDERLINE_NONE</code></span></p></td>
1494
<td>no underline should be drawn
1498
<td><p><a name="PANGO-UNDERLINE-SINGLE:CAPS"></a><span class="term"><code class="literal">PANGO_UNDERLINE_SINGLE</code></span></p></td>
1499
<td>a single underline should be drawn
1503
<td><p><a name="PANGO-UNDERLINE-DOUBLE:CAPS"></a><span class="term"><code class="literal">PANGO_UNDERLINE_DOUBLE</code></span></p></td>
1504
<td>a double underline should be drawn
1508
<td><p><a name="PANGO-UNDERLINE-LOW:CAPS"></a><span class="term"><code class="literal">PANGO_UNDERLINE_LOW</code></span></p></td>
1509
<td>a single underline should be drawn at a position
3224
<td class="enum_member_name"><p><a name="PANGO-UNDERLINE-NONE:CAPS"></a>PANGO_UNDERLINE_NONE</p></td>
3225
<td class="enum_member_description">
3226
<p>no underline should be drawn</p>
3228
<td class="enum_member_annotations"> </td>
3231
<td class="enum_member_name"><p><a name="PANGO-UNDERLINE-SINGLE:CAPS"></a>PANGO_UNDERLINE_SINGLE</p></td>
3232
<td class="enum_member_description">
3233
<p>a single underline should be drawn</p>
3235
<td class="enum_member_annotations"> </td>
3238
<td class="enum_member_name"><p><a name="PANGO-UNDERLINE-DOUBLE:CAPS"></a>PANGO_UNDERLINE_DOUBLE</p></td>
3239
<td class="enum_member_description">
3240
<p>a double underline should be drawn</p>
3242
<td class="enum_member_annotations"> </td>
3245
<td class="enum_member_name"><p><a name="PANGO-UNDERLINE-LOW:CAPS"></a>PANGO_UNDERLINE_LOW</p></td>
3246
<td class="enum_member_description">
3247
<p>a single underline should be drawn at a position
1510
3248
beneath the ink extents of the text being
1511
3249
underlined. This should be used only for underlining
1512
3250
single characters, such as for keyboard
1513
3251
accelerators. <a class="link" href="pango-Text-Attributes.html#PANGO-UNDERLINE-SINGLE:CAPS"><code class="literal">PANGO_UNDERLINE_SINGLE</code></a> should
1514
be used for extended portions of text.
3252
be used for extended portions of text.</p>
3254
<td class="enum_member_annotations"> </td>
1518
<td><p><a name="PANGO-UNDERLINE-ERROR:CAPS"></a><span class="term"><code class="literal">PANGO_UNDERLINE_ERROR</code></span></p></td>
1519
<td>a wavy underline should be drawn below.
3257
<td class="enum_member_name"><p><a name="PANGO-UNDERLINE-ERROR:CAPS"></a>PANGO_UNDERLINE_ERROR</p></td>
3258
<td class="enum_member_description">
3259
<p>a wavy underline should be drawn below.
1520
3260
This underline is typically used to indicate
1521
3261
an error such as a possilble mispelling; in some
1522
3262
cases a contrasting color may automatically
1523
be used. This type of underlining is available since Pango 1.4.
1530
<div class="refsect2">
1531
<a name="PANGO-TYPE-UNDERLINE:CAPS"></a><h3>PANGO_TYPE_UNDERLINE</h3>
1532
<pre class="programlisting">#define PANGO_TYPE_UNDERLINE (pango_underline_get_type ())
1536
<div class="refsect2">
1537
<a name="pango-attr-shape-new"></a><h3>pango_attr_shape_new ()</h3>
1538
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_shape_new (<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
1539
<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);</pre>
1541
Create a new shape attribute. A shape is used to impose a
1542
particular ink and logical rectangle on the result of shaping a
1543
particular glyph. This might be used, for instance, for
1544
embedding a picture or a widget inside a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>.</p>
1545
<div class="variablelist"><table border="0" class="variablelist">
1547
<col align="left" valign="top">
1552
<td><p><span class="term"><em class="parameter"><code>ink_rect</code></em> :</span></p></td>
1553
<td>ink rectangle to assign to each character</td>
1556
<td><p><span class="term"><em class="parameter"><code>logical_rect</code></em> :</span></p></td>
1557
<td>logical rectangle to assign to each character</td>
1560
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1561
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1562
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1569
<div class="refsect2">
1570
<a name="pango-attr-shape-new-with-data"></a><h3>pango_attr_shape_new_with_data ()</h3>
1571
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_shape_new_with_data (<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
1572
<em class="parameter"><code>const <a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>,
1573
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
1574
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrDataCopyFunc" title="PangoAttrDataCopyFunc ()"><span class="type">PangoAttrDataCopyFunc</span></a> copy_func</code></em>,
1575
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy_func</code></em>);</pre>
1577
Like <a class="link" href="pango-Text-Attributes.html#pango-attr-shape-new" title="pango_attr_shape_new ()"><code class="function">pango_attr_shape_new()</code></a>, but a user data pointer is also
1578
provided; this pointer can be accessed when later
1579
rendering the glyph.</p>
1580
<div class="variablelist"><table border="0" class="variablelist">
1582
<col align="left" valign="top">
1587
<td><p><span class="term"><em class="parameter"><code>ink_rect</code></em> :</span></p></td>
1588
<td>ink rectangle to assign to each character</td>
1591
<td><p><span class="term"><em class="parameter"><code>logical_rect</code></em> :</span></p></td>
1592
<td>logical rectangle to assign to each character</td>
1595
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1596
<td>user data pointer</td>
1599
<td><p><span class="term"><em class="parameter"><code>copy_func</code></em> :</span></p></td>
1600
<td>function to copy <em class="parameter"><code>data</code></em> when the
1601
attribute is copied. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, <em class="parameter"><code>data</code></em> is simply
1602
copied as a pointer. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1606
<td><p><span class="term"><em class="parameter"><code>destroy_func</code></em> :</span></p></td>
1607
<td>function to free <em class="parameter"><code>data</code></em> when the
1608
attribute is freed, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1612
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1613
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be
1614
freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>.</td>
1618
<p class="since">Since 1.8</p>
1621
<div class="refsect2">
1622
<a name="PangoAttrDataCopyFunc"></a><h3>PangoAttrDataCopyFunc ()</h3>
1623
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> (*PangoAttrDataCopyFunc) (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> user_data</code></em>);</pre>
1625
Type of a function that can duplicate user data for an attribute.</p>
1626
<div class="variablelist"><table border="0" class="variablelist">
1628
<col align="left" valign="top">
1633
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1634
<td>user data to copy</td>
1637
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1638
<td>new copy of <em class="parameter"><code>user_data</code></em>.</td>
1644
<div class="refsect2">
1645
<a name="pango-attr-scale-new"></a><h3>pango_attr_scale_new ()</h3>
1646
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_scale_new (<em class="parameter"><code><span class="type">double</span> scale_factor</code></em>);</pre>
1648
Create a new font size scale attribute. The base font for the
1649
affected text will have its size multiplied by <em class="parameter"><code>scale_factor</code></em>.</p>
1650
<div class="variablelist"><table border="0" class="variablelist">
1652
<col align="left" valign="top">
1657
<td><p><span class="term"><em class="parameter"><code>scale_factor</code></em> :</span></p></td>
1658
<td>factor to scale the font</td>
1661
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1662
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1663
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1670
<div class="refsect2">
1671
<a name="PANGO-SCALE-XX-SMALL:CAPS"></a><h3>PANGO_SCALE_XX_SMALL</h3>
1672
<pre class="programlisting">#define PANGO_SCALE_XX_SMALL ((double)0.5787037037037)
1675
The scale factor for three shrinking steps (1 / (1.2 * 1.2 * 1.2)).</p>
1678
<div class="refsect2">
1679
<a name="PANGO-SCALE-X-SMALL:CAPS"></a><h3>PANGO_SCALE_X_SMALL</h3>
1680
<pre class="programlisting">#define PANGO_SCALE_X_SMALL ((double)0.6444444444444)
1683
The scale factor for two shrinking steps (1 / (1.2 * 1.2)).</p>
1686
<div class="refsect2">
1687
<a name="PANGO-SCALE-SMALL:CAPS"></a><h3>PANGO_SCALE_SMALL</h3>
1688
<pre class="programlisting">#define PANGO_SCALE_SMALL ((double)0.8333333333333)
1691
The scale factor for one shrinking step (1 / 1.2).</p>
1694
<div class="refsect2">
1695
<a name="PANGO-SCALE-MEDIUM:CAPS"></a><h3>PANGO_SCALE_MEDIUM</h3>
1696
<pre class="programlisting">#define PANGO_SCALE_MEDIUM ((double)1.0)
1699
The scale factor for normal size (1.0).</p>
1702
<div class="refsect2">
1703
<a name="PANGO-SCALE-LARGE:CAPS"></a><h3>PANGO_SCALE_LARGE</h3>
1704
<pre class="programlisting">#define PANGO_SCALE_LARGE ((double)1.2)
1707
The scale factor for one magnification step (1.2).</p>
1710
<div class="refsect2">
1711
<a name="PANGO-SCALE-X-LARGE:CAPS"></a><h3>PANGO_SCALE_X_LARGE</h3>
1712
<pre class="programlisting">#define PANGO_SCALE_X_LARGE ((double)1.4399999999999)
1715
The scale factor for two magnification steps (1.2 * 1.2).</p>
1718
<div class="refsect2">
1719
<a name="PANGO-SCALE-XX-LARGE:CAPS"></a><h3>PANGO_SCALE_XX_LARGE</h3>
1720
<pre class="programlisting">#define PANGO_SCALE_XX_LARGE ((double)1.728)
1723
The scale factor for three magnification steps (1.2 * 1.2 * 1.2).</p>
1726
<div class="refsect2">
1727
<a name="pango-attr-rise-new"></a><h3>pango_attr_rise_new ()</h3>
1728
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_rise_new (<em class="parameter"><code><span class="type">int</span> rise</code></em>);</pre>
1730
Create a new baseline displacement attribute.</p>
1731
<div class="variablelist"><table border="0" class="variablelist">
1733
<col align="left" valign="top">
1738
<td><p><span class="term"><em class="parameter"><code>rise</code></em> :</span></p></td>
1739
<td>the amount that the text should be displaced vertically,
1740
in Pango units. Positive values displace the text upwards.</td>
1743
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1744
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1745
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1752
<div class="refsect2">
1753
<a name="pango-attr-letter-spacing-new"></a><h3>pango_attr_letter_spacing_new ()</h3>
1754
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_letter_spacing_new (<em class="parameter"><code><span class="type">int</span> letter_spacing</code></em>);</pre>
1756
Create a new letter-spacing attribute.</p>
1757
<div class="variablelist"><table border="0" class="variablelist">
1759
<col align="left" valign="top">
1764
<td><p><span class="term"><em class="parameter"><code>letter_spacing</code></em> :</span></p></td>
1765
<td>amount of extra space to add between graphemes
1766
of the text, in Pango units.</td>
1769
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1770
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1771
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1776
<p class="since">Since 1.6</p>
1779
<div class="refsect2">
1780
<a name="pango-attr-fallback-new"></a><h3>pango_attr_fallback_new ()</h3>
1781
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_fallback_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> enable_fallback</code></em>);</pre>
1783
Create a new font fallback attribute.</p>
1785
If fallback is disabled, characters will only be used from the
1786
closest matching font on the system. No fallback will be done to
1787
other fonts on the system that might contain the characters in the
1789
<div class="variablelist"><table border="0" class="variablelist">
1791
<col align="left" valign="top">
1796
<td><p><span class="term"><em class="parameter"><code>enable_fallback</code></em> :</span></p></td>
1798
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if we should fall back on other fonts
1799
for characters the active font is missing.</td>
1802
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1803
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1804
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1809
<p class="since">Since 1.4</p>
1812
<div class="refsect2">
1813
<a name="pango-attr-gravity-new"></a><h3>pango_attr_gravity_new ()</h3>
1814
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_gravity_new (<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="type">PangoGravity</span></a> gravity</code></em>);</pre>
1816
Create a new gravity attribute.</p>
1817
<div class="variablelist"><table border="0" class="variablelist">
1819
<col align="left" valign="top">
1824
<td><p><span class="term"><em class="parameter"><code>gravity</code></em> :</span></p></td>
1825
<td>the gravity value; should not be <a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-AUTO:CAPS"><code class="literal">PANGO_GRAVITY_AUTO</code></a>.</td>
1828
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1829
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1830
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1835
<p class="since">Since 1.16</p>
1838
<div class="refsect2">
1839
<a name="pango-attr-gravity-hint-new"></a><h3>pango_attr_gravity_hint_new ()</h3>
1840
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_gravity_hint_new (<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravityHint"><span class="type">PangoGravityHint</span></a> hint</code></em>);</pre>
1842
Create a new gravity hint attribute.</p>
1843
<div class="variablelist"><table border="0" class="variablelist">
1845
<col align="left" valign="top">
1850
<td><p><span class="term"><em class="parameter"><code>hint</code></em> :</span></p></td>
1851
<td>the gravity hint value.</td>
1854
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1855
<td>the newly allocated <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>,
1856
which should be freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-destroy" title="pango_attribute_destroy ()"><code class="function">pango_attribute_destroy()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1861
<p class="since">Since 1.16</p>
3263
be used. This type of underlining is available since Pango 1.4.</p>
3265
<td class="enum_member_annotations"> </td>
1864
3272
<div class="refsect2">