2 * AT-SPI - Assistive Technology Service Provider Interface
3 * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
5 * Copyright 2001 Sun Microsystems Inc.
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
24 * createAccessibleEventListener:
25 * @callback : an #AccessibleEventListenerCB callback function, or NULL.
27 * Create a new #AccessibleEventListener with a specified callback function.
29 * Returns: a pointer to a newly-created #AccessibleEventListener.
32 AccessibleEventListener *
33 createAccessibleEventListener (AccessibleEventListenerCB callback)
35 AccessibleEventListener *listener = spi_accessible_event_listener_new ();
38 spi_accessible_event_listener_add_callback (listener, callback);
44 * AccessibleEventListener_addCallback:
45 * @listener: the #AccessibleEventListener instance to modify.
46 * @callback: an #AccessibleEventListenerCB function pointer.
48 * Add an in-process callback function to an existing AccessibleEventListener.
50 * Returns: #TRUE if successful, otherwise #FALSE.
54 AccessibleEventListener_addCallback (AccessibleEventListener *listener,
55 AccessibleEventListenerCB callback)
57 spi_accessible_event_listener_add_callback (listener, callback);
62 * AccessibleEventListener_removeCallback:
63 * @listener: the #AccessibleEventListener instance to modify.
64 * @callback: an #AccessibleEventListenerCB function pointer.
66 * Remove an in-process callback function from an existing AccessibleEventListener.
68 * Returns: #TRUE if successful, otherwise #FALSE.
72 AccessibleEventListener_removeCallback (AccessibleEventListener *listener,
73 AccessibleEventListenerCB callback)
75 spi_accessible_event_listener_remove_callback (listener, callback);
80 * createAccessibleKeystrokeListener:
81 * @callback : an #AccessibleKeystrokeListenerCB callback function, or NULL.
83 * Create a new #AccessibleKeystrokeListener with a specified callback function.
85 * Returns: a pointer to a newly-created #AccessibleKeystrokeListener.
88 AccessibleKeystrokeListener *
89 createAccessibleKeystrokeListener (AccessibleKeystrokeListenerCB callback)
91 SpiKeystrokeListener *listener = spi_keystroke_listener_new ();
94 spi_keystroke_listener_add_callback (listener, callback);
96 return (AccessibleKeystrokeListener *)listener;
100 * AccessibleKeystrokeListener_addCallback:
101 * @listener: the #AccessibleKeystrokeListener instance to modify.
102 * @callback: an #AccessibleKeystrokeListenerCB function pointer.
104 * Add an in-process callback function to an existing #AccessibleKeystrokeListener.
106 * Returns: #TRUE if successful, otherwise #FALSE.
110 AccessibleKeystrokeListener_addCallback (AccessibleKeystrokeListener *listener,
111 AccessibleKeystrokeListenerCB callback)
113 spi_keystroke_listener_add_callback (listener, callback);
118 * AccessibleKeystrokeListener_removeCallback:
119 * @listener: the #AccessibleKeystrokeListener instance to modify.
120 * @callback: an #AccessibleKeystrokeListenerCB function pointer.
122 * Remove an in-process callback function from an existing #AccessibleKeystrokeListener.
124 * Returns: #TRUE if successful, otherwise #FALSE.
128 AccessibleKeystrokeListener_removeCallback (AccessibleKeystrokeListener *listener,
129 AccessibleKeystrokeListenerCB callback)
131 keystroke_listener_remove_callback (listener, callback);