~elementary-os/elementaryos/os-patch-at-spi2-core-xenial

« back to all changes in this revision

Viewing changes to doc/libatspi/html/libatspi-atspi-registry.html

  • Committer: RabbitBot
  • Date: 2016-11-16 09:38:52 UTC
  • Revision ID: rabbitbot@elementary.io-20161116093852-xn6hcgpg5y25xooo
Initial import, version 2.18.3-4ubuntu1

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>atspi-registry: libatspi Reference Manual</title>
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
 
7
<link rel="home" href="index.html" title="libatspi Reference Manual">
 
8
<link rel="up" href="ch01.html" title="API reference">
 
9
<link rel="prev" href="libatspi-atspi-component.html" title="atspi-component">
 
10
<link rel="next" href="libatspi-atspi-types.html" title="atspi-types">
 
11
<meta name="generator" content="GTK-Doc V1.24.1 (XML mode)">
 
12
<link rel="stylesheet" href="style.css" type="text/css">
 
13
</head>
 
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
 
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
 
16
<td width="100%" align="left" class="shortcuts">
 
17
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
 
18
                  <a href="#libatspi-atspi-registry.description" class="shortcut">Description</a></span>
 
19
</td>
 
20
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
 
21
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
 
22
<td><a accesskey="p" href="libatspi-atspi-component.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
 
23
<td><a accesskey="n" href="libatspi-atspi-types.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
 
24
</tr></table>
 
25
<div class="refentry">
 
26
<a name="libatspi-atspi-registry"></a><div class="titlepage"></div>
 
27
<div class="refnamediv"><table width="100%"><tr>
 
28
<td valign="top">
 
29
<h2><span class="refentrytitle"><a name="libatspi-atspi-registry.top_of_page"></a>atspi-registry</span></h2>
 
30
<p>atspi-registry — A service through which applications providing accessibility services
 
31
can rendezvous with consumers of those services.</p>
 
32
</td>
 
33
<td class="gallery_image" valign="top" align="right"></td>
 
34
</tr></table></div>
 
35
<div class="refsect1">
 
36
<a name="libatspi-atspi-registry.functions"></a><h2>Functions</h2>
 
37
<div class="informaltable"><table width="100%" border="0">
 
38
<colgroup>
 
39
<col width="150px" class="functions_return">
 
40
<col class="functions_name">
 
41
</colgroup>
 
42
<tbody>
 
43
<tr>
 
44
<td class="function_type">
 
45
<span class="returnvalue">GType</span>
 
46
</td>
 
47
<td class="function_name">
 
48
<a class="link" href="libatspi-atspi-registry.html#atspi-key-definition-get-type" title="atspi_key_definition_get_type ()">atspi_key_definition_get_type</a> <span class="c_punctuation">()</span>
 
49
</td>
 
50
</tr>
 
51
<tr>
 
52
<td class="function_type">
 
53
<span class="returnvalue">gint</span>
 
54
</td>
 
55
<td class="function_name">
 
56
<a class="link" href="libatspi-atspi-registry.html#atspi-get-desktop-count" title="atspi_get_desktop_count ()">atspi_get_desktop_count</a> <span class="c_punctuation">()</span>
 
57
</td>
 
58
</tr>
 
59
<tr>
 
60
<td class="function_type">
 
61
<a class="link" href="AtspiAccessible.html" title="AtspiAccessible"><span class="returnvalue">AtspiAccessible</span></a> *
 
62
</td>
 
63
<td class="function_name">
 
64
<a class="link" href="libatspi-atspi-registry.html#atspi-get-desktop" title="atspi_get_desktop ()">atspi_get_desktop</a> <span class="c_punctuation">()</span>
 
65
</td>
 
66
</tr>
 
67
<tr>
 
68
<td class="function_type">
 
69
<span class="returnvalue">GArray</span> *
 
70
</td>
 
71
<td class="function_name">
 
72
<a class="link" href="libatspi-atspi-registry.html#atspi-get-desktop-list" title="atspi_get_desktop_list ()">atspi_get_desktop_list</a> <span class="c_punctuation">()</span>
 
73
</td>
 
74
</tr>
 
75
<tr>
 
76
<td class="function_type">
 
77
<span class="returnvalue">gboolean</span>
 
78
</td>
 
79
<td class="function_name">
 
80
<a class="link" href="libatspi-atspi-registry.html#atspi-register-keystroke-listener" title="atspi_register_keystroke_listener ()">atspi_register_keystroke_listener</a> <span class="c_punctuation">()</span>
 
81
</td>
 
