Add AT-SPI mapping for ATK_RELATION_NODE_PARENT_OF
[platform/core/uifw/at-spi2-atk.git] / cspi / spi.h
1 /*
2  * AT-SPI - Assistive Technology Service Provider Interface
3  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
4  *
5  * Copyright 2001, 2002 Sun Microsystems Inc.,
6  * Copyright 2001, 2002 Ximian, Inc.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the
20  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23
24 #ifndef _SPI_H
25 #define _SPI_H
26
27 #include <glib.h>
28 #include <common/spi-types.h>
29 #include <cspi/spi-impl.h>
30 /*
31  * Definitions for AccessibleRole, AccessibleState,
32  * and event listeners.
33  */
34 #include <cspi/spi-roletypes.h>
35 #include <cspi/spi-statetypes.h>
36 #include <cspi/spi-listener.h>
37
38
39 /*
40  * Auxiliary typedefs and mask definitions
41  */
42 #include <common/keymasks.h>
43
44 #ifdef  __cplusplus
45 extern "C" {
46 #endif
47
48 /**
49  *AccessibleCollectionMatchType:
50  *
51  *@SPI_COLLECTION_MATCH_INVALID         
52  *@SPI_COLLECTION_MATCH_ALL     TRUE if all of the criteria are met
53  *@SPI_COLLECTION_MATCH_ANY     TRUE if any of the criteria are met
54  *@SPI_COLLECTION_MATCH_NONE    TRUE if none of the criteria are met
55  *@SPI_COLLECTION_MATCH_EMPTY   Same as MATCH_ALL if the criteria is non-empty; 
56  * for empty criteria this rule requires returned value to also have empty set.
57  *@SPI_COLLECTION_MATCH_LAST_DEFINED    
58  *
59  **/
60 typedef enum
61 {
62      SPI_COLLECTION_MATCH_INVALID,
63      SPI_COLLECTION_MATCH_ALL,
64      SPI_COLLECTION_MATCH_ANY,
65      SPI_COLLECTION_MATCH_NONE,
66      SPI_COLLECTION_MATCH_EMPTY,
67      SPI_COLLECTION_MATCH_LAST_DEFINED
68 }AccessibleCollectionMatchType;
69
70
71 /**
72  *AccessibleTextBoundaryType:
73  *@SPI_TEXT_BOUNDARY_CHAR: Delimiter is the current character's bounds.
74  *@SPI_TEXT_BOUNDARY_CURSOR_POS: Delimiter is the current text caret position.
75  *@SPI_TEXT_BOUNDARY_WORD_START: Bounds run from the first character of a word to the first 
76  * character of the following word (i.e. including trailing whitespace, if any) within the text object.
77  *@SPI_TEXT_BOUNDARY_WORD_END: Bounds run from the last character of a word to the last 
78  * character of the following word (i.e. including leading whitespace) within the text object.
79  *@SPI_TEXT_BOUNDARY_SENTENCE_START: Bounds run from the first character of a sentence to the first 
80  * character of the next sentence in the text object.
81  *@SPI_TEXT_BOUNDARY_SENTENCE_END: Bounds run from the last character of a sentence to the last 
82  * character of the next sentence in the text object.
83  *@SPI_TEXT_BOUNDARY_LINE_START: Bounds span one line of text, with the line delimiter at the end of the
84  * bounds, if present, within the current text object.
85  *@SPI_TEXT_BOUNDARY_LINE_END: Bounds span one line of text, including a preceding line delimiter
86  * if present within the current text object.
87  *@SPI_TEXT_BOUNDARY_ATTRIBUTE_RANGE: Bounds span the run, relative to the specified offset and
88  * text accessor API rules, over which the attributes of the text object are invariant.  
89  *
90  *Text boundary types used for specifying boundaries for regions of text.
91  **/
92 typedef enum
93 {
94   SPI_TEXT_BOUNDARY_CHAR,
95   SPI_TEXT_BOUNDARY_CURSOR_POS,
96   SPI_TEXT_BOUNDARY_WORD_START,
97   SPI_TEXT_BOUNDARY_WORD_END,
98   SPI_TEXT_BOUNDARY_SENTENCE_START,
99   SPI_TEXT_BOUNDARY_SENTENCE_END,
100   SPI_TEXT_BOUNDARY_LINE_START,
101   SPI_TEXT_BOUNDARY_LINE_END,
102   SPI_TEXT_BOUNDARY_ATTRIBUTE_RANGE
103 } AccessibleTextBoundaryType;
104
105 /**
106  *AccessibleTextClipType
107  *@SPI_TEXT_CLIP_NONE: No clipping to be done
108  *@SPI_TEXT_CLIP_MIN: Text clipped by min coordinate is omitted
109  *@SPI_TEXT_CLIP_MAX: Text clipped by max coordinate is omitted
110  *@SPI_TEXT_CLIP_BOTH: Only text fully within mix/max bound is retained
111  *
112  *Describes the type of clipping required.
113  **/
114 typedef enum
115 {
116   SPI_TEXT_CLIP_NONE,
117   SPI_TEXT_CLIP_MIN,
118   SPI_TEXT_CLIP_MAX,
119   SPI_TEXT_CLIP_BOTH
120 } AccessibleTextClipType;
121
122 /**
123  *AccessibleRelationType:
124  *@SPI_RELATION_NULL: Not used, this is an invalid value for this enumeration.
125  *@SPI_RELATION_LABEL_FOR: Indicates an object is a label for one or more target objects.
126  *@SPI_RELATION_LABELED_BY: Indicates an object is labelled by one or more target objects.
127  *@SPI_RELATION_CONTROLLED_BY: Indicates an object controlled by one or more target objects.
128  *@SPI_RELATION_CONTROLLER_FOR: Indicates an object is an controller for one or more target objects.
129  *@SPI_RELATION_MEMBER_OF: Indicates an object is a member of a group of one or
130 more target objects.
131  *@SPI_RELATION_NODE_CHILD_OF: Indicates an object is a cell in a treetable which is displayed because a cell in the same column is expanded and identifies that cell.
132  *@SPI_RELATION_EXTENDED: This value indicates that a relation other than those pre-specified by this version of AT-SPI
133  * is present.
134  *@SPI_RELATION_FLOWS_TO: Indicates that the object has content that flows logically to another
135  *  AtkObject in a sequential way, (for instance text-flow).
136  *@SPI_RELATION_FLOWS_FROM: Indicates that the object has content that flows logically from
137  *  another AtkObject in a sequential way, (for instance text-flow).
138  *@SPI_RELATION_SUBWINDOW_OF: Indicates a subwindow attached to a component but otherwise has no connection in the UI heirarchy to that component.
139  *@SPI_RELATION_EMBEDS: Indicates that the object visually embeds
140  *  another object's content, i.e. this object's content flows around
141  *  another's content.
142  *@SPI_RELATION_EMBEDDED_BY: Inverse of %SPI_RELATION_EMBEDS, indicates that
143  *  this object's content is visualy embedded in another object.
144  *@SPI_RELATION_POPUP_FOR: Indicates that an object is a popup for another object.
145  *@SPI_RELATION_PARENT_WINDOW_OF: Indicates that an object is a parent window of another object.
146  *@SPI_RELATION_DESCRIBED_BY: Indicates that another object provides descriptive information about this object; more verbose than %SPI_RELATION_LABELLED_BY.
147  *@SPI_RELATION_DESCRIPTION_FOR: Indicates that an object provides descriptive information about another object; more verbose than %SPI_RELATION_LABEL_FOR.
148  *@SPI_RELATION_LAST_DEFINED: Do not use, this is an implementation detail used
149  *  to identify the size of this enumeration.
150  *
151  *Describes the type of the relation
152  **/
153 typedef enum
154 {
155   SPI_RELATION_NULL,
156   SPI_RELATION_LABEL_FOR,
157   SPI_RELATION_LABELED_BY,
158   SPI_RELATION_CONTROLLER_FOR,
159   SPI_RELATION_CONTROLLED_BY,
160   SPI_RELATION_MEMBER_OF,
161   SPI_RELATION_NODE_CHILD_OF,
162   SPI_RELATION_EXTENDED,
163   SPI_RELATION_FLOWS_TO,
164   SPI_RELATION_FLOWS_FROM,
165   SPI_RELATION_SUBWINDOW_OF,
166   SPI_RELATION_EMBEDS,
167   SPI_RELATION_EMBEDDED_BY,
168   SPI_RELATION_POPUP_FOR,
169   SPI_RELATION_PARENT_WINDOW_OF,
170   SPI_RELATION_DESCRIPTION_FOR,
171   SPI_RELATION_DESCRIBED_BY,
172   SPI_RELATION_LAST_DEFINED
173 } AccessibleRelationType;
174
175
176 /* don't change the order of these ! */
177 /**
178  *AccessibleCoordType:
179  *@SPI_COORD_TYPE_SCREEN: specifies xy coordinates relative to the screen
180  *@SPI_COORD_TYPE_WINDOW: specifies xy coordinates relative to an object's
181  * top-level window
182  *
183  *Specifies how xy coordinates are to be interpreted. Used by functions such
184  *as AccessibleComponent_getPosition() and AccessibleText_getCharacterExtents()
185  **/
186 typedef enum {
187   SPI_COORD_TYPE_SCREEN,
188   SPI_COORD_TYPE_WINDOW
189 } AccessibleCoordType;
190
191 /**
192  *AccessibleKeySynthType:
193  *@SPI_KEY_PRESS: Generates a keypress event (requires a subsequent #SPI_KEY_RELEASE event)
194  *@SPI_KEY_RELEASE: Generates a key-release event
195  *@SPI_KEY_PRESSRELEASE: Generates a key press/release event pair.
196  *@SPI_KEY_SYM: Injects a "keysym" event into the stream, as if a press/release pair occurred; allows 
197  * the user to specify the key via its symbolic name, as opposed to simulating a hardware press of a 
198  * specific key.
199  *@SPI_KEY_STRING: Injects one or more keysym events into the keyboard buffer, or directly inserts 
200  * a string value into the currently focussed text widget, if the widgets supports this.
201  * #SPI_KEY_STRING synthesis provides a shortcut for text substring insertion, and also allows the
202  * insertion of text which is not currently available via the current keyboard's keymap.
203  *
204  * Specifies the type of a generated event.
205  **/
206 typedef enum {
207   SPI_KEY_PRESS,
208   SPI_KEY_RELEASE, 
209   SPI_KEY_PRESSRELEASE,
210   SPI_KEY_SYM,
211   SPI_KEY_STRING
212 } AccessibleKeySynthType;
213
214 /**
215  *AccessibleKeyListenerSyncType:
216  *@SPI_KEYLISTENER_NOSYNC: Events may be delivered asynchronously, 
217  * which means in some cases they may already have been delivered to the 
218  * application before the AT client receives the notification.  
219  *@SPI_KEYLISTENER_SYNCHRONOUS: Events are delivered synchronously, before the 
220  * currently focussed application sees them.  
221  *@SPI_KEYLISTENER_CANCONSUME: Events may be consumed by the AT client.  Presumes and
222  * requires #SPI_KEYLISTENER_SYNCHRONOUS, incompatible with #SPI_KEYLISTENER_NOSYNC.
223  *@SPI_KEYLISTENER_ALL_WINDOWS: Events are received not from the application toolkit layer, but
224  * from the device driver or windowing system subsystem; such notifications are 'global' in the 
225  * sense that they are not broken or defeated by applications that participate poorly
226  * in the accessibility APIs, or not at all; however because of the intrusive nature of
227  * such snooping, it can have side-effects on certain older platforms.  If unconditional
228  * event notifications, even when inaccessible or "broken" applications have focus, are not
229  * required, it may be best to avoid this enum value/flag.
230  *
231  *Specified the tyupe of a key listener event.
232  * Certain of the values above can and should be bitwise-'OR'ed
233  * together, observing the compatibility limitations specified in the description of
234  * each value.  For instance, #SPI_KEYLISTENER_ALL_WINDOWS | #SPI_KEYLISTENER_CANCONSUME is
235  * a commonly used combination which gives the AT complete control over the delivery of matching
236  * events.  However, such filters should be used sparingly as they may have a negative impact on 
237  * system performance.
238  **/
239 typedef enum {
240   SPI_KEYLISTENER_NOSYNC = 0,
241   SPI_KEYLISTENER_SYNCHRONOUS = 1,
242   SPI_KEYLISTENER_CANCONSUME = 2,
243   SPI_KEYLISTENER_ALL_WINDOWS = 4
244 } AccessibleKeyListenerSyncType;
245
246
247 /**
248  *AccessibleStreamableContentSeekType
249  *@SPI_STREAM_SEEK_SET: seek from the 'top' of the streamable
250  *@SPI_STREAM_SEEK_CUR: seek from the current position in the stream
251  *@SPI_STREAM_SEEK_END: seek from the end of the stream (if known)
252  *
253  *The seek type for a specified offset in AccessibleStreamableContent_seek.
254  **/
255 typedef enum
256 {
257   SPI_STREAM_SEEK_SET,
258   SPI_STREAM_SEEK_CUR,
259   SPI_STREAM_SEEK_END
260 } AccessibleStreamableContentSeekType;
261
262 /**
263  * SPIException:
264  * @type: private
265  * @source: private
266  * @ev: private
267  * @code: private
268  * @desc: private
269  *
270  * An opaque object encapsulating information about thrown exceptions.
271  **/
272 typedef struct _SPIException SPIException;
273
274 /**
275  * SPIExceptionHandler:
276  * @err: points to the SPIException opaque object.
277  * @is_fatal: indicates whether the exception is a fatal error or not.
278  *
279  * A function type for functions to be called when exceptions occur.
280  *
281  * Returns 
282  **/
283 typedef SPIBoolean (*SPIExceptionHandler) (SPIException *err, SPIBoolean is_fatal);
284
285 /**
286  * SPIExceptionCode:
287  * @SPI_EXCEPTION_UNSPECIFIED: An exception of unknown type, or which doesn't fit the other types.
288  * @SPI_EXCEPTION_DISCONNECT: Communication with the object or service has been disconnected;
289  * this usually means that the object or service has died or exited.
290  * @SPI_EXCEPTION_NO_IMPL: The object or service is missing the implementation for a request.
291  * @SPI_EXCEPTION_IO: The communications channel has become corrupted, blocked, or is otherwise in a bad state.
292  * @SPI_EXCEPTION_BAD_DATA: The data received or sent over the interface has been identified as 
293  * improperly formatted or otherwise fails to match the expectations.
294  *
295  * Exception codes indicating what's gone wrong in an AT-SPI call.
296  **/
297 typedef enum {
298         SPI_EXCEPTION_UNSPECIFIED,
299         SPI_EXCEPTION_DISCONNECT,
300         SPI_EXCEPTION_NO_IMPL,
301         SPI_EXCEPTION_IO,
302         SPI_EXCEPTION_BAD_DATA
303 } SPIExceptionCode;
304
305 /**
306  * SPIExceptionType:
307  * @SPI_EXCEPTION_SOURCE_UNSPECIFIED: Don't know or can't tell where the problem is
308  * @SPI_EXCEPTION_SOURCE_ACCESSIBLE: The source of an event or query (i.e. an app) has thrown the exception.
309  * @SPI_EXCEPTION_SOURCE_REGISTRY: The AT-SPI registry has thrown the exception or cannot be reached.
310  * @SPI_EXCEPTION_SOURCE_DEVICE: The device event subsystem has encountered an error condition.
311  *
312  * The general source of the failure, i.e. whether the app, registry, or device system has encountered trouble.
313  **/
314 typedef enum {
315         SPI_EXCEPTION_SOURCE_UNSPECIFIED,
316         SPI_EXCEPTION_SOURCE_ACCESSIBLE,
317         SPI_EXCEPTION_SOURCE_REGISTRY,
318         SPI_EXCEPTION_SOURCE_DEVICE
319 } SPIExceptionType;
320
321 typedef unsigned long AccessibleKeyEventMask;
322 typedef unsigned long AccessibleDeviceEventMask;
323
324 /**
325  *AccessibleComponentLayer:
326  *@SPI_LAYER_INVALID: The layer cannot be determined or is somehow undefined.
327  *@SPI_LAYER_BACKGROUND: Component belongs to the destop background.
328  *@SPI_LAYER_CANVAS: Component is a canvas backdrop or drawing area.
329  *@SPI_LAYER_WIDGET: Component is a 'normal' widget.
330  *@SPI_LAYER_MDI: Component is drawn in the MDI layer and may have valid
331  *                         Z-information relative to other MDI-layer components.
332  *@SPI_LAYER_POPUP: Component is in the popup layer, above other widgets and
333  *                         MDI components.
334  *@SPI_LAYER_OVERLAY: Component is in the overlay plane - this value is reserved
335  *                         for future use.
336  *@SPI_LAYER_WINDOW: Component is in the window layer and have valid Z-information
337  *                   relative to other window-layer components.
338  *@SPI_LAYER_LAST_DEFINED: Used to determine the last valid value in the enum,
339  *                         should not be encountered.   
340  *
341  * Describes the layer of a component.
342  *
343  * These enumerated "layer values" are used when determining which UI
344  * rendering layer a component is drawn into, which can help in making
345  * determinations of when components occlude one another.
346  **/
347 typedef enum {
348     SPI_LAYER_INVALID,
349     SPI_LAYER_BACKGROUND,
350     SPI_LAYER_CANVAS,
351     SPI_LAYER_WIDGET,
352     SPI_LAYER_MDI,
353     SPI_LAYER_POPUP,
354     SPI_LAYER_OVERLAY,
355     SPI_LAYER_WINDOW,
356     SPI_LAYER_LAST_DEFINED      
357 } AccessibleComponentLayer;
358
359
360 /**
361  * AccessibleTextRange:
362  * @start: the first nominal character position within the range.
363  * @end: the first nominal character position following the range.
364  * @content: The actual text content between @start and @end, as a UTF-8 string.
365  *
366  * Structure which encapsulates a text range - must be associated with an
367  *          AccessibleText-implementing object.
368  **/
369 typedef struct _AccessibleTextRange
370 {
371   long int        start;
372   long int        end;
373   char           *contents;
374 } AccessibleTextRange;
375
376 /**
377  * AccessibleKeySet:
378  * @keysyms:
379  * @keycodes:
380  * @len:
381  *
382  * Structure containing identifying information about a set of keycode or
383  *        keysyms.
384  **/
385 typedef struct _AccessibleKeySet
386 {
387   unsigned long  *keysyms;
388   unsigned short *keycodes;
389   char          **keystrings;
390   short           len;
391 } AccessibleKeySet;
392
393 /*
394  * A special value for an AccessibleKeySet type, which tacitly
395  * includes all keycodes and keyvals for the specified modifier set.
396  */
397 #define SPI_KEYSET_ALL_KEYS NULL
398
399 typedef unsigned long AccessibleModifierMaskType;
400 /**
401  *AccessibleKeyMaskType:
402  *
403  *AccessibleKeyMaskType is a mask which is a set of key event modifiers
404  *which is specified in SPI_registerAccessibleKeystrokeListener.
405  **/
406
407 typedef AccessibleModifierMaskType AccessibleKeyMaskType;
408
409 typedef struct _AccessibleAttributeSet
410 {
411     int len;
412     char **attributes;
413 } AccessibleAttributeSet;
414
415 typedef struct _AccessibleRoleSet
416 {
417      int len;
418      AccessibleRole *roles;
419 } AccessibleRoleSet;
420
421
422
423 /* Basic SPI initialization and event loop function prototypes */
424
425 int              SPI_init         (void);
426 void             SPI_event_main   (void);
427 void             SPI_event_quit   (void);
428 SPIBoolean       SPI_eventIsReady (void);
429 AccessibleEvent *SPI_nextEvent    (SPIBoolean waitForEvent);
430 int              SPI_exit         (void);
431
432 /* Event Listener creation and support.  */
433
434 void                      SPI_freeAccessibleKeySet (
435                                                    AccessibleKeySet         *keyset);
436 AccessibleKeySet        * SPI_createAccessibleKeySet (
437                                                    int                       len,
438                                                    const char               *keysyms,
439                                                    short                    *keycodes,
440                                                    const char              **keystrings);
441 AccessibleEventListener * SPI_createAccessibleEventListener (
442                                                    AccessibleEventListenerCB callback,
443                                                    void                     *user_data);
444 SPIBoolean                AccessibleEventListener_addCallback (
445                                                    AccessibleEventListener  *listener,
446                                                    AccessibleEventListenerCB callback,
447                                                    void                     *user_data);
448 SPIBoolean                AccessibleEventListener_removeCallback (
449                                                    AccessibleEventListener  *listener,
450                                                    AccessibleEventListenerCB callback);
451 void                      AccessibleEventListener_unref (
452                                                    AccessibleEventListener  *listener);
453
454 /* Device Event Listener creation and support.  */
455
456 /* First four are deprecated in favor of the last four; really just a re-name */
457
458 AccessibleKeystrokeListener * SPI_createAccessibleKeystrokeListener (
459                                         AccessibleKeystrokeListenerCB callback,
460                                         void                         *user_data);
461 SPIBoolean                    AccessibleKeystrokeListener_addCallback (
462                                         AccessibleKeystrokeListener  *listener,
463                                         AccessibleKeystrokeListenerCB callback,
464                                         void                         *user_data);
465 SPIBoolean                    AccessibleKeystrokeListener_removeCallback (
466                                         AccessibleKeystrokeListener *listener,
467                                         AccessibleKeystrokeListenerCB callback);
468 void                          AccessibleKeystrokeListener_unref (
469                                         AccessibleKeystrokeListener *listener);
470
471 AccessibleDeviceListener   * SPI_createAccessibleDeviceListener (
472                                         AccessibleDeviceListenerCB callback,
473                                         void                      *user_data);
474 SPIBoolean                    AccessibleDeviceListener_addCallback (
475                                         AccessibleDeviceListener  *listener,
476                                         AccessibleDeviceListenerCB callback,
477                                         void                      *user_data);
478 SPIBoolean                    AccessibleDeviceListener_removeCallback (
479                                         AccessibleDeviceListener  *listener,
480                                         AccessibleDeviceListenerCB callback);
481 void                          AccessibleDeviceListener_unref (
482                                         AccessibleDeviceListener *listener);
483
484 /* Global functions serviced by the registry */
485
486 SPIBoolean SPI_registerGlobalEventListener           (
487                                        AccessibleEventListener *listener,
488                                        const char              *eventType);
489 SPIBoolean SPI_deregisterGlobalEventListener         (
490                                        AccessibleEventListener *listener,
491                                        const char              *eventType);
492 SPIBoolean SPI_deregisterGlobalEventListenerAll      (
493                                        AccessibleEventListener *listener);
494 SPIBoolean SPI_registerAccessibleKeystrokeListener   (
495                                        AccessibleKeystrokeListener *listener,
496                                        AccessibleKeySet             *keys,
497                                        AccessibleKeyMaskType         modmask,
498                                        AccessibleKeyEventMask        eventmask,
499                                        AccessibleKeyListenerSyncType sync_type);
500 SPIBoolean SPI_deregisterAccessibleKeystrokeListener (
501                                        AccessibleKeystrokeListener *listener,
502                                        AccessibleKeyMaskType        modmask);
503
504 SPIBoolean SPI_registerDeviceEventListener   (
505                                        AccessibleDeviceListener   *listener,
506                                        AccessibleDeviceEventMask   eventmask,
507                                        void                       *filter);
508 SPIBoolean SPI_deregisterDeviceEventListener (
509                                        AccessibleDeviceListener   *listener,
510                                        void                       *filter);
511
512 int         SPI_getDesktopCount                  (void);
513 Accessible *SPI_getDesktop                       (int i);
514 int         SPI_getDesktopList                   (Accessible ***desktop_list);
515 void        SPI_freeDesktopList                  (Accessible  **desktop_list);
516
517 SPIBoolean  SPI_generateKeyboardEvent            (long int                    keyval,
518                                                   char                       *keystring,
519                                                   AccessibleKeySynthType      synth_type);
520
521 SPIBoolean  SPI_generateMouseEvent               (long int x, long int y, char *name);
522
523 /* Accessible function prototypes  */
524
525 void                 Accessible_ref              (Accessible *obj);
526 void                 Accessible_unref            (Accessible *obj);
527 char *               Accessible_getName          (Accessible *obj);
528 char *               Accessible_getDescription   (Accessible *obj);
529 Accessible *         Accessible_getParent        (Accessible *obj);
530 long                 Accessible_getChildCount    (Accessible *obj);
531 Accessible *         Accessible_getChildAtIndex  (Accessible *obj,
532                                                   long int    childIndex);
533 long                 Accessible_getIndexInParent (Accessible *obj);
534 AccessibleRelation **Accessible_getRelationSet   (Accessible *obj);
535 AccessibleRole       Accessible_getRole          (Accessible *obj);
536 char *               Accessible_getRoleName      (Accessible *obj);
537 char *               Accessible_getLocalizedRoleName (Accessible *obj);
538 AccessibleStateSet * Accessible_getStateSet      (Accessible *obj);
539 AccessibleAttributeSet *Accessible_getAttributes (Accessible *obj);
540 AccessibleApplication *Accessible_getHostApplication (Accessible *obj);
541
542 /* Interface query methods */
543
544 SPIBoolean Accessible_isAction            (Accessible *obj);
545 SPIBoolean Accessible_isApplication       (Accessible *obj);
546 SPIBoolean Accessible_isCollection        (Accessible *obj);
547 SPIBoolean Accessible_isComponent         (Accessible *obj);
548 SPIBoolean Accessible_isDocument          (Accessible *obj);
549 SPIBoolean Accessible_isEditableText      (Accessible *obj);
550 SPIBoolean Accessible_isHypertext         (Accessible *obj);
551 SPIBoolean Accessible_isImage             (Accessible *obj);
552 SPIBoolean Accessible_isMatchRule         (Accessible *obj);
553 SPIBoolean Accessible_isSelection         (Accessible *obj);
554 SPIBoolean Accessible_isStreamableContent (Accessible *obj);
555 SPIBoolean Accessible_isTable             (Accessible *obj);
556 SPIBoolean Accessible_isText              (Accessible *obj);
557 SPIBoolean Accessible_isValue             (Accessible *obj);
558
559 AccessibleAction *            Accessible_getAction            (Accessible *obj);
560 AccessibleApplication *       Accessible_getApplication       (Accessible *obj);
561 AccessibleCollection *        Accessible_getCollection        (Accessible *obj);
562 AccessibleComponent *         Accessible_getComponent         (Accessible *obj);
563 AccessibleDocument *          Accessible_getDocument          (Accessible *obj);
564 AccessibleEditableText *      Accessible_getEditableText      (Accessible *obj);
565 AccessibleHypertext *         Accessible_getHypertext         (Accessible *obj);
566 AccessibleImage *             Accessible_getImage             (Accessible *obj);
567 AccessibleMatchRule *         Accessible_getMatchRule         (Accessible *obj);
568 AccessibleSelection *         Accessible_getSelection         (Accessible *obj);
569 AccessibleStreamableContent * Accessible_getStreamableContent (Accessible *obj);
570 AccessibleTable *             Accessible_getTable             (Accessible *obj);
571 AccessibleText *              Accessible_getText              (Accessible *obj);
572 AccessibleValue *             Accessible_getValue             (Accessible *obj);
573 AccessibleUnknown *           Accessible_queryInterface       (Accessible *obj,
574                                                    const char *interface_name);
575
576 /* AccessibleAction function prototypes  */
577
578 void       AccessibleAction_ref            (AccessibleAction *obj);
579 void       AccessibleAction_unref          (AccessibleAction *obj);
580 long       AccessibleAction_getNActions    (AccessibleAction *obj);
581 char      *AccessibleAction_getName        (AccessibleAction *obj,
582                                             long int          i);
583 char      *AccessibleAction_getDescription (AccessibleAction *obj,
584                                             long int          i);
585 SPIBoolean AccessibleAction_doAction       (AccessibleAction *obj,
586                                             long int          i);
587 char      *AccessibleAction_getKeyBinding  (AccessibleAction *obj,
588                                             long int          i);
589
590 /* AccessibleApplication function prototypes  */
591
592 void       AccessibleApplication_ref            (AccessibleApplication *obj);
593 void       AccessibleApplication_unref          (AccessibleApplication *obj);
594 char      *AccessibleApplication_getToolkitName (AccessibleApplication *obj);
595 char      *AccessibleApplication_getVersion     (AccessibleApplication *obj);
596 long       AccessibleApplication_getID          (AccessibleApplication *obj);
597 char      *AccessibleApplication_getLocale      (AccessibleApplication *obj, int lc_category);
598 SPIBoolean AccessibleApplication_pause          (AccessibleApplication *obj);
599 SPIBoolean AccessibleApplication_resume         (AccessibleApplication *obj);
600
601 /* AccessibleCollection function prototypes */
602 void       AccessibleCollection_ref (AccessibleCollection *obj);
603 void       AccessibleCollection_unref (AccessibleCollection *obj);
604 AccessibleMatchRule *
605 AccessibleCollection_createMatchRule (AccessibleCollection *obj,
606                                       AccessibleStateSet *states,
607                                       AccessibleCollectionMatchType statematchtype,
608                                       AccessibleAttributeSet *attributes,
609                                       AccessibleCollectionMatchType attributematchtype,
610                                       AccessibleRoleSet *roles,
611                                       AccessibleCollectionMatchType rolematchtype,
612                                       char *interfaces,
613                                       AccessibleCollectionMatchType interfacematchtype,
614                                       long int invert);
615 void
616 AccessibleCollection_freeMatchRule (AccessibleCollection *obj,
617                                     AccessibleMatchRule  *matchrule);
618 /* AccessibleComponent function prototypes */
619
620 void        AccessibleComponent_ref         (AccessibleComponent *obj);
621 void        AccessibleComponent_unref       (AccessibleComponent *obj);
622 SPIBoolean  AccessibleComponent_contains    (AccessibleComponent *obj,
623                                              long int             x,
624                                              long int             y,
625                                              AccessibleCoordType  ctype);
626 Accessible *AccessibleComponent_getAccessibleAtPoint (
627                                              AccessibleComponent *obj,
628                                              long int             x,
629                                              long int             y,
630                                              AccessibleCoordType  ctype);
631 void        AccessibleComponent_getExtents  (AccessibleComponent *obj,
632                                              long int            *x,
633                                              long int            *y,
634                                              long int            *width,
635                                              long int            *height,
636                                              AccessibleCoordType  ctype);
637 void        AccessibleComponent_getPosition (AccessibleComponent *obj,
638                                              long int            *x,
639                                              long int            *y,
640                                              AccessibleCoordType  ctype);
641 void        AccessibleComponent_getSize     (AccessibleComponent *obj,
642                                              long int            *width,
643                                              long int            *height);
644 AccessibleComponentLayer
645             AccessibleComponent_getLayer    (AccessibleComponent *obj);
646 SPIBoolean  AccessibleComponent_grabFocus   (AccessibleComponent *obj);
647 short       AccessibleComponent_getMDIZOrder(AccessibleComponent *obj);
648 double      AccessibleComponent_getAlpha    (AccessibleComponent *obj);
649
650 /* AccessibleDocument function prototypes  */
651
652 void        AccessibleDocument_ref               (AccessibleDocument *obj);
653 void        AccessibleDocument_unref             (AccessibleDocument *obj);
654 char       *AccessibleDocument_getLocale         (AccessibleDocument *obj);
655 char       *AccessibleDocument_getAttributeValue (AccessibleDocument *obj,
656                                                   char *attribute);
657 AccessibleAttributeSet *AccessibleDocument_getAttributes     (AccessibleDocument *obj);
658
659 /* AccessibleEditableText function prototypes  */
660
661 void
662 AccessibleEditableText_ref (AccessibleEditableText *obj);
663
664 void
665 AccessibleEditableText_unref (AccessibleEditableText *obj);
666
667 SPIBoolean
668 AccessibleEditableText_setAttributes (AccessibleEditableText *obj,
669                                       const char *attributes,
670                                       long int startOffset,
671                                       long int endOffset);
672
673 SPIBoolean
674 AccessibleEditableText_setTextContents (AccessibleEditableText *obj,
675                                         const char *newContents);
676
677 SPIBoolean
678 AccessibleEditableText_insertText (AccessibleEditableText *obj,
679                                    long int position,
680                                    const char *text,
681                                    long int length);
682
683 SPIBoolean
684 AccessibleEditableText_copyText (AccessibleText *obj,
685                                  long int startPos,
686                                  long int endPos);
687
688 SPIBoolean
689 AccessibleEditableText_cutText (AccessibleEditableText *obj,
690                                 long int startPos,
691                                 long int endPos);
692
693 SPIBoolean
694 AccessibleEditableText_deleteText (AccessibleEditableText *obj,
695                                    long int startPos,
696                                    long int endPos);
697
698 SPIBoolean
699 AccessibleEditableText_pasteText (AccessibleEditableText *obj,
700                                   long int position);
701
702 /*
703  *
704  * AccessibleHyperlink function prototypes
705  *
706  */
707 void
708 AccessibleHyperlink_ref (AccessibleHyperlink *obj);
709 void
710 AccessibleHyperlink_unref (AccessibleHyperlink *obj);
711
712 long
713 AccessibleHyperlink_getNAnchors (AccessibleHyperlink *obj);
714
715 char *
716 AccessibleHyperlink_getURI (AccessibleHyperlink *obj,
717                             long int i);
718
719 Accessible *
720 AccessibleHyperlink_getObject (AccessibleHyperlink *obj,
721                                long int i);
722
723 void
724 AccessibleHyperlink_getIndexRange (AccessibleHyperlink *obj,
725                                    long int *startIndex,
726                                    long int *endIndex);
727
728 SPIBoolean
729 AccessibleHyperlink_isValid (AccessibleHyperlink *obj);
730
731 /*
732  *
733  * AccessibleHypertext function prototypes
734  *
735  */
736
737 void
738 AccessibleHypertext_ref (AccessibleHypertext *obj);
739
740 void
741 AccessibleHypertext_unref (AccessibleHypertext *obj);
742
743 long
744 AccessibleHypertext_getNLinks (AccessibleHypertext *obj);
745
746 AccessibleHyperlink *
747 AccessibleHypertext_getLink (AccessibleHypertext *obj,
748                              long int linkIndex);
749
750 long
751 AccessibleHypertext_getLinkIndex (AccessibleHypertext *obj,
752                                   long int characterOffset);
753
754 /*
755  *
756  * AccessibleImage function prototypes
757  *
758  */
759
760 void
761 AccessibleImage_ref (AccessibleImage *obj);
762
763 void
764 AccessibleImage_unref (AccessibleImage *obj);
765
766 char *
767 AccessibleImage_getImageDescription (AccessibleImage *obj);
768
769 void
770 AccessibleImage_getImageSize (AccessibleImage *obj,
771                               long int *width,
772                               long int *height);
773
774 void
775 AccessibleImage_getImagePosition (AccessibleImage *obj,
776                                   long int *x,
777                                   long int *y,
778                                   AccessibleCoordType ctype);
779
780 void
781 AccessibleImage_getImageExtents (AccessibleImage *obj,
782                                  long int *x,
783                                  long int *y,
784                                  long int *width,
785                                  long int *height,
786                                  AccessibleCoordType ctype);
787 char *
788 AccessibleImage_getImageLocale  (AccessibleImage *obj);
789
790 /*
791  *
792  * AccessibleMatchRule function prototypes
793  *
794  */
795 void       AccessibleMatchRule_ref (AccessibleMatchRule *obj);
796 void       AccessibleMatchRule_unref (AccessibleMatchRule *obj);
797
798 /*
799  *
800  * AccessibleRelation function prototypes
801  *
802  */
803
804 void AccessibleRelation_ref   (AccessibleRelation *obj);
805 void AccessibleRelation_unref (AccessibleRelation *obj);
806
807 AccessibleRelationType
808 AccessibleRelation_getRelationType (AccessibleRelation *obj);
809
810 int
811 AccessibleRelation_getNTargets (AccessibleRelation *obj);
812
813 Accessible *
814 AccessibleRelation_getTarget (AccessibleRelation *obj, int i);
815
816
817 /*
818  *
819  * AccessibleSelection function prototypes
820  *
821  */
822
823 void AccessibleSelection_ref   (AccessibleSelection *obj);
824 void AccessibleSelection_unref (AccessibleSelection *obj);
825
826 long
827 AccessibleSelection_getNSelectedChildren (AccessibleSelection *obj);
828
829 Accessible *
830 AccessibleSelection_getSelectedChild (AccessibleSelection *obj,
831                                       long int selectedChildIndex);
832
833 SPIBoolean
834 AccessibleSelection_selectChild (AccessibleSelection *obj,
835                                  long int childIndex);
836
837 SPIBoolean
838 AccessibleSelection_deselectSelectedChild (AccessibleSelection *obj,
839                                            long int selectedChildIndex);
840
841 SPIBoolean
842 AccessibleSelection_deselectChild (AccessibleSelection *obj,
843                                    long int childIndex);
844
845 SPIBoolean
846 AccessibleSelection_isChildSelected (AccessibleSelection *obj,
847                                      long int childIndex);
848
849 SPIBoolean
850 AccessibleSelection_selectAll (AccessibleSelection *obj);
851
852 SPIBoolean
853 AccessibleSelection_clearSelection (AccessibleSelection *obj);
854
855
856 /*
857  *
858  * AccessibleStateSet function prototypes
859  *
860  */
861
862 void AccessibleStateSet_ref   (AccessibleStateSet *obj);
863 void AccessibleStateSet_unref (AccessibleStateSet *obj);
864
865 SPIBoolean
866 AccessibleStateSet_contains (AccessibleStateSet *obj,
867                              AccessibleState state);
868
869 void
870 AccessibleStateSet_add (AccessibleStateSet *obj,
871                         AccessibleState state);
872
873 void
874 AccessibleStateSet_remove (AccessibleStateSet *obj,
875                            AccessibleState state);
876
877 SPIBoolean
878 AccessibleStateSet_equals (AccessibleStateSet *obj,
879                            AccessibleStateSet *obj2);
880
881 AccessibleStateSet *
882 AccessibleStateSet_compare (AccessibleStateSet *obj,
883                             AccessibleStateSet *obj2);
884
885 SPIBoolean
886 AccessibleStateSet_isEmpty (AccessibleStateSet *obj);
887
888 void
889 AccessibleStreamableContent_ref (AccessibleStreamableContent *obj);
890 void
891 AccessibleStreamableContent_unref (AccessibleStreamableContent *obj);
892 char **
893 AccessibleStreamableContent_getContentTypes (AccessibleStreamableContent *obj);
894
895 void
896 AccessibleStreamableContent_freeContentTypesList (AccessibleStreamableContent *obj,
897                                                  char **content_types);
898 #define AccessibleStreamableContent_freeContentTypeList(a, b) AccessibleStreamableContent_freeContentTypesList(a,b)
899
900 SPIBoolean
901 AccessibleStreamableContent_open (AccessibleStreamableContent *obj,
902                                   const char *content_type);
903 SPIBoolean
904 AccessibleStreamableContent_close (AccessibleStreamableContent *obj);
905
906 long
907 AccessibleStreamableContent_seek (AccessibleStreamableContent *obj,
908                                   long int offset,
909                                   AccessibleStreamableContentSeekType seek_type);
910 SPIBoolean
911 AccessibleStreamableContent_read (AccessibleStreamableContent *obj,
912                                   void *buff,
913                                   long int nbytes,
914                                   unsigned int read_type);
915 /*
916  *
917  * AccessibleTable function prototypes
918  *
919  */
920
921 void AccessibleTable_ref   (AccessibleTable *obj);
922 void AccessibleTable_unref (AccessibleTable *obj);
923
924 Accessible *
925 AccessibleTable_getCaption (AccessibleTable *obj);
926
927 Accessible *
928 AccessibleTable_getSummary (AccessibleTable *obj);
929
930 long
931 AccessibleTable_getNRows (AccessibleTable *obj);
932
933 long
934 AccessibleTable_getNColumns (AccessibleTable *obj);
935
936 Accessible *
937 AccessibleTable_getAccessibleAt (AccessibleTable *obj,
938                                  long int row,
939                                  long int column);
940
941 long
942 AccessibleTable_getIndexAt (AccessibleTable *obj,
943                             long int row,
944                             long int column);
945
946 long
947 AccessibleTable_getRowAtIndex (AccessibleTable *obj,
948                                long int index);
949
950 long
951 AccessibleTable_getColumnAtIndex (AccessibleTable *obj,
952                                   long int index);
953
954 char *
955 AccessibleTable_getRowDescription (AccessibleTable *obj,
956                                    long int row);
957
958 char *
959 AccessibleTable_getColumnDescription (AccessibleTable *obj,
960                                       long int column);
961
962 long
963 AccessibleTable_getRowExtentAt (AccessibleTable *obj,
964                                 long int row,
965                                 long int column);
966
967 long
968 AccessibleTable_getColumnExtentAt (AccessibleTable *obj,
969                                    long int row,
970                                    long int column);
971
972 SPIBoolean
973 AccessibleTable_getRowColumnExtentsAtIndex (AccessibleTable *obj,
974                                             long int index, long int *row, long int *col, 
975                                             long int *row_extents, long int *col_extents, 
976                                             long int *is_selected);
977
978 Accessible *
979 AccessibleTable_getRowHeader (AccessibleTable *obj,
980                               long int row);
981
982 Accessible *
983 AccessibleTable_getColumnHeader (AccessibleTable *obj,
984                                  long int column);
985
986 long
987 AccessibleTable_getNSelectedRows (AccessibleTable *obj);
988
989 long
990 AccessibleTable_getSelectedRows (AccessibleTable *obj,
991                                  long int **selectedRows);
992
993 long
994 AccessibleTable_getNSelectedColumns (AccessibleTable *obj);
995
996 long
997 AccessibleTable_getSelectedColumns (AccessibleTable *obj,
998                                     long int **selectedColumns);
999
1000 SPIBoolean
1001 AccessibleTable_isRowSelected (AccessibleTable *obj,
1002                                long int row);
1003
1004 SPIBoolean
1005 AccessibleTable_isColumnSelected (AccessibleTable *obj,
1006                                   long int column);
1007
1008 SPIBoolean
1009 AccessibleTable_isSelected (AccessibleTable *obj,
1010                             long int row,
1011                             long int column);
1012
1013 SPIBoolean
1014 AccessibleTable_addRowSelection (AccessibleTable *obj,
1015                                  long int row);
1016 SPIBoolean
1017 AccessibleTable_addColumnSelection (AccessibleTable *obj,
1018                                     long int column);
1019
1020 SPIBoolean
1021 AccessibleTable_removeRowSelection (AccessibleTable *obj,
1022                                     long int row);
1023 SPIBoolean
1024 AccessibleTable_removeColumnSelection (AccessibleTable *obj,
1025                                        long int column);
1026
1027 /*
1028  *
1029  * AccessibleText function prototypes
1030  *
1031  */
1032
1033 void AccessibleText_ref   (AccessibleText *obj);
1034 void AccessibleText_unref (AccessibleText *obj);
1035
1036 long
1037 AccessibleText_getCharacterCount (AccessibleText *obj);
1038
1039 char *
1040 AccessibleText_getText (AccessibleText *obj,
1041                         long int startOffset,
1042                         long int endOffset);
1043
1044 long
1045 AccessibleText_getCaretOffset (AccessibleText *obj);
1046
1047 char *
1048 AccessibleText_getAttributes (AccessibleText *obj,
1049                                  long int offset,
1050                                  long int *startOffset,
1051                                  long int *endOffset);
1052
1053 char *
1054 AccessibleText_getDefaultAttributes (AccessibleText *obj);
1055
1056 SPIBoolean
1057 AccessibleText_setCaretOffset (AccessibleText *obj,
1058                                long int newOffset);
1059
1060 char *
1061 AccessibleText_getTextBeforeOffset (AccessibleText *obj,
1062                                     long int offset,
1063                                     AccessibleTextBoundaryType type,
1064                                     long int *startOffset,
1065                                     long int *endOffset);
1066
1067 char *
1068 AccessibleText_getTextAtOffset (AccessibleText *obj,
1069                                 long int offset,
1070                                 AccessibleTextBoundaryType type,
1071                                 long int *startOffset,
1072                                 long int *endOffset);
1073
1074 char *
1075 AccessibleText_getTextAfterOffset (AccessibleText *obj,
1076                                    long int offset,
1077                                    AccessibleTextBoundaryType type,
1078                                    long int *startOffset,
1079                                    long int *endOffset);
1080
1081 unsigned long
1082 AccessibleText_getCharacterAtOffset (AccessibleText *obj,
1083                                      long int offset);
1084
1085 void
1086 AccessibleText_getCharacterExtents (AccessibleText *obj,
1087                                     long int offset,
1088                                     long int *x,
1089                                     long int *y,
1090                                     long int *width,
1091                                     long int *height,
1092                                     AccessibleCoordType type);
1093
1094 void
1095 AccessibleText_getRangeExtents (AccessibleText *obj,
1096                                 long int startOffset,
1097                                 long int endOffset,
1098                                 long int *x,
1099                                 long int *y,
1100                                 long int *width,
1101                                 long int *height,
1102                                 AccessibleCoordType type);
1103
1104 AccessibleTextRange **
1105 AccessibleText_getBoundedRanges (AccessibleText *obj,
1106                                  long int x,
1107                                  long int y,
1108                                  long int width,
1109                                  long int height,
1110                                  AccessibleCoordType type,
1111                                  AccessibleTextClipType clipTypeX,
1112                                  AccessibleTextClipType clipTypeY);
1113
1114 void
1115 AccessibleTextRange_freeRanges (AccessibleTextRange **ranges);
1116
1117 long
1118 AccessibleText_getOffsetAtPoint (AccessibleText *obj,
1119                                  long int x,
1120                                  long int y,
1121                                  AccessibleCoordType type);
1122
1123 long
1124 AccessibleText_getNSelections (AccessibleText *obj);
1125
1126 void
1127 AccessibleText_getSelection (AccessibleText *obj,
1128                              long int selectionNum,
1129                              long int *startOffset,
1130                              long int *endOffset);
1131
1132
1133 SPIBoolean
1134 AccessibleText_addSelection (AccessibleText *obj,
1135                              long int startOffset,
1136                              long int endOffset);
1137
1138 SPIBoolean
1139 AccessibleText_removeSelection (AccessibleText *obj,
1140                                 long int selectionNum);
1141
1142 SPIBoolean
1143 AccessibleText_setSelection (AccessibleText *obj,
1144                              long int selectionNum,
1145                              long int startOffset,
1146                              long int endOffset);
1147 AccessibleAttributeSet *
1148 AccessibleText_getAttributeRun  (AccessibleText *obj,
1149                                  long int offset,
1150                                  long int *startOffset,
1151                                  long int *endOffset,
1152                                  long int includeDefaults);
1153 AccessibleAttributeSet *
1154 AccessibleText_getDefaultAttributeSet (AccessibleText *obj);
1155
1156 /* AccessibleValue Function Prototypes:  */
1157
1158 void       AccessibleValue_ref             (AccessibleValue *obj);
1159 void       AccessibleValue_unref           (AccessibleValue *obj);
1160 double     AccessibleValue_getMinimumValue (AccessibleValue *obj);
1161 double     AccessibleValue_getCurrentValue (AccessibleValue *obj);
1162 double     AccessibleValue_getMaximumValue (AccessibleValue *obj);
1163 SPIBoolean AccessibleValue_setCurrentValue (AccessibleValue *obj,
1164                                             double           newValue);
1165 double     AccessibleValue_getMinimumIncrement (AccessibleValue *obj);
1166
1167 /* Persistance and lifecycle control for AccessibleEvents. */
1168 SPIBoolean AccessibleEvent_ref (const AccessibleEvent *e);
1169 void AccessibleEvent_unref (const AccessibleEvent *e);
1170
1171 /*
1172  * Prototypes for accessor functions, to obtain context
1173  * information for accessible events.
1174  */
1175
1176 char*                  AccessibleEvent_getSourceName (const AccessibleEvent *e);
1177 AccessibleRole         AccessibleEvent_getSourceRole (const AccessibleEvent *e);
1178 AccessibleApplication* AccessibleEvent_getSourceApplication (const AccessibleEvent *e);
1179 SPIBoolean             AccessibleEvent_getSourceDetails (const AccessibleEvent *e, char **name, 
1180                                                          AccessibleRole *role, 
1181                                                          AccessibleApplication **app);
1182
1183 char*        AccessibleTextChangedEvent_getChangeString (const AccessibleEvent *e);
1184 Accessible * AccessibleChildChangedEvent_getChildAccessible (const AccessibleEvent *e);
1185
1186 Accessible * AccessibleParentChangedEvent_getParentAccessible (const AccessibleEvent *e);
1187
1188 char*        AccessibleTextSelectionChangedEvent_getSelectionString (const AccessibleEvent *e);
1189
1190 char*        AccessibleWindowEvent_getTitleString (const AccessibleEvent *e);
1191
1192 Accessible * AccessibleActiveDescendantChangedEvent_getActiveDescendant (const AccessibleEvent *e);
1193
1194 Accessible * AccessibleTableSummaryChangedEvent_getSummaryAccessible (const AccessibleEvent *e); 
1195
1196 Accessible * AccessibleTableHeaderChangedEvent_getHeaderAccessible (const AccessibleEvent *e);
1197
1198 char *       AccessibleTableCaptionChangedEvent_getCaptionString (const AccessibleEvent *e);
1199
1200 char *       AccessibleTableRowDescriptionChangedEvent_getDescriptionString (const AccessibleEvent *e);
1201
1202 char *       AccessibleTableColumnDescriptionChangedEvent_getDescriptionString (const AccessibleEvent *e);
1203
1204 char *       AccessibleDescriptionChangedEvent_getDescriptionString (const AccessibleEvent *e);
1205
1206 char *       AccessibleNameChangedEvent_getNameString (const AccessibleEvent *e);
1207 SPIRect *    AccessibleBoundsChangedEvent_getNewBounds (const AccessibleEvent *e);
1208
1209 /* Misc methods and error handling */
1210 void SPI_freeString (char *s);
1211
1212 char* SPI_dupString (char *s);
1213
1214 void SPI_freeRect (SPIRect *r);
1215
1216 SPIBoolean SPI_exceptionHandlerPush (SPIExceptionHandler *handler);
1217
1218 SPIExceptionHandler* SPI_exceptionHandlerPop (void);
1219
1220 SPIExceptionType SPIException_getSourceType (SPIException *err);
1221
1222 SPIExceptionCode SPIException_getExceptionCode (SPIException *err);
1223
1224 Accessible* SPIAccessibleException_getSource (SPIException *err);
1225
1226 char* SPIException_getDescription (SPIException *err);
1227
1228 #ifdef  __cplusplus
1229 }
1230 #endif
1231
1232 #endif