~inkscape.dev/inkscape-devlibs/devlibs-gtk3

« back to all changes in this revision

Viewing changes to share/gtk-doc/html/gail-libgail-util/gail-libgail-util-GailMisc.html

  • Committer: JazzyNico
  • Date: 2013-01-21 10:11:05 UTC
  • Revision ID: nicoduf@yahoo.fr-20130121101105-i8d8slkq9ng4olx8
Adding gtk2 libraries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<html>
 
3
<head>
 
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">
 
12
</head>
 
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">
 
15
<tr valign="middle">
 
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>
 
20
<td> </td>
 
21
</tr>
 
22
<tr><td colspan="5" class="shortcuts">
 
23
<a href="#gail-libgail-util-GailMisc.synopsis" class="shortcut">Top</a>
 
24
                   | 
 
25
                  <a href="#gail-libgail-util-GailMisc.description" class="shortcut">Description</a>
 
26
</td></tr>
 
27
</table>
 
28
<div class="refentry">
 
29
<a name="gail-libgail-util-GailMisc"></a><div class="titlepage"></div>
 
30
<div class="refnamediv"><table width="100%"><tr>
 
31
<td valign="top">
 
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>
 
35
</td>
 
36
<td valign="top" align="right"></td>
 
37
</tr></table></div>
 
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>);
 
82
</pre>
 
83
</div>
 
84
<div class="refsect1">
 
85
<a name="gail-libgail-util-GailMisc.description"></a><h2>Description</h2>
 
86
<p>
 
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.
 
90
</p>
 
91
</div>
 
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>
 
99
<p>
 
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>.
 
102
</p>
 
103
<div class="variablelist"><table border="0" class="variablelist">
 
104
<colgroup>
 
105
<col align="left" valign="top">
 
106
<col>
 
107
</colgroup>
 
108
<tbody>
 
109
<tr>
 
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>
 
112
</tr>
 
113
<tr>
 
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>
 
116
</tr>
 
117
<tr>
 
118
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
 
119
<td>The attribute value</td>
 
120
</tr>
 
121
<tr>
 
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>
 
124
</tr>
 
125
</tbody>
 
126
</table></div>
 
127
</div>
 
128
<hr>
 
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>
 
137
<p>
 
138
Adds the attributes for the run starting at offset to the specified
 
139
attribute set.
 
140
</p>
 
141
<div class="variablelist"><table border="0" class="variablelist">
 
142
<colgroup>
 
143
<col align="left" valign="top">
 
144
<col>
 
145
</colgroup>
 
146
<tbody>
 
147
<tr>
 
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>
 
150
</tr>
 
151
<tr>
 
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>
 
154
</tr>
 
155
<tr>
 
156
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
 
157
<td>The text</td>
 
158
</tr>
 
159
<tr>
 
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>
 
162
</tr>
 
163
<tr>
 
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>
 
166
</tr>
 
167
<tr>
 
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>
 
170
</tr>
 
171
<tr>
 
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>
 
174
</tr>
 
175
</tbody>
 
176
</table></div>
 
177
</div>
 
178
<hr>
 
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>
 
184
<p>
 
185
Adds the default attributes to the specified attribute set.
 
186
</p>
 
187
<div class="variablelist"><table border="0" class="variablelist">
 
188
<colgroup>
 
189
<col align="left" valign="top">
 
190
<col>
 
191
</colgroup>
 
192
<tbody>
 
193
<tr>
 
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>
 
196
</tr>
 
197
<tr>
 
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>
 
200
</tr>
 
201
<tr>
 
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>
 
204
</tr>
 
205
<tr>
 
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>
 
208
</tr>
 
209
</tbody>
 
210
</table></div>
 
211
</div>
 
212
<hr>
 
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>
 
225
<p>
 
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>.
 
229
</p>
 
230
<div class="variablelist"><table border="0" class="variablelist">
 
231
<colgroup>
 
232
<col align="left" valign="top">
 
233
<col>
 
234
</colgroup>
 
235
<tbody>
 
236
<tr>
 
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>
 
240
</tr>
 
241
<tr>
 
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>
 