82
</tr>
 
83
<tr>
 
84
<td class="function_type">
 
85
<span class="returnvalue">gboolean</span>
 
86
</td>
 
87
<td class="function_name">
 
88
<a class="link" href="libatspi-atspi-registry.html#atspi-deregister-keystroke-listener" title="atspi_deregister_keystroke_listener ()">atspi_deregister_keystroke_listener</a> <span class="c_punctuation">()</span>
 
89
</td>
 
90
</tr>
 
91
<tr>
 
92
<td class="function_type">
 
93
<span class="returnvalue">gboolean</span>
 
94
</td>
 
95
<td class="function_name">
 
96
<a class="link" href="libatspi-atspi-registry.html#atspi-register-device-event-listener" title="atspi_register_device_event_listener ()">atspi_register_device_event_listener</a> <span class="c_punctuation">()</span>
 
97
</td>
 
98
</tr>
 
99
<tr>
 
100
<td class="function_type">
 
101
<span class="returnvalue">gboolean</span>
 
102
</td>
 
103
<td class="function_name">
 
104
<a class="link" href="libatspi-atspi-registry.html#atspi-deregister-device-event-listener" title="atspi_deregister_device_event_listener ()">atspi_deregister_device_event_listener</a> <span class="c_punctuation">()</span>
 
105
</td>
 
106
</tr>
 
107
<tr>
 
108
<td class="function_type">
 
109
<span class="returnvalue">gboolean</span>
 
110
</td>
 
111
<td class="function_name">
 
112
<a class="link" href="libatspi-atspi-registry.html#atspi-generate-keyboard-event" title="atspi_generate_keyboard_event ()">atspi_generate_keyboard_event</a> <span class="c_punctuation">()</span>
 
113
</td>
 
114
</tr>
 
115
<tr>
 
116
<td class="function_type">
 
117
<span class="returnvalue">gboolean</span>
 
118
</td>
 
119
<td class="function_name">
 
120
<a class="link" href="libatspi-atspi-registry.html#atspi-generate-mouse-event" title="atspi_generate_mouse_event ()">atspi_generate_mouse_event</a> <span class="c_punctuation">()</span>
 
121
</td>
 
122
</tr>
 
123
</tbody>
 
124
</table></div>
 
125
</div>
 
126
<div class="refsect1">
 
127
<a name="libatspi-atspi-registry.description"></a><h2>Description</h2>
 
128
<p>
 
129
A service through which applications providing accessibility services (servers)
 
130
can rendezvous with consumers of those services (Assistive Technologies). The
 
131
atspi-registry is the first "port of call" for accessible applications and for
 
132
assistive technologies wishing to query and interact with those applications.
 
133
</p>
 
134
</div>
 
135
<div class="refsect1">
 
136
<a name="libatspi-atspi-registry.functions_details"></a><h2>Functions</h2>
 
137
<div class="refsect2">
 
138
<a name="atspi-key-definition-get-type"></a><h3>atspi_key_definition_get_type ()</h3>
 
139
<pre class="programlisting"><span class="returnvalue">GType</span>
 
140
atspi_key_definition_get_type ();</pre>
 
141
<p>
 
142
</p>
 
143
</div>
 
144
<hr>
 
145
<div class="refsect2">
 
146
<a name="atspi-get-desktop-count"></a><h3>atspi_get_desktop_count ()</h3>
 
147
<pre class="programlisting"><span class="returnvalue">gint</span>
 
148
atspi_get_desktop_count ();</pre>
 
149
<p>Gets the number of virtual desktops.
 
150
NOTE: multiple virtual desktops are not implemented yet; as a 
 
151
consequence, this function always returns 1.</p>
 
152
<div class="refsect3">
 
153
<a name="id-1.2.23.5.3.5"></a><h4>Returns</h4>
 
154
<p> a <span class="type">gint</span> indicating the number of active virtual desktops.</p>
 
155
</div>
 
156
</div>
 
157
<hr>
 
158
<div class="refsect2">
 
159
<a name="atspi-get-desktop"></a><h3>atspi_get_desktop ()</h3>
 
160
<pre class="programlisting"><a class="link" href="AtspiAccessible.html" title="AtspiAccessible"><span class="returnvalue">AtspiAccessible</span></a> *
 
161
atspi_get_desktop (<em class="parameter"><code><span class="type">gint</span> i</code></em>);</pre>
 
162
<p>Gets the virtual desktop indicated by index <em class="parameter"><code>i</code></em>
 
163
.
 
164
NOTE: currently multiple virtual desktops are not implemented;
 
