4 #include <glib/gmacros.h>
6 #include <cspi/spi-impl.h>
8 * Definitions for AccessibleRole, AccessibleState,
9 * AccessibleEvent, and event listeners.
11 #include <cspi/spi-roletypes.h>
12 #include <cspi/spi-statetypes.h>
13 #include <cspi/spi-listener.h>
16 * Auxiliary typedefs and mask definitions
18 #include <libspi/keymasks.h>
23 * Enumerated type for text boundary types
27 SPI_TEXT_BOUNDARY_CHAR,
28 SPI_TEXT_BOUNDARY_CURSOR_POS,
29 SPI_TEXT_BOUNDARY_WORD_START,
30 SPI_TEXT_BOUNDARY_WORD_END,
31 SPI_TEXT_BOUNDARY_SENTENCE_START,
32 SPI_TEXT_BOUNDARY_SENTENCE_END,
33 SPI_TEXT_BOUNDARY_LINE_START,
34 SPI_TEXT_BOUNDARY_LINE_END,
35 SPI_TEXT_BOUNDARY_ATTRIBUTE_RANGE
36 } AccessibleTextBoundaryType;
40 * Enumerated type for relation types
46 SPI_RELATION_LABEL_FOR,
47 SPI_RELATION_LABELED_BY,
48 SPI_RELATION_CONTROLLER_FOR,
49 SPI_RELATION_CONTROLLED_BY,
50 SPI_RELATION_MEMBER_OF
51 } AccessibleRelationType;
54 /* don't change the order of these ! */
56 SPI_COORD_TYPE_SCREEN,
58 } AccessibleCoordType;
65 } AccessibleKeySynthType;
68 SPI_KEYLISTENER_NOSYNC = 0,
69 SPI_KEYLISTENER_SYNCHRONOUS = 1,
70 SPI_KEYLISTENER_CANCONSUME = 2,
71 SPI_KEYLISTENER_ALL_WINDOWS = 4
72 } AccessibleKeyListenerSyncType;
74 typedef unsigned long AccessibleKeyEventMask;
83 * Structure containing identifying information about a set of keycode or
86 typedef struct _AccessibleKeySet
88 unsigned long *keysyms;
89 unsigned short *keycodes;
94 * SPI_KEYSET_ALL_KEYS:
95 * @SPI_KEYSET_ALL_KEYS: A special value for an AccessibleKeySet type, which tacitly
96 * includes all keycodes and keyvals for the specified modifier set.
98 #define SPI_KEYSET_ALL_KEYS NULL
100 typedef unsigned long AccessibleKeyMaskType;
104 * Basic SPI initialization and event loop function prototypes
111 * Connects to the accessibility registry and initializes the SPI.
113 * Returns: 0 on success, otherwise an integer error code.
120 * @isGNOMEApp: a #boolean indicating whether the client of the SPI
121 * will use the Gnome event loop or not.
123 * Starts/enters the main event loop for the SPI services.
125 * (NOTE: This method does not return control, it is exited via a call to exit()
126 * from within an event handler).
130 SPI_event_main (boolean isGNOMEApp);
133 * SPI_event_is_ready:
135 * Checks to see if an SPI event is waiting in the event queue.
136 * Used by clients that don't wish to use SPI_event_main().
137 * Not Yet Implemented.
139 * Returns: #TRUE if an event is waiting, otherwise #FALSE.
148 * Gets the next event in the SPI event queue; blocks if no event
150 * Used by clients that don't wish to use SPI_event_main().
151 * Not Yet Implemented.
153 * Returns: the next #AccessibleEvent in the SPI event queue.
157 SPI_nextEvent (boolean waitForEvent);
162 * Disconnects from the Accessibility Registry and releases resources.
163 * Not Yet Implemented.
170 * Event Listener creation and support.
174 * createAccessibleEventListener:
175 * @callback : an #AccessibleEventListenerCB callback function, or NULL.
177 * Create a new #AccessibleEventListener with a specified callback function.
179 * Returns: a pointer to a newly-created #AccessibleEventListener.
182 AccessibleEventListener *
183 createAccessibleEventListener (AccessibleEventListenerCB callback);
186 * AccessibleEventListener_addCallback:
187 * @listener: the #AccessibleEventListener instance to modify.
188 * @callback: an #AccessibleEventListenerCB function pointer.
190 * Add an in-process callback function to an existing AccessibleEventListener.
192 * Returns: #TRUE if successful, otherwise #FALSE.
196 AccessibleEventListener_addCallback (AccessibleEventListener *listener,
197 AccessibleEventListenerCB callback);
200 * AccessibleEventListener_removeCallback:
201 * @listener: the #AccessibleEventListener instance to modify.
202 * @callback: an #AccessibleEventListenerCB function pointer.
204 * Remove an in-process callback function from an existing AccessibleEventListener.
206 * Returns: #TRUE if successful, otherwise #FALSE.
210 AccessibleEventListener_removeCallback (AccessibleEventListener *listener,
211 AccessibleEventListenerCB callback);
214 * createAccessibleKeystrokeListener:
215 * @callback : an #AccessibleKeystrokeListenerCB callback function, or NULL.
217 * Create a new #AccessibleKeystrokeListener with a specified callback function.
219 * Returns: a pointer to a newly-created #AccessibleKeystrokeListener.
222 AccessibleKeystrokeListener *
223 createAccessibleKeystrokeListener (AccessibleKeystrokeListenerCB callback);
226 * KeystrokeListener_addCallback:
227 * @listener: the #KeystrokeListener instance to modify.
228 * @callback: an #KeystrokeListenerCB function pointer.
230 * Add an in-process callback function to an existing #KeystrokeListener.
232 * Returns: #TRUE if successful, otherwise #FALSE.
236 AccessibleKeystrokeListener_addCallback (AccessibleKeystrokeListener *listener,
237 AccessibleKeystrokeListenerCB callback);
240 * AccessibleKeystrokeListener_removeCallback:
241 * @listener: the #AccessibleKeystrokeListener instance to modify.
242 * @callback: an #AccessibleKeystrokeListenerCB function pointer.
244 * Remove an in-process callback function from an existing #AccessibleKeystrokeListener.
246 * Returns: #TRUE if successful, otherwise #FALSE.
250 AccessibleKeystrokeListener_removeCallback (AccessibleKeystrokeListener *listener,
251 AccessibleKeystrokeListenerCB callback);
255 * Global functions serviced by the registry
260 * registerGlobalEventListener:
261 * @listener: the #AccessibleEventListener to be registered against an event type.
262 * @callback: a character string indicating the type of events for which
263 * notification is requested. Format is
264 * EventClass:major_type:minor_type:detail
265 * where all subfields other than EventClass are optional.
266 * EventClasses include "Focus", "Window", "Mouse",
267 * and toolkit events (e.g. "Gtk", "AWT").
268 * Examples: "focus:", "Gtk:GtkWidget:button_press_event".
270 * NOTE: this string may be UTF-8, but should not contain byte value 56 (ascii ':'),
271 * except as a delimiter, since non-UTF-8 string delimiting
272 * functions are used internally. In general, listening to
273 * toolkit-specific events is not recommended.
275 * Add an in-process callback function to an existing AccessibleEventListener.
277 * Returns: #TRUE if successful, otherwise #FALSE.
281 registerGlobalEventListener (AccessibleEventListener *listener,
284 deregisterGlobalEventListener (AccessibleEventListener *listener,
287 deregisterGlobalEventListenerAll (AccessibleEventListener *listener);
293 * Get the number of virtual desktops.
294 * NOTE: currently multiple virtual desktops are not implemented, this
295 * function always returns '1'.
297 * Returns: an integer indicating the number of active virtual desktops.
305 * @i: an integer indicating which of the accessible desktops is to be returned.
307 * Get the virtual desktop indicated by index @i.
308 * NOTE: currently multiple virtual desktops are not implemented, this
309 * function always returns '1'.
311 * Returns: a pointer to the 'i-th' virtual desktop's #Accessible representation.
319 * @list: a pointer to an array of #Accessible objects.
321 * Get the list of virtual desktops. On return, @list will point
322 * to a newly-created array of virtual desktop pointers.
323 * It is the responsibility of the caller to free this array when
324 * it is no longer needed.
326 * Not Yet Implemented.
328 * Returns: an integer indicating how many virtual desktops have been
329 * placed in the list pointed to by parameter @list.
332 getDesktopList (Accessible **list);
335 * registerAccessibleKeystrokeListener:
336 * @listener: a pointer to the #AccessibleKeystrokeListener for which
337 * keystroke events are requested.
339 * [Partially Implemented.]
343 registerAccessibleKeystrokeListener (AccessibleKeystrokeListener *listener,
344 AccessibleKeySet *keys,
345 AccessibleKeyMaskType modmask,
346 AccessibleKeyEventMask eventmask,
347 AccessibleKeyListenerSyncType sync_type);
350 deregisterAccessibleKeystrokeListener (AccessibleKeystrokeListener *listener,
351 AccessibleKeyMaskType modmask);
355 * @keyval: a #long integer indicating the keycode or keysym of the key event
357 * @synth_type: a #AccessibleKeySynthType flag indicating whether @keyval
358 * is to be interpreted as a keysym rather than a keycode
359 * (SPI_KEYSYM) and whether to synthesize
360 * SPI_KEY_PRESS, SPI_KEY_RELEASE, or both (SPI_KEY_PRESSRELEASE).
362 * Synthesize a keyboard event (as if a hardware keyboard event occurred in the
363 * current UI context).
367 generateKeyEvent (long int keyval, AccessibleKeySynthType synth_type);
370 * generateMouseEvent:
371 * @x: a #long int indicating the screen x coordinate of the mouse event.
372 * @y: a #long int indicating the screen y coordinate of the mouse event.
373 * @name: a string indicating which mouse event to be synthesized
374 * (e.g. "button1", "button2", "mousemove").
376 * Synthesize a mouse event at a specific screen coordinate.
377 * Not Yet Implemented.
381 generateMouseEvent (long int x, long int y, char *name);
385 * Accessible function prototypes
391 * @obj: a pointer to the #Accessible object on which to operate.
393 * Increment the reference count for an #Accessible object.
395 * Returns: (no return code implemented yet).
399 Accessible_ref (Accessible *obj);
403 * @obj: a pointer to the #Accessible object on which to operate.
405 * Decrement the reference count for an #Accessible object.
407 * Returns: (no return code implemented yet).
411 Accessible_unref (Accessible *obj);
414 * Accessible_getName:
415 * @obj: a pointer to the #Accessible object on which to operate.
417 * Get the name of an #Accessible object.
419 * Returns: a UTF-8 string indicating the name of the #Accessible object.
423 Accessible_getName (Accessible *obj);
426 * Accessible_getDescription:
427 * @obj: a pointer to the #Accessible object on which to operate.
429 * Get the description of an #Accessible object.
431 * Returns: a UTF-8 string describing the #Accessible object.
435 Accessible_getDescription (Accessible *obj);
438 * Accessible_getParent:
439 * @obj: a pointer to the #Accessible object to query.
441 * Get an #Accessible object's parent container.
443 * Returns: a pointer to the #Accessible object which contains the given
444 * #Accessible instance, or NULL if the @obj has no parent container.
448 Accessible_getParent (Accessible *obj);
451 * Accessible_getChildCount:
452 * @obj: a pointer to the #Accessible object on which to operate.
454 * Get the number of children contained by an #Accessible object.
456 * Returns: a #long indicating the number of #Accessible children
457 * contained by an #Accessible object.
461 Accessible_getChildCount (Accessible *obj);
464 * Accessible_getChildAtIndex:
466 * @obj: a pointer to the #Accessible object on which to operate.
467 * @childIndex: a #long indicating which child is specified.
469 * Get the #Accessible child of an #Accessible object at a given index.
471 * Returns: a pointer to the #Accessible child object at index
476 Accessible_getChildAtIndex (Accessible *obj,
477 long int childIndex);
480 * Accessible_getIndexInParent:
482 * @obj: a pointer to the #Accessible object on which to operate.
484 * Get the index of an #Accessible object in its containing #Accessible.
486 * Returns: a #long indicating the index of the #Accessible object
487 * in its parent (i.e. containing) #Accessible instance,
488 * or -1 if @obj has no containing parent.
492 Accessible_getIndexInParent (Accessible *obj);
495 * Accessible_getRelationSet:
496 * @obj: a pointer to the #Accessible object on which to operate.
498 * Not Yet Implemented.
500 * Returns: a pointer to an array of #AccessibleRelations.
503 AccessibleRelation **
504 Accessible_getRelationSet (Accessible *obj);
507 * Accessible_getRole:
508 * @obj: a pointer to the #Accessible object on which to operate.
510 * Get the UI role of an #Accessible object.
512 * Returns: a UTF-8 string indicating the UI role of the #Accessible object.
516 Accessible_getRole (Accessible *obj);
519 * Accessible_getStateSet:
520 * @obj: a pointer to the #Accessible object on which to operate.
522 * Not Yet Implemented.
524 * Returns: a pointer to an #AccessibleStateSet representing the object's current state.
528 Accessible_getStateSet (Accessible *obj);
530 /* Interface query methods */
533 * Accessible_isAction:
534 * @obj: a pointer to the #Accessible instance to query.
536 * Query whether the specified #Accessible implements #AccessibleAction.
538 * Returns: #TRUE if @obj implements the #AccessibleAction interface,
542 Accessible_isAction (Accessible *obj);
545 * Accessible_isComponent:
546 * @obj: a pointer to the #Accessible instance to query.
548 * Query whether the specified #Accessible implements #AccessibleComponent.
550 * Returns: #TRUE if @obj implements the #AccessibleComponent interface,
554 Accessible_isComponent (Accessible *obj);
557 * Accessible_isEditableText:
558 * @obj: a pointer to the #Accessible instance to query.
560 * Query whether the specified #Accessible implements #AccessibleEditableText.
562 * Returns: #TRUE if @obj implements the #AccessibleEditableText interface,
566 Accessible_isEditableText (Accessible *obj);
569 * Accessible_isHypertext:
570 * @obj: a pointer to the #Accessible instance to query.
572 * Query whether the specified #Accessible implements #AccessibleHypertext.
574 * Returns: #TRUE if @obj implements the #AccessibleHypertext interface,
578 Accessible_isHypertext (Accessible *obj);
581 * Accessible_isImage:
582 * @obj: a pointer to the #Accessible instance to query.
584 * Query whether the specified #Accessible implements #AccessibleImage.
586 * Returns: #TRUE if @obj implements the #AccessibleImage interface,
590 Accessible_isImage (Accessible *obj);
593 * Accessible_isSelection:
594 * @obj: a pointer to the #Accessible instance to query.
596 * Query whether the specified #Accessible implements #AccessibleSelection.
598 * Returns: #TRUE if @obj implements the #AccessibleSelection interface,
602 Accessible_isSelection (Accessible *obj);
605 * Accessible_isTable:
606 * @obj: a pointer to the #Accessible instance to query.
608 * Query whether the specified #Accessible implements #AccessibleTable.
610 * Returns: #TRUE if @obj implements the #AccessibleTable interface,
614 Accessible_isTable (Accessible *obj);
618 * @obj: a pointer to the #Accessible instance to query.
620 * Query whether the specified #Accessible implements #AccessibleText.
622 * Returns: #TRUE if @obj implements the #AccessibleText interface,
626 Accessible_isText (Accessible *obj);
629 Accessible_getAction (Accessible *obj);
632 * Accessible_getComponent:
633 * @obj: a pointer to the #Accessible instance to query.
635 * Get the #AccessibleComponent interface for an #Accessible.
637 * Returns: a pointer to an #AccessibleComponent interface instance, or
638 * NULL if @obj does not implement #AccessibleComponent.
640 AccessibleComponent *
641 Accessible_getComponent (Accessible *obj);
644 * Accessible_getEditableText:
646 * Not Yet Implemented.
649 AccessibleEditableText *
650 Accessible_getEditableText (Accessible *obj);
653 * Accessible_getHypertext:
655 * Not Yet Implemented.
658 AccessibleHypertext *
659 Accessible_getHypertext (Accessible *obj);
662 * Accessible_getImage:
664 * Not Yet Implemented.
668 Accessible_getImage (Accessible *obj);
671 * Accessible_getSelection:
673 * Not Yet Implemented.
676 AccessibleSelection *
677 Accessible_getSelection (Accessible *obj);
680 * Accessible_getTable:
682 * Not Yet Implemented.
686 Accessible_getTable (Accessible *obj);
689 * Accessible_getText:
691 * Not Yet Implemented.
695 Accessible_getText (Accessible *obj);
698 * Accessible_queryInterface:
699 * @obj: a pointer to the #Accessible instance to query.
700 * @interface_name: a UTF-8 character string specifiying the requested interface.
702 * Query an #Accessible object to for a named interface.
704 * Returns: an instance of the named interface object, if it is implemented
705 * by @obj, or NULL otherwise.
709 Accessible_queryInterface (Accessible *obj, char *interface_name);
713 * AccessibleAction function prototypes
718 AccessibleAction_ref (AccessibleAction *obj);
721 AccessibleAction_unref (AccessibleAction *obj);
724 AccessibleAction_getNActions (AccessibleAction *obj);
727 * AccessibleAction_getName:
728 * @obj: a pointer to the #AccessibleAction implementor to query.
729 * @i: a long integer indicating which action to query.
731 * Get the name of the '@i-th' action invokable on an
732 * object implementing #AccessibleAction.
734 * Returns: the 'event type' name of the action, as a UTF-8 string.
738 AccessibleAction_getName (AccessibleAction *obj, long int i);
741 * AccessibleAction_getDescription:
742 * @obj: a pointer to the #AccessibleAction to query.
743 * @i: a long integer indicating which action to query.
745 * Get the description of '@i-th' action invokable on an
746 * object implementing #AccessibleAction.
748 * Returns: a UTF-8 string describing the '@i-th' invokable action.
752 AccessibleAction_getDescription (AccessibleAction *obj,
756 AccessibleAction_doAction (AccessibleAction *obj,
760 * AccessibleAction_getKeybinding:
761 * @obj: a pointer to the #AccessibleAction implementor to query.
762 * @i: a long integer indicating which action to query.
764 * Get the keybindings for the @i-th action invokable on an
765 * object implementing #AccessibleAction, if any are defined.
767 * Returns: a UTF-8 string which can be parsed to determine the @i-th
768 * invokable action's keybindings.
772 AccessibleAction_getKeyBinding (AccessibleAction *obj,
777 * AccessibleApplication function prototypes
782 * AccessibleApplication_unref:
783 * @obj: a pointer to the #AccessibleApplication on which to operate.
785 * Decrement the reference count for an #AccessibleApplication.
787 * Returns: (no return code implemented yet).
791 AccessibleApplication_ref (AccessibleApplication *obj);
794 * AccessibleApplication_unref:
795 * @obj: a pointer to the #AccessibleApplication object on which to operate.
797 * Decrement the reference count for an #AccessibleApplication.
799 * Returns: (no return code implemented yet).
803 AccessibleApplication_unref (AccessibleApplication *obj);
806 * AccessibleApplication_getToolkitName:
807 * @obj: a pointer to the #AccessibleApplication to query.
809 * Get the name of the UI toolkit used by an #AccessibleApplication.
811 * Returns: a UTF-8 string indicating which UI toolkit is
812 * used by an application.
816 AccessibleApplication_getToolkitName (AccessibleApplication *obj);
819 * AccessibleApplication_getVersion:
820 * @obj: a pointer to the #AccessibleApplication being queried.
822 * Get the version of the at-spi bridge exported by an
823 * #AccessibleApplication instance.
825 * Returns: a UTF-8 string indicating the application's
830 AccessibleApplication_getVersion (AccessibleApplication *obj);
833 * AccessibleApplication_getID:
834 * @obj: a pointer to the #AccessibleApplication being queried.
836 * Get the unique ID assigned by the Registry to an
837 * #AccessibleApplication instance.
838 * (Not Yet Implemented by the registry).
840 * Returns: a unique #long integer associated with the application
841 * by the Registry, or 0 if the application is not registered.
844 AccessibleApplication_getID (AccessibleApplication *obj);
847 * AccessibleApplication_pause:
848 * @obj: a pointer to the #Accessible object on which to operate.
850 * Attempt to pause the application (used when client event queue is
852 * Not Yet Implemented.
854 * Returns: #TRUE if the application was paused successfully, #FALSE otherwise.
858 AccessibleApplication_pause (AccessibleApplication *obj);
861 * AccessibleApplication_resume:
862 * @obj: a pointer to the #Accessible object on which to operate.
864 * Attempt to resume the application (used after #AccessibleApplication_pause).
865 * Not Yet Implemented.
867 * Returns: #TRUE if application processing resumed successfully, #FALSE otherwise.
871 AccessibleApplication_resume (AccessibleApplication *obj);
875 * AccessibleComponent function prototypes
880 AccessibleComponent_ref (AccessibleComponent *obj);
883 AccessibleComponent_unref (AccessibleComponent *obj);
886 AccessibleComponent_contains (AccessibleComponent *obj,
889 AccessibleCoordType ctype);
892 AccessibleComponent_getAccessibleAtPoint (AccessibleComponent *obj,
895 AccessibleCoordType ctype);
898 * AccessibleComponent_getExtents:
899 * @obj: a pointer to the #AccessibleComponent to query.
900 * @x: a pointer to a #long into which the minimum x coordinate will be returned.
901 * @y: a pointer to a #long into which the minimum y coordinate will be returned.
902 * @width: a pointer to a #long into which the x extents (width) will be returned.
903 * @height: a pointer to a #long into which the y extents (height) will be returned.
904 * @ctype: the desired coordinate system into which to return the results,
905 * (e.g. COORD_TYPE_WINDOW, COORD_TYPE_SCREEN).
907 * Get the bounding box of the specified #AccessibleComponent.
911 AccessibleComponent_getExtents (AccessibleComponent *obj,
916 AccessibleCoordType ctype);
919 AccessibleComponent_getPosition (AccessibleComponent *obj,
922 AccessibleCoordType ctype);
925 AccessibleComponent_getSize (AccessibleComponent *obj,
930 AccessibleComponent_grabFocus (AccessibleComponent *obj);
934 * AccessibleEditableText function prototypes
939 AccessibleEditableText_ref (AccessibleEditableText *obj);
942 AccessibleEditableText_unref (AccessibleEditableText *obj);
945 AccessibleEditableText_setAttributes (AccessibleEditableText *obj,
946 const char *attributes,
947 long int startOffset,
951 AccessibleEditableText_setTextContents (AccessibleEditableText *obj,
952 const char *newContents);
955 AccessibleEditableText_insertText (AccessibleEditableText *obj,
961 AccessibleEditableText_copyText (AccessibleText *obj,
966 AccessibleEditableText_cutText (AccessibleEditableText *obj,
971 AccessibleEditableText_deleteText (AccessibleEditableText *obj,
976 AccessibleEditableText_pasteText (AccessibleEditableText *obj,
981 * AccessibleHyperlink function prototypes
986 AccessibleHyperlink_getNAnchors (AccessibleHyperlink *obj);
989 AccessibleHyperlink_getURI (AccessibleHyperlink *obj,
993 AccessibleHyperlink_getObject (AccessibleHyperlink *obj,
997 AccessibleHyperlink_getIndexRange (AccessibleHyperlink *obj,
998 long int *startIndex,
1002 AccessibleHyperlink_isValid (AccessibleHyperlink *obj);
1006 * AccessibleHypertext function prototypes
1011 AccessibleHypertext_ref (AccessibleHypertext *obj);
1014 AccessibleHypertext_unref (AccessibleHypertext *obj);
1017 AccessibleHypertext_getNLinks (AccessibleHypertext *obj);
1019 AccessibleHyperlink *
1020 AccessibleHypertext_getLink (AccessibleHypertext *obj,
1021 long int linkIndex);
1024 AccessibleHypertext_getLinkIndex (AccessibleHypertext *obj,
1025 long int characterOffset);
1029 * AccessibleImage function prototypes
1034 AccessibleImage_ref (AccessibleImage *obj);
1037 AccessibleImage_unref (AccessibleImage *obj);
1040 AccessibleImage_getImageDescription (AccessibleImage *obj);
1043 AccessibleImage_getImageSize (AccessibleImage *obj,
1048 AccessibleImage_getImagePosition (AccessibleImage *obj,
1051 AccessibleCoordType ctype);
1055 * AccessibleRelation function prototypes
1060 AccessibleRelation_ref (AccessibleRelation *obj);
1063 AccessibleRelation_unref (AccessibleRelation *obj);
1065 AccessibleRelationType
1066 AccessibleRelation_getRelationType (AccessibleRelation *obj);
1069 AccessibleRelation_getNTargets (AccessibleRelation *obj);
1072 AccessibleRelation_getTarget (AccessibleRelation *obj, int i);
1077 * AccessibleSelection function prototypes
1082 AccessibleSelection_ref (AccessibleSelection *obj);
1085 AccessibleSelection_unref (AccessibleSelection *obj);
1088 AccessibleSelection_getNSelectedChildren (AccessibleSelection *obj);
1091 AccessibleSelection_getSelectedChild (AccessibleSelection *obj,
1092 long int selectedChildIndex);
1095 AccessibleSelection_selectChild (AccessibleSelection *obj,
1096 long int childIndex);
1099 AccessibleSelection_deselectSelectedChild (AccessibleSelection *obj,
1100 long int selectedChildIndex);
1103 AccessibleSelection_isChildSelected (AccessibleSelection *obj,
1104 long int childIndex);
1107 AccessibleSelection_selectAll (AccessibleSelection *obj);
1110 AccessibleSelection_clearSelection (AccessibleSelection *obj);
1115 * AccessibleStateSet function prototypes
1120 AccessibleStateSet_ref (AccessibleStateSet *obj);
1123 AccessibleStateSet_unref (AccessibleStateSet *obj);
1126 AccessibleStateSet_contains (AccessibleStateSet *obj,
1127 AccessibleState state);
1130 AccessibleStateSet_add (AccessibleStateSet *obj,
1131 AccessibleState state);
1134 AccessibleStateSet_remove (AccessibleStateSet *obj,
1135 AccessibleState state);
1138 AccessibleStateSet_equals (AccessibleStateSet *obj,
1139 AccessibleStateSet *obj2);
1142 AccessibleStateSet_compare (AccessibleStateSet *obj,
1143 AccessibleStateSet *obj2,
1144 AccessibleStateSet **differenceSet);
1147 AccessibleStateSet_isEmpty (AccessibleStateSet *obj);
1152 * AccessibleTable function prototypes
1157 AccessibleTable_ref (AccessibleTable *obj);
1160 AccessibleTable_unref (AccessibleTable *obj);
1163 AccessibleTable_getCaption (AccessibleTable *obj);
1166 AccessibleTable_getSummary (AccessibleTable *obj);
1169 AccessibleTable_getNRows (AccessibleTable *obj);
1172 AccessibleTable_getNColumns (AccessibleTable *obj);
1175 AccessibleTable_getAccessibleAt (AccessibleTable *obj,
1180 AccessibleTable_getIndexAt (AccessibleTable *obj,
1185 AccessibleTable_getRowAtIndex (AccessibleTable *obj,
1189 AccessibleTable_getColumnAtIndex (AccessibleTable *obj,
1193 AccessibleTable_getRowDescription (AccessibleTable *obj,
1197 AccessibleTable_getColumnDescription (AccessibleTable *obj,
1201 AccessibleTable_getRowExtentAt (AccessibleTable *obj,
1206 AccessibleTable_getColumnExtentAt (AccessibleTable *obj,
1211 AccessibleTable_getRowHeader (AccessibleTable *obj,
1215 AccessibleTable_getColumnHeader (AccessibleTable *obj,
1219 AccessibleTable_getNSelectedRows (AccessibleTable *obj);
1222 AccessibleTable_getSelectedRows (AccessibleTable *obj,
1223 long int **selectedRows);
1226 AccessibleTable_getNSelectedColumns (AccessibleTable *obj);
1229 AccessibleTable_getSelectedColumns (AccessibleTable *obj,
1230 long int **selectedColumns);
1233 AccessibleTable_isRowSelected (AccessibleTable *obj,
1237 AccessibleTable_isColumnSelected (AccessibleTable *obj,
1241 AccessibleTable_isSelected (AccessibleTable *obj,
1247 * AccessibleText function prototypes
1252 AccessibleText_ref (AccessibleText *obj);
1255 AccessibleText_unref (AccessibleText *obj);
1258 AccessibleText_getCharacterCount (AccessibleText *obj);
1261 AccessibleText_getText (AccessibleText *obj,
1262 long int startOffset,
1263 long int endOffset);
1266 AccessibleText_getCaretOffset (AccessibleText *obj);
1269 AccessibleText_getAttributes (AccessibleText *obj,
1271 long int *startOffset,
1272 long int *endOffset);
1276 AccessibleText_setCaretOffset (AccessibleText *obj,
1277 long int newOffset);
1280 AccessibleText_getTextBeforeOffset (AccessibleText *obj,
1282 AccessibleTextBoundaryType type,
1283 long int *startOffset,
1284 long int *endOffset);
1287 AccessibleText_getTextAtOffset (AccessibleText *obj,
1289 AccessibleTextBoundaryType type,
1290 long int *startOffset,
1291 long int *endOffset);
1294 AccessibleText_getTextAfterOffset (AccessibleText *obj,
1296 AccessibleTextBoundaryType type,
1297 long int *startOffset,
1298 long int *endOffset);
1301 AccessibleText_getCharacterAtOffset (AccessibleText *obj,
1305 AccessibleText_getCharacterExtents (AccessibleText *obj,
1311 AccessibleCoordType type);
1314 AccessibleText_getOffsetAtPoint (AccessibleText *obj,
1317 AccessibleCoordType type);
1320 AccessibleText_getNSelections (AccessibleText *obj);
1323 AccessibleText_getSelection (AccessibleText *obj,
1324 long int selectionNum,
1325 long int *startOffset,
1326 long int *endOffset);
1330 AccessibleText_addSelection (AccessibleText *obj,
1331 long int startOffset,
1332 long int endOffset);
1335 AccessibleText_removeSelection (AccessibleText *obj,
1336 long int selectionNum);
1339 AccessibleText_setSelection (AccessibleText *obj,
1340 long int selectionNum,
1341 long int startOffset,
1342 long int endOffset);
1346 * AccessibleValue Function Prototypes:
1351 AccessibleValue_ref (AccessibleValue *obj);
1354 AccessibleValue_unref (AccessibleValue *obj);
1357 AccessibleValue_getMinimumValue (AccessibleValue *obj);
1360 AccessibleValue_getCurrentValue (AccessibleValue *obj);
1363 AccessibleValue_getMaximumValue (AccessibleValue *obj);
1366 AccessibleValue_setCurrentValue (AccessibleValue *obj,
1370 spi_freeString (char *s);