244
</tr>
 
245
<tr>
 
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>
 
249
</td>
 
250
</tr>
 
251
<tr>
 
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>
 
255
</td>
 
256
</tr>
 
257
<tr>
 
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>
 
260
</td>
 
261
</tr>
 
262
<tr>
 
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>
 
265
</td>
 
266
</tr>
 
267
<tr>
 
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>
 
270
</td>
 
271
</tr>
 
272
<tr>
 
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>
 
275
</td>
 
276
</tr>
 
277
<tr>
 
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>
 
280
</tr>
 
281
</tbody>
 
282
</table></div>
 
283
</div>
 
284
<hr>
 
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>
 
295
<p>
 
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>.
 
297
</p>
 
298
<div class="variablelist"><table border="0" class="variablelist">
 
299
<colgroup>
 
300
<col align="left" valign="top">
 
301
<col>
 
302
</colgroup>
 
303
<tbody>
 
304
<tr>
 
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>
 
307
</td>
 
308
</tr>
 
309
<tr>
 
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>
 
313
</tr>
 
314
<tr>
 
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>
 
318
</td>
 
319
</tr>
 
320
<tr>
 
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>
 
324
</td>
 
325
</tr>
 
326
<tr>
 
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>
 
330
</tr>
 
331
<tr>
 
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>
 
335
</tr>
 
336
<tr>
 
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>
 
339
</tr>
 
340
<tr>
 
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>
 
344
</td>
 
345
</tr>
 
346
</tbody>
 
347
</table></div>
 
348
</div>
 
349
<hr>
 
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>
 
357
<p>
 
358
Gets the origin of the widget window, and the origin of the
 
359
widgets top-level window.
 
360
</p>
 
361
<div class="variablelist"><table border="0" class="variablelist">
 
362
<colgroup>
 
363
<col align="left" valign="top">
 
364
<col>
 
365
</colgroup>
 
366
<tbody>
 
367
<tr>
 
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>
 
370
</td>
 
371
</tr>
 
372
<tr>
 
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-&gt;window</td>
 
375
</tr>
 
376
<tr>
 
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-&gt;window</td>
 
379
</tr>
 
380
<tr>
 
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-&gt;window</td>
 
383
</tr>
 
384
<tr>
 
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-&gt;window</td>
 
387
</tr>
 
388
</tbody>
 
389
</table></div>
 
390
</div>
 
391
<hr>
 
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>
 
397
<p>
 
398
Gets the value for the AtkTextAttribute from the GtkTextAttributes
 
399
and adds it to the AttributeSet.
 
400
</p>
 
401
<div class="variablelist"><table border="0" class="variablelist">
 
402
<colgroup>
 
403
<col align="left" valign="top">
 
404
<col>
 
405
</colgroup>
 
406
<tbody>
 
407
<tr>
 
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>
 
410
</td>
 
411
</tr>
 
412
<tr>
 
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>
 
415
</tr>
 
416
<tr>
 
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>
 
419
</tr>
 
420
<tr>
 
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>
 
423
</tr>
 
424
</tbody>
 
425
</table></div>
 
426
</div>
 
427
<hr>
 
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>
 
434
<p>
 
435
Creates an AtkAttributeSet which contains the attributes for the 
 
436
run starting at offset.
 
437
</p>
 
438
<div class="variablelist"><table border="0" class="variablelist">
 
439
<colgroup>
 
440
<col align="left" valign="top">
 
441
<col>
 
442
</colgroup>
 
443
<tbody>
 
444
<tr>
 
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>
 
447
</tr>
 
448
<tr>
 
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>
 
451
</tr>
 
452
<tr>
 
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>
 
455
</tr>
 
456
<tr>
 
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>
 
459
</tr>
 
460
<tr>
 
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>
 
463
</tr>
 
464
</tbody>
 
465
</table></div>
 
466
</div>
 
467
</div>
 
468
</div>
 
469
<div class="footer">
 
470
<hr>
 
471
          Generated by GTK-Doc V1.18</div>
 
472
</body>
 
473
</html>
 
 
b'\\ No newline at end of file'