165
as a consequence, any <em class="parameter"><code>i</code></em>
 
166
 value different from 0 will not return a
 
167
virtual desktop - instead it will return NULL.</p>
 
168
<div class="refsect3">
 
169
<a name="id-1.2.23.5.4.5"></a><h4>Parameters</h4>
 
170
<div class="informaltable"><table width="100%" border="0">
 
171
<colgroup>
 
172
<col width="150px" class="parameters_name">
 
173
<col class="parameters_description">
 
174
<col width="200px" class="parameters_annotations">
 
175
</colgroup>
 
176
<tbody><tr>
 
177
<td class="parameter_name"><p>i</p></td>
 
178
<td class="parameter_description"><p>a <span class="type">gint</span> indicating which of the accessible desktops is to be returned.</p></td>
 
179
<td class="parameter_annotations"> </td>
 
180
</tr></tbody>
 
181
</table></div>
 
182
</div>
 
183
<div class="refsect3">
 
184
<a name="id-1.2.23.5.4.6"></a><h4>Returns</h4>
 
185
<p> a pointer to the <em class="parameter"><code>i</code></em>
 
186
-th virtual desktop's
 
187
<a class="link" href="AtspiAccessible.html" title="AtspiAccessible"><span class="type">AtspiAccessible</span></a> representation. </p>
 
188
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
 
189
</div>
 
190
</div>
 
191
<hr>
 
192
<div class="refsect2">
 
193
<a name="atspi-get-desktop-list"></a><h3>atspi_get_desktop_list ()</h3>
 
194
<pre class="programlisting"><span class="returnvalue">GArray</span> *
 
195
atspi_get_desktop_list ();</pre>
 
196
<p>Gets the list of virtual desktops.  On return, <em class="parameter"><code>list</code></em>
 
197
 will point
 
198
    to a newly-created, NULL terminated array of virtual desktop
 
199
    pointers.
 
200
    It is the responsibility of the caller to free this array when
 
201
    it is no longer needed.
 
202
NOTE: currently multiple virtual desktops are not implemented;
 
203
this implementation always returns a <span class="type">Garray</span> with a single
 
204
<a class="link" href="AtspiAccessible.html" title="AtspiAccessible"><span class="type">AtspiAccessible</span></a> desktop.</p>
 
205
<div class="refsect3">
 
206
<a name="id-1.2.23.5.5.5"></a><h4>Returns</h4>
 
207
<p> a <span class="type">GArray</span> of
 
208
desktops. </p>
 
