1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>GailMisc</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
7
<link rel="home" href="index.html" title="GAIL Reference Manual">
8
<link rel="up" href="libgail-util-main.html" title="GAIL libgail-util Library">
9
<link rel="prev" href="gail-libgail-util-GailTextUtil.html" title="GailTextUtil">
10
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11
<link rel="stylesheet" href="style.css" type="text/css">
13
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16
<td><a accesskey="p" href="gail-libgail-util-GailTextUtil.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17
<td><a accesskey="u" href="libgail-util-main.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
18
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19
<th width="100%" align="center">GAIL Reference Manual</th>
22
<tr><td colspan="5" class="shortcuts">
23
<a href="#gail-libgail-util-GailMisc.synopsis" class="shortcut">Top</a>
25
<a href="#gail-libgail-util-GailMisc.description" class="shortcut">Description</a>
28
<div class="refentry">
29
<a name="gail-libgail-util-GailMisc"></a><div class="titlepage"></div>
30
<div class="refnamediv"><table width="100%"><tr>
32
<h2><span class="refentrytitle"><a name="gail-libgail-util-GailMisc.top_of_page"></a>GailMisc</span></h2>
33
<p>GailMisc — GailMisc is a set of utility functions which may be
34
useful to implementors of Atk interfaces for custom widgets.</p>
36
<td valign="top" align="right"></td>
38
<div class="refsynopsisdiv">
39
<a name="gail-libgail-util-GailMisc.synopsis"></a><h2>Synopsis</h2>
40
<pre class="synopsis"><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> * <a class="link" href="gail-libgail-util-GailMisc.html#gail-misc-add-attribute" title="gail_misc_add_attribute ()">gail_misc_add_attribute</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> *attrib_set</code></em>,
41
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkTextAttribute"><span class="type">AtkTextAttribute</span></a> attr</code></em>,
42
<em class="parameter"><code><span class="type">gchar</span> *value</code></em>);
43
<a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> * <a class="link" href="gail-libgail-util-GailMisc.html#gail-misc-layout-get-run-attributes" title="gail_misc_layout_get_run_attributes ()">gail_misc_layout_get_run_attributes</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> *attrib_set</code></em>,
44
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
45
<em class="parameter"><code><span class="type">gchar</span> *text</code></em>,
46
<em class="parameter"><code><span class="type">gint</span> offset</code></em>,
47
<em class="parameter"><code><span class="type">gint</span> *start_offset</code></em>,
48
<em class="parameter"><code><span class="type">gint</span> *end_offset</code></em>);
49
<a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> * <a class="link" href="gail-libgail-util-GailMisc.html#gail-misc-get-default-attributes" title="gail_misc_get_default_attributes ()">gail_misc_get_default_attributes</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> *attrib_set</code></em>,
50
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
51
<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="type">GtkWidget</span></a> *widget</code></em>);
52
<span class="returnvalue">void</span> <a class="link" href="gail-libgail-util-GailMisc.html#gail-misc-get-extents-from-pango-rectangle" title="gail_misc_get_extents_from_pango_rectangle ()">gail_misc_get_extents_from_pango_rectangle</a>
53
(<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="type">GtkWidget</span></a> *widget</code></em>,
54
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/pango/pango-Glyph-Storage.html#PangoRectangle"><span class="type">PangoRectangle</span></a> *char_rect</code></em>,
55
<em class="parameter"><code><span class="type">gint</span> x_layout</code></em>,
56
<em class="parameter"><code><span class="type">gint</span> y_layout</code></em>,
57
<em class="parameter"><code><span class="type">gint</span> *x</code></em>,
58
<em class="parameter"><code><span class="type">gint</span> *y</code></em>,
59
<em class="parameter"><code><span class="type">gint</span> *width</code></em>,
60
<em class="parameter"><code><span class="type">gint</span> *height</code></em>,
61
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkUtil.html#AtkCoordType"><span class="type">AtkCoordType</span></a> coords</code></em>);
62
<span class="returnvalue">gint</span> <a class="link" href="gail-libgail-util-GailMisc.html#gail-misc-get-index-at-point-in-layout" title="gail_misc_get_index_at_point_in_layout ()">gail_misc_get_index_at_point_in_layout</a>
63
(<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="type">GtkWidget</span></a> *widget</code></em>,
64
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
65
<em class="parameter"><code><span class="type">gint</span> x_layout</code></em>,
66
<em class="parameter"><code><span class="type">gint</span> y_layout</code></em>,
67
<em class="parameter"><code><span class="type">gint</span> x</code></em>,
68
<em class="parameter"><code><span class="type">gint</span> y</code></em>,
69
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkUtil.html#AtkCoordType"><span class="type">AtkCoordType</span></a> coords</code></em>);
70
<span class="returnvalue">void</span> <a class="link" href="gail-libgail-util-GailMisc.html#gail-misc-get-origins" title="gail_misc_get_origins ()">gail_misc_get_origins</a> (<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="type">GtkWidget</span></a> *widget</code></em>,
71
<em class="parameter"><code><span class="type">gint</span> *x_window</code></em>,
72
<em class="parameter"><code><span class="type">gint</span> *y_window</code></em>,
73
<em class="parameter"><code><span class="type">gint</span> *x_toplevel</code></em>,
74
<em class="parameter"><code><span class="type">gint</span> *y_toplevel</code></em>);
75
<a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> * <a class="link" href="gail-libgail-util-GailMisc.html#gail-misc-add-to-attr-set" title="gail_misc_add_to_attr_set ()">gail_misc_add_to_attr_set</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> *attrib_set</code></em>,
76
<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkTextTag.html#GtkTextAttributes"><span class="type">GtkTextAttributes</span></a> *attrs</code></em>,
77
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkTextAttribute"><span class="type">AtkTextAttribute</span></a> attr</code></em>);
78
<a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> * <a class="link" href="gail-libgail-util-GailMisc.html#gail-misc-buffer-get-run-attributes" title="gail_misc_buffer_get_run_attributes ()">gail_misc_buffer_get_run_attributes</a> (<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkTextBuffer.html"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>,
79
<em class="parameter"><code><span class="type">gint</span> offset</code></em>,
80
<em class="parameter"><code><span class="type">gint</span> *start_offset</code></em>,
81
<em class="parameter"><code><span class="type">gint</span> *end_offset</code></em>);
84
<div class="refsect1">
85
<a name="gail-libgail-util-GailMisc.description"></a><h2>Description</h2>
87
GailMisc is a set of utility function which are used in the implemementation
88
of Atk interfaces for GTK+ widgets. They may be useful to implementors of
89
Atk interfaces for custom widgets.
92
<div class="refsect1">
93
<a name="gail-libgail-util-GailMisc.details"></a><h2>Details</h2>
94
<div class="refsect2">
95
<a name="gail-misc-add-attribute"></a><h3>gail_misc_add_attribute ()</h3>
96
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> * gail_misc_add_attribute (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> *attrib_set</code></em>,
97
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkTextAttribute"><span class="type">AtkTextAttribute</span></a> attr</code></em>,
98
<em class="parameter"><code><span class="type">gchar</span> *value</code></em>);</pre>
100
Creates an <a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttribute"><span class="type">AtkAttribute</span></a> from <em class="parameter"><code>attr</code></em> and <em class="parameter"><code>value</code></em>, and adds it
101
to <em class="parameter"><code>attrib_set</code></em>.
103
<div class="variablelist"><table border="0" class="variablelist">
105
<col align="left" valign="top">
110
<td><p><span class="term"><em class="parameter"><code>attrib_set</code></em> :</span></p></td>
111
<td>The <a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> to add the attribute to</td>
114
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
115
<td>The AtkTextAttrribute which identifies the attribute to be added</td>
118
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
119
<td>The attribute value</td>
122
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
123
<td>A pointer to the new <a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a>.</td>
129
<div class="refsect2">
130
<a name="gail-misc-layout-get-run-attributes"></a><h3>gail_misc_layout_get_run_attributes ()</h3>
131
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> * gail_misc_layout_get_run_attributes (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> *attrib_set</code></em>,
132
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
133
<em class="parameter"><code><span class="type">gchar</span> *text</code></em>,
134
<em class="parameter"><code><span class="type">gint</span> offset</code></em>,
135
<em class="parameter"><code><span class="type">gint</span> *start_offset</code></em>,
136
<em class="parameter"><code><span class="type">gint</span> *end_offset</code></em>);</pre>
138
Adds the attributes for the run starting at offset to the specified
141
<div class="variablelist"><table border="0" class="variablelist">
143
<col align="left" valign="top">
148
<td><p><span class="term"><em class="parameter"><code>attrib_set</code></em> :</span></p></td>
149
<td>The <a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> to add the attribute to</td>
152
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
153
<td>The PangoLayout from which the attributes will be obtained</td>
156
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
160
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
161
<td>The offset at which the attributes are required</td>
164
<td><p><span class="term"><em class="parameter"><code>start_offset</code></em> :</span></p></td>
165
<td>The start offset of the current run</td>
168
<td><p><span class="term"><em class="parameter"><code>end_offset</code></em> :</span></p></td>
169
<td>The end offset of the current run</td>
172
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
173
<td>A pointer to the <a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a>.</td>
179
<div class="refsect2">
180
<a name="gail-misc-get-default-attributes"></a><h3>gail_misc_get_default_attributes ()</h3>
181
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> * gail_misc_get_default_attributes (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> *attrib_set</code></em>,
182
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
183
<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="type">GtkWidget</span></a> *widget</code></em>);</pre>
185
Adds the default attributes to the specified attribute set.
187
<div class="variablelist"><table border="0" class="variablelist">
189
<col align="left" valign="top">
194
<td><p><span class="term"><em class="parameter"><code>attrib_set</code></em> :</span></p></td>
195
<td>The <a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> to add the attribute to</td>
198
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
199
<td>The PangoLayout from which the attributes will be obtained</td>
202
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
203
<td>The GtkWidget for which the default attributes are required.</td>
206
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
207
<td>A pointer to the <a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a>.</td>
213
<div class="refsect2">
214
<a name="gail-misc-get-extents-from-pango-rectangle"></a><h3>gail_misc_get_extents_from_pango_rectangle ()</h3>
215
<pre class="programlisting"><span class="returnvalue">void</span> gail_misc_get_extents_from_pango_rectangle
216
(<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="type">GtkWidget</span></a> *widget</code></em>,
217
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/pango/pango-Glyph-Storage.html#PangoRectangle"><span class="type">PangoRectangle</span></a> *char_rect</code></em>,
218
<em class="parameter"><code><span class="type">gint</span> x_layout</code></em>,
219
<em class="parameter"><code><span class="type">gint</span> y_layout</code></em>,
220
<em class="parameter"><code><span class="type">gint</span> *x</code></em>,
221
<em class="parameter"><code><span class="type">gint</span> *y</code></em>,
222
<em class="parameter"><code><span class="type">gint</span> *width</code></em>,
223
<em class="parameter"><code><span class="type">gint</span> *height</code></em>,
224
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkUtil.html#AtkCoordType"><span class="type">AtkCoordType</span></a> coords</code></em>);</pre>
226
Gets the extents of <em class="parameter"><code>char_rect</code></em> in device coordinates,
227
relative to either top-level window or screen coordinates as
228
specified by <em class="parameter"><code>coords</code></em>.
230
<div class="variablelist"><table border="0" class="variablelist">
232
<col align="left" valign="top">
237
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
238
<td>The widget that contains the PangoLayout, that contains
239
the PangoRectangle</td>
242
<td><p><span class="term"><em class="parameter"><code>char_rect</code></em> :</span></p></td>
243
<td>The <a href="/usr/share/gtk-doc/html/pango/pango-Glyph-Storage.html#PangoRectangle"><span class="type">PangoRectangle</span></a> from which to calculate extents</td>
246
<td><p><span class="term"><em class="parameter"><code>x_layout</code></em> :</span></p></td>
247
<td>The x-offset at which the widget displays the
248
PangoLayout that contains the PangoRectangle, relative to <em class="parameter"><code>widget</code></em>
252
<td><p><span class="term"><em class="parameter"><code>y_layout</code></em> :</span></p></td>
253
<td>The y-offset at which the widget displays the
254
PangoLayout that contains the PangoRectangle, relative to <em class="parameter"><code>widget</code></em>
258
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
259
<td>The x-position of the <a href="/usr/share/gtk-doc/html/pango/pango-Glyph-Storage.html#PangoRectangle"><span class="type">PangoRectangle</span></a> relative to <em class="parameter"><code>coords</code></em>
263
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
264
<td>The y-position of the <a href="/usr/share/gtk-doc/html/pango/pango-Glyph-Storage.html#PangoRectangle"><span class="type">PangoRectangle</span></a> relative to <em class="parameter"><code>coords</code></em>
268
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
269
<td>The width of the <a href="/usr/share/gtk-doc/html/pango/pango-Glyph-Storage.html#PangoRectangle"><span class="type">PangoRectangle</span></a>
273
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
274
<td>The height of the <a href="/usr/share/gtk-doc/html/pango/pango-Glyph-Storage.html#PangoRectangle"><span class="type">PangoRectangle</span></a>
278
<td><p><span class="term"><em class="parameter"><code>coords</code></em> :</span></p></td>
279
<td>An <a href="/usr/share/gtk-doc/html/atk/AtkUtil.html#AtkCoordType"><span class="type">AtkCoordType</span></a> enumeration</td>
285
<div class="refsect2">
286
<a name="gail-misc-get-index-at-point-in-layout"></a><h3>gail_misc_get_index_at_point_in_layout ()</h3>
287
<pre class="programlisting"><span class="returnvalue">gint</span> gail_misc_get_index_at_point_in_layout
288
(<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="type">GtkWidget</span></a> *widget</code></em>,
289
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
290
<em class="parameter"><code><span class="type">gint</span> x_layout</code></em>,
291
<em class="parameter"><code><span class="type">gint</span> y_layout</code></em>,
292
<em class="parameter"><code><span class="type">gint</span> x</code></em>,
293
<em class="parameter"><code><span class="type">gint</span> y</code></em>,
294
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkUtil.html#AtkCoordType"><span class="type">AtkCoordType</span></a> coords</code></em>);</pre>
296
Gets the byte offset at the specified <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em> in a <a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>.
298
<div class="variablelist"><table border="0" class="variablelist">
300
<col align="left" valign="top">
305
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
306
<td>A <a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="type">GtkWidget</span></a>
310
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
311
<td>The <a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> from which to get the index at the
312
specified point.</td>
315
<td><p><span class="term"><em class="parameter"><code>x_layout</code></em> :</span></p></td>
316
<td>The x-offset at which the widget displays the
317
<a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>, relative to <em class="parameter"><code>widget</code></em>
321
<td><p><span class="term"><em class="parameter"><code>y_layout</code></em> :</span></p></td>
322
<td>The y-offset at which the widget displays the
323
<a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>, relative to <em class="parameter"><code>widget</code></em>
327
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
328
<td>The x-coordinate relative to <em class="parameter"><code>coords</code></em> at which to
329
calculate the index</td>
332
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
333
<td>The y-coordinate relative to <em class="parameter"><code>coords</code></em> at which to
334
calculate the index</td>
337
<td><p><span class="term"><em class="parameter"><code>coords</code></em> :</span></p></td>
338
<td>An <a href="/usr/share/gtk-doc/html/atk/AtkUtil.html#AtkCoordType"><span class="type">AtkCoordType</span></a> enumeration</td>
341
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
342
<td>the byte offset at the specified <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em> in a
343
<a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
350
<div class="refsect2">
351
<a name="gail-misc-get-origins"></a><h3>gail_misc_get_origins ()</h3>
352
<pre class="programlisting"><span class="returnvalue">void</span> gail_misc_get_origins (<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="type">GtkWidget</span></a> *widget</code></em>,
353
<em class="parameter"><code><span class="type">gint</span> *x_window</code></em>,
354
<em class="parameter"><code><span class="type">gint</span> *y_window</code></em>,
355
<em class="parameter"><code><span class="type">gint</span> *x_toplevel</code></em>,
356
<em class="parameter"><code><span class="type">gint</span> *y_toplevel</code></em>);</pre>
358
Gets the origin of the widget window, and the origin of the
359
widgets top-level window.
361
<div class="variablelist"><table border="0" class="variablelist">
363
<col align="left" valign="top">
368
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
369
<td>a <a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="type">GtkWidget</span></a>
373
<td><p><span class="term"><em class="parameter"><code>x_window</code></em> :</span></p></td>
374
<td>the x-origin of the widget->window</td>
377
<td><p><span class="term"><em class="parameter"><code>y_window</code></em> :</span></p></td>
378
<td>the y-origin of the widget->window</td>
381
<td><p><span class="term"><em class="parameter"><code>x_toplevel</code></em> :</span></p></td>
382
<td>the x-origin of the toplevel window for widget->window</td>
385
<td><p><span class="term"><em class="parameter"><code>y_toplevel</code></em> :</span></p></td>
386
<td>the y-origin of the toplevel window for widget->window</td>
392
<div class="refsect2">
393
<a name="gail-misc-add-to-attr-set"></a><h3>gail_misc_add_to_attr_set ()</h3>
394
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> * gail_misc_add_to_attr_set (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a> *attrib_set</code></em>,
395
<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkTextTag.html#GtkTextAttributes"><span class="type">GtkTextAttributes</span></a> *attrs</code></em>,
396
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkTextAttribute"><span class="type">AtkTextAttribute</span></a> attr</code></em>);</pre>
398
Gets the value for the AtkTextAttribute from the GtkTextAttributes
399
and adds it to the AttributeSet.
401
<div class="variablelist"><table border="0" class="variablelist">
403
<col align="left" valign="top">
408
<td><p><span class="term"><em class="parameter"><code>attrib_set</code></em> :</span></p></td>
409
<td>An <a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a>
413
<td><p><span class="term"><em class="parameter"><code>attrs</code></em> :</span></p></td>
414
<td>The <a href="http://developer.gnome.org/gtk2/GtkTextTag.html#GtkTextAttributes"><span class="type">GtkTextAttributes</span></a> containing the attribute value</td>
417
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
418
<td>The <a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkTextAttribute"><span class="type">AtkTextAttribute</span></a> to be added</td>
421
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
422
<td>A pointer to the updated <a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a>.</td>
428
<div class="refsect2">
429
<a name="gail-misc-buffer-get-run-attributes"></a><h3>gail_misc_buffer_get_run_attributes ()</h3>
430
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="returnvalue">AtkAttributeSet</span></a> * gail_misc_buffer_get_run_attributes (<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkTextBuffer.html"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>,
431
<em class="parameter"><code><span class="type">gint</span> offset</code></em>,
432
<em class="parameter"><code><span class="type">gint</span> *start_offset</code></em>,
433
<em class="parameter"><code><span class="type">gint</span> *end_offset</code></em>);</pre>
435
Creates an AtkAttributeSet which contains the attributes for the
436
run starting at offset.
438
<div class="variablelist"><table border="0" class="variablelist">
440
<col align="left" valign="top">
445
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
446
<td>The <a href="http://developer.gnome.org/gtk2/GtkTextBuffer.html"><span class="type">GtkTextBuffer</span></a> for which the attributes will be obtained</td>
449
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
450
<td>The offset at which the attributes are required</td>
453
<td><p><span class="term"><em class="parameter"><code>start_offset</code></em> :</span></p></td>
454
<td>The start offset of the current run</td>
457
<td><p><span class="term"><em class="parameter"><code>end_offset</code></em> :</span></p></td>
458
<td>The end offset of the current run</td>
461
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
462
<td>A pointer to the <a href="/usr/share/gtk-doc/html/atk/AtkText.html#AtkAttributeSet"><span class="type">AtkAttributeSet</span></a>.</td>
471
Generated by GTK-Doc V1.18</div>
b'\\ No newline at end of file'