209
<p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> AtspiAccessible*][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
 
210
</div>
 
211
</div>
 
212
<hr>
 
213
<div class="refsect2">
 
214
<a name="atspi-register-keystroke-listener"></a><h3>atspi_register_keystroke_listener ()</h3>
 
215
<pre class="programlisting"><span class="returnvalue">gboolean</span>
 
216
atspi_register_keystroke_listener (<em class="parameter"><code><a class="link" href="AtspiDeviceListener.html" title="atspi-devicelistener"><span class="type">AtspiDeviceListener</span></a> *listener</code></em>,
 
217
                                   <em class="parameter"><code><span class="type">GArray</span> *key_set</code></em>,
 
218
                                   <em class="parameter"><code><a class="link" href="libatspi-atspi-types.html#AtspiKeyMaskType" title="AtspiKeyMaskType"><span class="type">AtspiKeyMaskType</span></a> modmask</code></em>,
 
219
                                   <em class="parameter"><code><a class="link" href="libatspi-atspi-types.html#AtspiKeyEventMask" title="AtspiKeyEventMask"><span class="type">AtspiKeyEventMask</span></a> event_types</code></em>,
 
220
                                   <em class="parameter"><code><a class="link" href="libatspi-atspi-types.html#AtspiKeyListenerSyncType" title="enum AtspiKeyListenerSyncType"><span class="type">AtspiKeyListenerSyncType</span></a> sync_type</code></em>,
 
221
                                   <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
 
222
<p>Registers a listener for keystroke events, either pre-emptively for
 
223
            all windows (<a class="link" href="libatspi-atspi-types.html#ATSPI-KEYLISTENER-ALL-WINDOWS:CAPS"><code class="literal">ATSPI_KEYLISTENER_ALL_WINDOWS</code></a>),
 
224
            non-preemptively (<a class="link" href="libatspi-atspi-types.html#ATSPI-KEYLISTENER-NOSYNC:CAPS"><code class="literal">ATSPI_KEYLISTENER_NOSYNC</code></a>), or
 
225
            pre-emptively at the toolkit level (<a class="link" href="libatspi-atspi-types.html#ATSPI-KEYLISTENER-CANCONSUME:CAPS"><code class="literal">ATSPI_KEYLISTENER_CANCONSUME</code></a>).
 
226
            If ALL_WINDOWS or CANCONSUME are used, the event is consumed
 
227
            upon receipt if one of <em class="parameter"><code>listener</code></em>
 
228
's callbacks returns <code class="literal">TRUE</code> 
 
229
            (other sync_type values may be available in the future).</p>
 
230
<div class="refsect3">
 
231
<a name="id-1.2.23.5.6.5"></a><h4>Parameters</h4>
 
232
<div class="informaltable"><table width="100%" border="0">
 
233
<colgroup>
 
234
<col width="150px" class="parameters_name">
 
235
<col class="parameters_description">
 
236
<col width="200px" class="parameters_annotations">
 
237
</colgroup>
 
238
<tbody>
 
239
<tr>
 
240
<td class="parameter_name"><p>listener</p></td>
 
241
<td class="parameter_description"><p>a pointer to the <a class="link" href="AtspiDeviceListener.html" title="atspi-devicelistener"><span class="type">AtspiDeviceListener</span></a> for which
 
242
keystroke events are requested.</p></td>
 
243
<td class="parameter_annotations"> </td>
 
244
</tr>
 
245
<tr>
 
246
<td class="parameter_name"><p>key_set</p></td>
 
247
<td class="parameter_description"><p> a pointer to the
 
248
<a class="link" href="libatspi-atspi-types.html#AtspiKeyDefinition"><span class="type">AtspiKeyDefinition</span></a> array indicating which keystroke events are
 
249
requested, or NULL
 
250
to indicate that all keycodes and keyvals for the specified
 
251
modifier set are to be included. </p></td>
 
252
<td class="parameter_annotations"><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> AtspiKeyDefinition][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
 
253
</tr>
 
254
<tr>
 
255
<td class="parameter_name"><p>modmask</p></td>
 
256
<td class="parameter_description"><p>an <a class="link" href="libatspi-atspi-types.html#AtspiKeyMaskType" title="AtspiKeyMaskType"><span class="type">AtspiKeyMaskType</span></a> mask indicating which
 
257
key event modifiers must be set in combination with <em class="parameter"><code>keys</code></em>
 
258
,
 
259
events will only be reported for key events for which all
 
260
modifiers in <em class="parameter"><code>modmask</code></em>
 
261
are set.  If you wish to listen for
 
262
events with multiple modifier combinations, you must call
 
263
<a class="link" href="libatspi-atspi-registry.html#atspi-register-keystroke-listener" title="atspi_register_keystroke_listener ()"><span class="type">atspi_register_keystroke_listener</span></a> once for each
 
264
combination.</p></td>
 
265
<td class="parameter_annotations"> </td>
 
266
</tr>
 
267
<tr>
 
268
<td class="parameter_name"><p>event_types</p></td>
 
269
<td class="parameter_description"><p>an <a class="link" href="libatspi-atspi-types.html#AtspiKeyMaskType" title="AtspiKeyMaskType"><span class="type">AtspiKeyMaskType</span></a> mask indicating which
 
270
types of key events are requested (<a class="link" href="libatspi-atspi-constants.html#ATSPI-KEY-PRESSED:CAPS"><code class="literal">ATSPI_KEY_PRESSED</code></a> etc.).</p></td>
 
271
<td class="parameter_annotations"> </td>
 
272
</tr>
 
273
<tr>
 
274
<td class="parameter_name"><p>sync_type</p></td>
 
275
<td class="parameter_description"><p>an <a class="link" href="libatspi-atspi-types.html#AtspiKeyListenerSyncType" title="enum AtspiKeyListenerSyncType"><span class="type">AtspiKeyListenerSyncType</span></a> parameter indicating
 
276
the behavior of the notification/listener transaction.</p></td>
 
277
<td class="parameter_annotations"> </td>
 
278
</tr>
 
279
<tr>
 
280
<td class="parameter_name"><p>error</p></td>
 
281
<td class="parameter_description"><p> a pointer to a <code class="literal">NULL</code> <span class="type">GError</span> pointer, or <code class="literal">NULL</code>. </p></td>
 
282
<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>
 
283
</tr>
 
284
</tbody>
 
285
</table></div>
 
286
</div>
 
287
<div class="refsect3">
 
288
<a name="id-1.2.23.5.6.6"></a><h4>Returns</h4>
 
289
<p> <code class="literal">TRUE</code> if successful, otherwise <code class="literal">FALSE</code>.</p>
 
290
</div>
 
291
</div>
 
292
<hr>
 
293
<div class="refsect2">
 
294
<a name="atspi-deregister-keystroke-listener"></a><h3>atspi_deregister_keystroke_listener ()</h3>
 
295
<pre class="programlisting"><span class="returnvalue">gboolean</span>
 
296
atspi_deregister_keystroke_listener (<em class="parameter"><code><a class="link" href="AtspiDeviceListener.html" title="atspi-devicelistener"><span class="type">AtspiDeviceListener</span></a> *listener</code></em>,
 
297
                                     <em class="parameter"><code><span class="type">GArray</span> *key_set</code></em>,
 
298
                                     <em class="parameter"><code><a class="link" href="libatspi-atspi-types.html#AtspiKeyMaskType" title="AtspiKeyMaskType"><span class="type">AtspiKeyMaskType</span></a> modmask</code></em>,
 
299
                                     <em class="parameter"><code><a class="link" href="libatspi-atspi-types.html#AtspiKeyEventMask" title="AtspiKeyEventMask"><span class="type">AtspiKeyEventMask</span></a> event_types</code></em>,
 
300
                                     <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
 
301
<p>Removes a keystroke event listener from the registry's listener queue,
 
302
           ceasing notification of events with modifiers matching <em class="parameter"><code>modmask</code></em>
 
303
.</p>
 
304
<div class="refsect3">
 
305
<a name="id-1.2.23.5.7.5"></a><h4>Parameters</h4>
 
306
<div class="informaltable"><table width="100%" border="0">
 
307
<colgroup>
 
308
<col width="150px" class="parameters_name">
 
309
<col class="parameters_description">
 
310
<col width="200px" class="parameters_annotations">
 
311
</colgroup>
 
312
<tbody>
 
313
<tr>
 
314
<td class="parameter_name"><p>listener</p></td>
 
315
<td class="parameter_description"><p>a pointer to the <a class="link" href="AtspiDeviceListener.html" title="atspi-devicelistener"><span class="type">AtspiDeviceListener</span></a> for which
 
316
keystroke events are requested.</p></td>
 
317
<td class="parameter_annotations"> </td>
 
318
</tr>
 
319
<tr>
 
320
<td class="parameter_name"><p>key_set</p></td>
 
321
<td class="parameter_description"><p> a pointer to the
 
322
<a class="link" href="libatspi-atspi-types.html#AtspiKeyDefinition"><span class="type">AtspiKeyDefinition</span></a> array indicating which keystroke events are
 
323
requested, or <code class="literal">NULL</code>
 
324
to indicate that all keycodes and keyvals for the specified
 
325
modifier set are to be included. </p></td>
 
326
<td class="parameter_annotations"><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> AtspiKeyDefinition][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
 
327
</tr>
 
328
<tr>
 
329
<td class="parameter_name"><p>modmask</p></td>
 
330
<td class="parameter_description"><p>the key modifier mask for which this listener is to be
 
331
'deregistered' (of type <a class="link" href="libatspi-atspi-types.html#AtspiKeyMaskType" title="AtspiKeyMaskType"><span class="type">AtspiKeyMaskType</span></a>).</p></td>
 
332
<td class="parameter_annotations"> </td>
 
333
</tr>
 
334
<tr>
 
335
<td class="parameter_name"><p>event_types</p></td>
 
336
<td class="parameter_description"><p>an <a class="link" href="libatspi-atspi-types.html#AtspiKeyMaskType" title="AtspiKeyMaskType"><span class="type">AtspiKeyMaskType</span></a> mask indicating which
 
337
types of key events were requested (<a class="link" href="libatspi-atspi-constants.html#ATSPI-KEY-PRESSED:CAPS"><code class="literal">ATSPI_KEY_PRESSED</code></a>, etc.).</p></td>
 
338
<td class="parameter_annotations"> </td>
 
339
</tr>
 
340
<tr>
 
341
<td class="parameter_name"><p>error</p></td>
 
342
<td class="parameter_description"><p> a pointer to a <code class="literal">NULL</code> <span class="type">GError</span> pointer, or <code class="literal">NULL</code>. </p></td>
 
343
<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>
 
344
</tr>
 
345
</tbody>
 
346
</table></div>
 
347
</div>
 
348
<div class="refsect3">
 
349
<a name="id-1.2.23.5.7.6"></a><h4>Returns</h4>
 
350
<p> <code class="literal">TRUE</code> if successful, otherwise <code class="literal">FALSE</code>.</p>
 
351
</div>
 
352
</div>
 
353
<hr>
 
354
<div class="refsect2">
 
355
<a name="atspi-register-device-event-listener"></a><h3>atspi_register_device_event_listener ()</h3>
 
356
<pre class="programlisting"><span class="returnvalue">gboolean</span>
 
357
atspi_register_device_event_listener (<em class="parameter"><code><a class="link" href="AtspiDeviceListener.html" title="atspi-devicelistener"><span class="type">AtspiDeviceListener</span></a> *listener</code></em>,
 
358
                                      <em class="parameter"><code><a class="link" href="libatspi-atspi-types.html#AtspiDeviceEventMask" title="AtspiDeviceEventMask"><span class="type">AtspiDeviceEventMask</span></a> event_types</code></em>,
 
359
                                      <em class="parameter"><code><span class="type">void</span> *filter</code></em>,
 
360
                                      <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
 
361
<p>Registers a listener for device events, for instance button events.</p>
 
362
<div class="refsect3">
 
363
<a name="id-1.2.23.5.8.5"></a><h4>Parameters</h4>
 
364
<div class="informaltable"><table width="100%" border="0">
 
365
<colgroup>
 
366
<col width="150px" class="parameters_name">
 
367
<col class="parameters_description">
 
368
<col width="200px" class="parameters_annotations">
 
369
</colgroup>
 
370
<tbody>
 
371
<tr>
 
372
<td class="parameter_name"><p>listener</p></td>
 
373
<td class="parameter_description"><p>a pointer to the <a class="link" href="AtspiDeviceListener.html" title="atspi-devicelistener"><span class="type">AtspiDeviceListener</span></a> which requests
 
374
the events.</p></td>
 
375
<td class="parameter_annotations"> </td>
 
376
</tr>
 
377
<tr>
 
378
<td class="parameter_name"><p>event_types</p></td>
 
379
<td class="parameter_description"><p>an <a class="link" href="libatspi-atspi-types.html#AtspiDeviceEventMask" title="AtspiDeviceEventMask"><span class="type">AtspiDeviceEventMask</span></a> mask indicating which
 
380
types of key events are requested (<a class="link" href="libatspi-atspi-constants.html#ATSPI-KEY-PRESSED:CAPS"><code class="literal">ATSPI_KEY_PRESSED</code></a>, etc.).</p></td>
 
381
<td class="parameter_annotations"> </td>
 
382
</tr>
 
383
<tr>
 
384
<td class="parameter_name"><p>filter</p></td>
 
385
<td class="parameter_description"><p> Unused parameter. </p></td>
 
386
<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>
 
387
</tr>
 
388
<tr>
 
389
<td class="parameter_name"><p>error</p></td>
 
390
<td class="parameter_description"><p> a pointer to a <code class="literal">NULL</code> <span class="type">GError</span> pointer, or <code class="literal">NULL</code>. </p></td>
 
391
<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>
 
392
</tr>
 
393
</tbody>
 
394
</table></div>
 
395
</div>
 
396
<div class="refsect3">
 
397
<a name="id-1.2.23.5.8.6"></a><h4>Returns</h4>
 
398
<p> <code class="literal">TRUE</code> if successful, otherwise <code class="literal">FALSE</code>.</p>
 
399
</div>
 
400
</div>
 
401
<hr>
 
402
<div class="refsect2">
 
403
<a name="atspi-deregister-device-event-listener"></a><h3>atspi_deregister_device_event_listener ()</h3>
 
404
<pre class="programlisting"><span class="returnvalue">gboolean</span>
 
405
atspi_deregister_device_event_listener
 
406
                               (<em class="parameter"><code><a class="link" href="AtspiDeviceListener.html" title="atspi-devicelistener"><span class="type">AtspiDeviceListener</span></a> *listener</code></em>,
 
407
                                <em class="parameter"><code><span class="type">void</span> *filter</code></em>,
 
408
                                <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
 
409
<p>Removes a device event listener from the registry's listener queue,
 
410
           ceasing notification of events of the specified type.</p>
 
411
<div class="refsect3">
 
412
<a name="id-1.2.23.5.9.5"></a><h4>Parameters</h4>
 
413
<div class="informaltable"><table width="100%" border="0">
 
414
<colgroup>
 
415
<col width="150px" class="parameters_name">
 
416
<col class="parameters_description">
 
417
<col width="200px" class="parameters_annotations">
 
418
</colgroup>
 
419
<tbody>
 
420
<tr>
 
421
<td class="parameter_name"><p>listener</p></td>
 
422
<td class="parameter_description"><p>a pointer to the <a class="link" href="AtspiDeviceListener.html" title="atspi-devicelistener"><span class="type">AtspiDeviceListener</span></a> for which
 
423
device events are requested.</p></td>
 
424
<td class="parameter_annotations"> </td>
 
425
</tr>
 
426
<tr>
 
427
<td class="parameter_name"><p>filter</p></td>
 
428
<td class="parameter_description"><p> Unused parameter. </p></td>
 
429
<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>
 
430
</tr>
 
431
<tr>
 
432
<td class="parameter_name"><p>error</p></td>
 
433
<td class="parameter_description"><p> a pointer to a <code class="literal">NULL</code> <span class="type">GError</span> pointer, or <code class="literal">NULL</code>. </p></td>
 
434
<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>
 
435
</tr>
 
436
</tbody>
 
437
</table></div>
 
438
</div>
 
439
<div class="refsect3">
 
440
<a name="id-1.2.23.5.9.6"></a><h4>Returns</h4>
 
441
<p> <code class="literal">TRUE</code> if successful, otherwise <code class="literal">FALSE</code>.</p>
 
442
</div>
 
443
</div>
 
444
<hr>
 
445
<div class="refsect2">
 
446
<a name="atspi-generate-keyboard-event"></a><h3>atspi_generate_keyboard_event ()</h3>
 
447
<pre class="programlisting"><span class="returnvalue">gboolean</span>
 
448
atspi_generate_keyboard_event (<em class="parameter"><code><span class="type">glong</span> keyval</code></em>,
 
449
                               <em class="parameter"><code>const <span class="type">gchar</span> *keystring</code></em>,
 
450
                               <em class="parameter"><code><a class="link" href="libatspi-atspi-constants.html#AtspiKeySynthType" title="enum AtspiKeySynthType"><span class="type">AtspiKeySynthType</span></a> synth_type</code></em>,
 
451
                               <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
 
452
<p>Synthesizes a keyboard event (as if a hardware keyboard event occurred in the
 
453
current UI context).</p>
 
454
<div class="refsect3">
 
455
<a name="id-1.2.23.5.10.5"></a><h4>Parameters</h4>
 
456
<div class="informaltable"><table width="100%" border="0">
 
457
<colgroup>
 
458
<col width="150px" class="parameters_name">
 
459
<col class="parameters_description">
 
460
<col width="200px" class="parameters_annotations">
 
461
</colgroup>
 
462
<tbody>
 
463
<tr>
 
464
<td class="parameter_name"><p>keyval</p></td>
 
465
<td class="parameter_description"><p>a <span class="type">gint</span> indicating the keycode or keysym of the key event
 
466
being synthesized.</p></td>
 
467
<td class="parameter_annotations"> </td>
 
468
</tr>
 
469
<tr>
 
470
<td class="parameter_name"><p>keystring</p></td>
 
471
<td class="parameter_description"><p> an (optional) UTF-8 string which, if
 
472
<em class="parameter"><code>synth_type</code></em>
 
473
is <a class="link" href="libatspi-atspi-constants.html#ATSPI-KEY-STRING:CAPS"><code class="literal">ATSPI_KEY_STRING</code></a>, indicates a 'composed'
 
474
keyboard input string being synthesized; this type of
 
475
keyboard event synthesis does not emulate hardware
 
476
keypresses but injects the string as though a composing
 
477
input method (such as XIM) were used. </p></td>
 
478
<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>
 
479
</tr>
 
480
<tr>
 
481
<td class="parameter_name"><p>synth_type</p></td>
 
482
<td class="parameter_description"><p>an <a class="link" href="libatspi-atspi-constants.html#AtspiKeySynthType" title="enum AtspiKeySynthType"><span class="type">AtspiKeySynthType</span></a> flag indicating whether <em class="parameter"><code>keyval</code></em>
 
483
is to be interpreted as a keysym rather than a keycode
 
484
(<a class="link" href="libatspi-atspi-constants.html#ATSPI-KEY-SYM:CAPS"><code class="literal">ATSPI_KEY_SYM</code></a>) or a string (<a class="link" href="libatspi-atspi-constants.html#ATSPI-KEY-STRING:CAPS"><code class="literal">ATSPI_KEY_STRING</code></a>), or
 
485
whether to synthesize <a class="link" href="libatspi-atspi-constants.html#ATSPI-KEY-PRESS:CAPS"><code class="literal">ATSPI_KEY_PRESS</code></a>,
 
486
<a class="link" href="libatspi-atspi-constants.html#ATSPI-KEY-RELEASE:CAPS"><code class="literal">ATSPI_KEY_RELEASE</code></a>, or both (<a class="link" href="libatspi-atspi-constants.html#ATSPI-KEY-PRESSRELEASE:CAPS"><code class="literal">ATSPI_KEY_PRESSRELEASE</code></a>).</p></td>
 
487
<td class="parameter_annotations"> </td>
 
488
</tr>
 
489
<tr>
 
490
<td class="parameter_name"><p>error</p></td>
 
491
<td class="parameter_description"><p> a pointer to a <code class="literal">NULL</code> <span class="type">GError</span> pointer, or <code class="literal">NULL</code>. </p></td>
 
492
<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>
 
493
</tr>
 
494
</tbody>
 
495
</table></div>
 
496
</div>
 
497
<div class="refsect3">
 
498
<a name="id-1.2.23.5.10.6"></a><h4>Returns</h4>
 
499
<p> <code class="literal">TRUE</code> if successful, otherwise <code class="literal">FALSE</code>.</p>
 
500
</div>
 
501
</div>
 
502
<hr>
 
503
<div class="refsect2">
 
504
<a name="atspi-generate-mouse-event"></a><h3>atspi_generate_mouse_event ()</h3>
 
505
<pre class="programlisting"><span class="returnvalue">gboolean</span>
 
506
atspi_generate_mouse_event (<em class="parameter"><code><span class="type">glong</span> x</code></em>,
 
507
                            <em class="parameter"><code><span class="type">glong</span> y</code></em>,
 
508
                            <em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
 
509
                            <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
 
510
<p>Synthesizes a mouse event at a specific screen coordinate.
 
511
Most AT clients should use the <span class="type">AccessibleAction</span> interface when
 
512
tempted to generate mouse events, rather than this method.
 
513
Event names: b1p = button 1 press; b2r = button 2 release;
 
514
             b3c = button 3 click; b2d = button 2 double-click;
 
515
             abs = absolute motion; rel = relative motion.</p>
 
516
<div class="refsect3">
 
517
<a name="id-1.2.23.5.11.5"></a><h4>Parameters</h4>
 
518
<div class="informaltable"><table width="100%" border="0">
 
519
<colgroup>
 
520
<col width="150px" class="parameters_name">
 
521
<col class="parameters_description">
 
522
<col width="200px" class="parameters_annotations">
 
523
</colgroup>
 
524
<tbody>
 
525
<tr>
 
526
<td class="parameter_name"><p>x</p></td>
 
527
<td class="parameter_description"><p>a <span class="type">glong</span> indicating the screen x coordinate of the mouse event.</p></td>
 
528
<td class="parameter_annotations"> </td>
 
529
</tr>
 
530
<tr>
 
531
<td class="parameter_name"><p>y</p></td>
 
532
<td class="parameter_description"><p>a <span class="type">glong</span> indicating the screen y coordinate of the mouse event.</p></td>
 
533
<td class="parameter_annotations"> </td>
 
534
</tr>
 
535
<tr>
 
536
<td class="parameter_name"><p>name</p></td>
 
537
<td class="parameter_description"><p>a string indicating which mouse event to be synthesized
 
538
(e.g. "b1p", "b1c", "b2r", "rel", "abs").</p></td>
 
539
<td class="parameter_annotations"> </td>
 
540
</tr>
 
541
<tr>
 
542
<td class="parameter_name"><p>error</p></td>
 
543
<td class="parameter_description"><p> a pointer to a <code class="literal">NULL</code> <span class="type">GError</span> pointer, or <code class="literal">NULL</code>. </p></td>
 
544
<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>
 
545
</tr>
 
546
</tbody>
 
547
</table></div>
 
548
</div>
 
549
<div class="refsect3">
 
550
<a name="id-1.2.23.5.11.6"></a><h4>Returns</h4>
 
551
<p> <code class="literal">TRUE</code> if successful, otherwise <code class="literal">FALSE</code>.</p>
 
552
</div>
 
553
</div>
 
554
</div>
 
555
<div class="refsect1">
 
556
<a name="libatspi-atspi-registry.other_details"></a><h2>Types and Values</h2>
 
557
</div>
 
558
</div>
 
559
<div class="footer">
 
560
<hr>Generated by GTK-Doc V1.24.1</div>
 
561
</body>
 
562
</html>
 
 
b'\\ No newline at end of file'