5 /* Implementation private definitions */
10 * Definitions for AccessibleRole, AccessibleState, AccessibleEvent,
11 * and event listeners.
14 #include "spi-roletypes.h"
15 #include "spi-statetypes.h"
16 #include "spi-listener.h"
19 * Auxiliary typedefs and mask definitions
25 * Enumerated type for text boundary types
31 SPI_TEXT_BOUNDARY_CHAR,
32 SPI_TEXT_BOUNDARY_CURSOR_POS,
33 SPI_TEXT_BOUNDARY_WORD_START,
34 SPI_TEXT_BOUNDARY_WORD_END,
35 SPI_TEXT_BOUNDARY_SENTENCE_START,
36 SPI_TEXT_BOUNDARY_SENTENCE_END,
37 SPI_TEXT_BOUNDARY_LINE_START,
38 SPI_TEXT_BOUNDARY_LINE_END,
39 SPI_TEXT_BOUNDARY_ATTRIBUTE_RANGE
40 } AccessibleTextBoundaryType;
44 * Enumerated type for relation types
50 SPI_RELATION_LABEL_FOR,
51 SPI_RELATION_LABELED_BY,
52 SPI_RELATION_CONTROLLER_FOR,
53 SPI_RELATION_CONTROLLED_BY,
54 SPI_RELATION_MEMBER_OF
55 } AccessibleRelationType;
58 /* don't change the order of these ! */
60 SPI_COORD_TYPE_SCREEN,
62 } AccessibleCoordType;
67 } AccessibleKeyEventType;
74 } AccessibleKeySynthType;
77 SPI_KEYLISTENER_NOSYNC = 0,
78 SPI_KEYLISTENER_SYNCHRONOUS = 1,
79 SPI_KEYLISTENER_CANCONSUME = 2,
80 SPI_KEYLISTENER_ALL_WINDOWS = 4
81 } AccessibleKeyListenerSyncType;
83 typedef unsigned long AccessibleKeyEventMask;
85 typedef struct _AccessibleKeyStroke
89 AccessibleKeyEventType type;
90 unsigned short modifiers;
91 } AccessibleKeyStroke;
99 * Structure containing identifying information about a set of keycode or
102 typedef struct _AccessibleKeySet
104 unsigned long *keysyms;
105 unsigned short *keycodes;
109 #define SPI_KEYSET_ALL_KEYS ((void *)NULL)
111 typedef unsigned long AccessibleKeyMaskType;
115 * Basic SPI initialization and event loop function prototypes
122 * Connects to the accessibility registry and initializes the SPI.
124 * Returns: 0 on success, otherwise an integer error code.
131 * @isGNOMEApp: a #boolean indicating whether the client of the SPI
132 * will use the Gnome event loop or not.
134 * Starts/enters the main event loop for the SPI services.
136 * (NOTE: This method does not return control, it is exited via a call to exit()
137 * from within an event handler).
141 SPI_event_main (boolean isGNOMEApp);
144 * SPI_event_is_ready:
146 * Checks to see if an SPI event is waiting in the event queue.
147 * Used by clients that don't wish to use SPI_event_main().
148 * Not Yet Implemented.
150 * Returns: #TRUE if an event is waiting, otherwise #FALSE.
159 * Gets the next event in the SPI event queue; blocks if no event
161 * Used by clients that don't wish to use SPI_event_main().
162 * Not Yet Implemented.
164 * Returns: the next #AccessibleEvent in the SPI event queue.
168 SPI_nextEvent (boolean waitForEvent);
173 * Disconnects from the Accessibility Registry and releases resources.
174 * Not Yet Implemented.
181 * Event Listener creation and support.
185 * createAccessibleEventListener:
186 * @callback : an #AccessibleEventListenerCB callback function, or NULL.
188 * Create a new #AccessibleEventListener with a specified callback function.
190 * Returns: a pointer to a newly-created #AccessibleEventListener.
193 AccessibleEventListener *
194 createAccessibleEventListener (AccessibleEventListenerCB callback);
197 * AccessibleEventListener_addCallback:
198 * @listener: the #AccessibleEventListener instance to modify.
199 * @callback: an #AccessibleEventListenerCB function pointer.
201 * Add an in-process callback function to an existing AccessibleEventListener.
203 * Returns: #TRUE if successful, otherwise #FALSE.
207 AccessibleEventListener_addCallback (AccessibleEventListener *listener,
208 AccessibleEventListenerCB callback);
211 * AccessibleEventListener_removeCallback:
212 * @listener: the #AccessibleEventListener instance to modify.
213 * @callback: an #AccessibleEventListenerCB function pointer.
215 * Remove an in-process callback function from an existing AccessibleEventListener.
217 * Returns: #TRUE if successful, otherwise #FALSE.
221 AccessibleEventListener_removeCallback (AccessibleEventListener *listener,
222 AccessibleEventListenerCB callback);
225 * createAccessibleKeystrokeListener:
226 * @callback : an #AccessibleKeystrokeListenerCB callback function, or NULL.
228 * Create a new #AccessibleKeystrokeListener with a specified callback function.
230 * Returns: a pointer to a newly-created #AccessibleKeystrokeListener.
233 AccessibleKeystrokeListener *
234 createAccessibleKeystrokeListener (AccessibleKeystrokeListenerCB callback);
237 * KeystrokeListener_addCallback:
238 * @listener: the #KeystrokeListener instance to modify.
239 * @callback: an #KeystrokeListenerCB function pointer.
241 * Add an in-process callback function to an existing #KeystrokeListener.
243 * Returns: #TRUE if successful, otherwise #FALSE.
247 AccessibleKeystrokeListener_addCallback (AccessibleKeystrokeListener *listener,
248 AccessibleKeystrokeListenerCB callback);
251 * AccessibleKeystrokeListener_removeCallback:
252 * @listener: the #AccessibleKeystrokeListener instance to modify.
253 * @callback: an #AccessibleKeystrokeListenerCB function pointer.
255 * Remove an in-process callback function from an existing #AccessibleKeystrokeListener.
257 * Returns: #TRUE if successful, otherwise #FALSE.
261 AccessibleKeystrokeListener_removeCallback (AccessibleKeystrokeListener *listener,
262 AccessibleKeystrokeListenerCB callback);
266 * Global functions serviced by the registry
271 * registerGlobalEventListener:
272 * @listener: the #AccessibleEventListener to be registered against an event type.
273 * @callback: a character string indicating the type of events for which
274 * notification is requested. Format is
275 * EventClass:major_type:minor_type:detail
276 * where all subfields other than EventClass are optional.
277 * EventClasses include "Focus", "Window", "Mouse",
278 * and toolkit events (e.g. "Gtk", "AWT").
279 * Examples: "focus:", "Gtk:GtkWidget:button_press_event".
281 * NOTE: this string may be UTF-8, but should not contain byte value 56 (ascii ':'),
282 * except as a delimiter, since non-UTF-8 string delimiting
283 * functions are used internally. In general, listening to
284 * toolkit-specific events is not recommended.
286 * Add an in-process callback function to an existing AccessibleEventListener.
288 * Returns: #TRUE if successful, otherwise #FALSE.
292 registerGlobalEventListener (AccessibleEventListener *listener,
295 deregisterGlobalEventListener (AccessibleEventListener *listener,
298 deregisterGlobalEventListenerAll (AccessibleEventListener *listener);
304 * Get the number of virtual desktops.
305 * NOTE: currently multiple virtual desktops are not implemented, this
306 * function always returns '1'.
308 * Returns: an integer indicating the number of active virtual desktops.
316 * @i: an integer indicating which of the accessible desktops is to be returned.
318 * Get the virtual desktop indicated by index @i.
319 * NOTE: currently multiple virtual desktops are not implemented, this
320 * function always returns '1'.
322 * Returns: a pointer to the 'i-th' virtual desktop's #Accessible representation.
330 * @list: a pointer to an array of #Accessible objects.
332 * Get the list of virtual desktops. On return, @list will point
333 * to a newly-created array of virtual desktop pointers.
334 * It is the responsibility of the caller to free this array when
335 * it is no longer needed.
337 * Not Yet Implemented.
339 * Returns: an integer indicating how many virtual desktops have been
340 * placed in the list pointed to by parameter @list.
343 getDesktopList (Accessible **list);
346 * registerAccessibleKeystrokeListener:
347 * @listener: a pointer to the #AccessibleKeystrokeListener for which
348 * keystroke events are requested.
350 * [Partially Implemented.]
354 registerAccessibleKeystrokeListener (AccessibleKeystrokeListener *listener,
355 AccessibleKeySet *keys,
356 AccessibleKeyMaskType modmask,
357 AccessibleKeyEventMask eventmask,
358 AccessibleKeyListenerSyncType sync_type);
361 deregisterAccessibleKeystrokeListener (AccessibleKeystrokeListener *listener,
362 AccessibleKeyMaskType modmask);
366 * @keyval: a #long integer indicating the keycode or keysym of the key event
368 * @synth_type: a #AccessibleKeySynthType flag indicating whether @keyval
369 * is to be interpreted as a keysym rather than a keycode
370 * (SPI_KEYSYM) and whether to synthesize
371 * SPI_KEY_PRESS, SPI_KEY_RELEASE, or both (SPI_KEY_PRESSRELEASE).
373 * Synthesize a keyboard event (as if a hardware keyboard event occurred in the
374 * current UI context).
378 generateKeyEvent (long int keyval, AccessibleKeySynthType synth_type);
381 * generateMouseEvent:
382 * @x: a #long int indicating the screen x coordinate of the mouse event.
383 * @y: a #long int indicating the screen y coordinate of the mouse event.
384 * @name: a string indicating which mouse event to be synthesized
385 * (e.g. "button1", "button2", "mousemove").
387 * Synthesize a mouse event at a specific screen coordinate.
388 * Not Yet Implemented.
392 generateMouseEvent (long int x, long int y, char *name);
396 * Accessible function prototypes
402 * @obj: a pointer to the #Accessible object on which to operate.
404 * Increment the reference count for an #Accessible object.
406 * Returns: (no return code implemented yet).
410 Accessible_ref (Accessible *obj);
414 * @obj: a pointer to the #Accessible object on which to operate.
416 * Decrement the reference count for an #Accessible object.
418 * Returns: (no return code implemented yet).
422 Accessible_unref (Accessible *obj);
425 * Accessible_getName:
426 * @obj: a pointer to the #Accessible object on which to operate.
428 * Get the name of an #Accessible object.
430 * Returns: a UTF-8 string indicating the name of the #Accessible object.
434 Accessible_getName (Accessible *obj);
437 * Accessible_getDescription:
438 * @obj: a pointer to the #Accessible object on which to operate.
440 * Get the description of an #Accessible object.
442 * Returns: a UTF-8 string describing the #Accessible object.
446 Accessible_getDescription (Accessible *obj);
449 * Accessible_getParent:
450 * @obj: a pointer to the #Accessible object to query.
452 * Get an #Accessible object's parent container.
454 * Returns: a pointer to the #Accessible object which contains the given
455 * #Accessible instance, or NULL if the @obj has no parent container.
459 Accessible_getParent (Accessible *obj);
462 * Accessible_getChildCount:
463 * @obj: a pointer to the #Accessible object on which to operate.
465 * Get the number of children contained by an #Accessible object.
467 * Returns: a #long indicating the number of #Accessible children
468 * contained by an #Accessible object.
472 Accessible_getChildCount (Accessible *obj);
475 * Accessible_getChildAtIndex:
477 * @obj: a pointer to the #Accessible object on which to operate.
478 * @childIndex: a #long indicating which child is specified.
480 * Get the #Accessible child of an #Accessible object at a given index.
482 * Returns: a pointer to the #Accessible child object at index
487 Accessible_getChildAtIndex (Accessible *obj,
488 long int childIndex);
491 * Accessible_getIndexInParent:
493 * @obj: a pointer to the #Accessible object on which to operate.
495 * Get the index of an #Accessible object in its containing #Accessible.
497 * Returns: a #long indicating the index of the #Accessible object
498 * in its parent (i.e. containing) #Accessible instance,
499 * or -1 if @obj has no containing parent.
503 Accessible_getIndexInParent (Accessible *obj);
506 * Accessible_getRelationSet:
507 * @obj: a pointer to the #Accessible object on which to operate.
509 * Not Yet Implemented.
511 * Returns: a pointer to an array of #AccessibleRelations.
514 AccessibleRelation **
515 Accessible_getRelationSet (Accessible *obj);
518 * Accessible_getRole:
519 * @obj: a pointer to the #Accessible object on which to operate.
521 * Get the UI role of an #Accessible object.
523 * Returns: a UTF-8 string indicating the UI role of the #Accessible object.
527 Accessible_getRole (Accessible *obj);
530 * Accessible_getStateSet:
531 * @obj: a pointer to the #Accessible object on which to operate.
533 * Not Yet Implemented.
535 * Returns: a pointer to an #AccessibleStateSet representing the object's current state.
539 Accessible_getStateSet (Accessible *obj);
541 /* Interface query methods */
544 * Accessible_isAction:
545 * @obj: a pointer to the #Accessible instance to query.
547 * Query whether the specified #Accessible implements #AccessibleAction.
549 * Returns: #TRUE if @obj implements the #AccessibleAction interface,
553 Accessible_isAction (Accessible *obj);
556 * Accessible_isComponent:
557 * @obj: a pointer to the #Accessible instance to query.
559 * Query whether the specified #Accessible implements #AccessibleComponent.
561 * Returns: #TRUE if @obj implements the #AccessibleComponent interface,
565 Accessible_isComponent (Accessible *obj);
568 * Accessible_isEditableText:
569 * @obj: a pointer to the #Accessible instance to query.
571 * Query whether the specified #Accessible implements #AccessibleEditableText.
573 * Returns: #TRUE if @obj implements the #AccessibleEditableText interface,
577 Accessible_isEditableText (Accessible *obj);
580 * Accessible_isHypertext:
581 * @obj: a pointer to the #Accessible instance to query.
583 * Query whether the specified #Accessible implements #AccessibleHypertext.
585 * Returns: #TRUE if @obj implements the #AccessibleHypertext interface,
589 Accessible_isHypertext (Accessible *obj);
592 * Accessible_isImage:
593 * @obj: a pointer to the #Accessible instance to query.
595 * Query whether the specified #Accessible implements #AccessibleImage.
597 * Returns: #TRUE if @obj implements the #AccessibleImage interface,
601 Accessible_isImage (Accessible *obj);
604 * Accessible_isSelection:
605 * @obj: a pointer to the #Accessible instance to query.
607 * Query whether the specified #Accessible implements #AccessibleSelection.
609 * Returns: #TRUE if @obj implements the #AccessibleSelection interface,
613 Accessible_isSelection (Accessible *obj);
616 * Accessible_isTable:
617 * @obj: a pointer to the #Accessible instance to query.
619 * Query whether the specified #Accessible implements #AccessibleTable.
621 * Returns: #TRUE if @obj implements the #AccessibleTable interface,
625 Accessible_isTable (Accessible *obj);
629 * @obj: a pointer to the #Accessible instance to query.
631 * Query whether the specified #Accessible implements #AccessibleText.
633 * Returns: #TRUE if @obj implements the #AccessibleText interface,
637 Accessible_isText (Accessible *obj);
640 Accessible_getAction (Accessible *obj);
643 * Accessible_getComponent:
644 * @obj: a pointer to the #Accessible instance to query.
646 * Get the #AccessibleComponent interface for an #Accessible.
648 * Returns: a pointer to an #AccessibleComponent interface instance, or
649 * NULL if @obj does not implement #AccessibleComponent.
651 AccessibleComponent *
652 Accessible_getComponent (Accessible *obj);
655 * Accessible_getEditableText:
657 * Not Yet Implemented.
660 AccessibleEditableText *
661 Accessible_getEditableText (Accessible *obj);
664 * Accessible_getHypertext:
666 * Not Yet Implemented.
669 AccessibleHypertext *
670 Accessible_getHypertext (Accessible *obj);
673 * Accessible_getImage:
675 * Not Yet Implemented.
679 Accessible_getImage (Accessible *obj);
682 * Accessible_getSelection:
684 * Not Yet Implemented.
687 AccessibleSelection *
688 Accessible_getSelection (Accessible *obj);
691 * Accessible_getTable:
693 * Not Yet Implemented.
697 Accessible_getTable (Accessible *obj);
700 * Accessible_getText:
702 * Not Yet Implemented.
706 Accessible_getText (Accessible *obj);
709 * Accessible_queryInterface:
710 * @obj: a pointer to the #Accessible instance to query.
711 * @interface_name: a UTF-8 character string specifiying the requested interface.
713 * Query an #Accessible object to for a named interface.
715 * Returns: an instance of the named interface object, if it is implemented
716 * by @obj, or NULL otherwise.
720 Accessible_queryInterface (Accessible *obj, char *interface_name);
724 * AccessibleAction function prototypes
729 AccessibleAction_ref (AccessibleAction *obj);
732 AccessibleAction_unref (AccessibleAction *obj);
735 AccessibleAction_getNActions (AccessibleAction *obj);
738 * AccessibleAction_getName:
739 * @obj: a pointer to the #AccessibleAction implementor to query.
740 * @i: a long integer indicating which action to query.
742 * Get the name of the '@i-th' action invokable on an
743 * object implementing #AccessibleAction.
745 * Returns: the 'event type' name of the action, as a UTF-8 string.
749 AccessibleAction_getName (AccessibleAction *obj, long int i);
752 * AccessibleAction_getDescription:
753 * @obj: a pointer to the #AccessibleAction to query.
754 * @i: a long integer indicating which action to query.
756 * Get the description of '@i-th' action invokable on an
757 * object implementing #AccessibleAction.
759 * Returns: a UTF-8 string describing the '@i-th' invokable action.
763 AccessibleAction_getDescription (AccessibleAction *obj,
767 AccessibleAction_doAction (AccessibleAction *obj,
771 * AccessibleAction_getKeybinding:
772 * @obj: a pointer to the #AccessibleAction implementor to query.
773 * @i: a long integer indicating which action to query.
775 * Get the keybindings for the @i-th action invokable on an
776 * object implementing #AccessibleAction, if any are defined.
778 * Returns: a UTF-8 string which can be parsed to determine the @i-th
779 * invokable action's keybindings.
783 AccessibleAction_getKeyBinding (AccessibleAction *obj,
788 * AccessibleApplication function prototypes
793 * AccessibleApplication_unref:
794 * @obj: a pointer to the #AccessibleApplication on which to operate.
796 * Decrement the reference count for an #AccessibleApplication.
798 * Returns: (no return code implemented yet).
802 AccessibleApplication_ref (AccessibleApplication *obj);
805 * AccessibleApplication_unref:
806 * @obj: a pointer to the #AccessibleApplication object on which to operate.
808 * Decrement the reference count for an #AccessibleApplication.
810 * Returns: (no return code implemented yet).
814 AccessibleApplication_unref (AccessibleApplication *obj);
817 * AccessibleApplication_getToolkitName:
818 * @obj: a pointer to the #AccessibleApplication to query.
820 * Get the name of the UI toolkit used by an #AccessibleApplication.
822 * Returns: a UTF-8 string indicating which UI toolkit is
823 * used by an application.
827 AccessibleApplication_getToolkitName (AccessibleApplication *obj);
830 * AccessibleApplication_getVersion:
831 * @obj: a pointer to the #AccessibleApplication being queried.
833 * Get the version of the at-spi bridge exported by an
834 * #AccessibleApplication instance.
836 * Returns: a UTF-8 string indicating the application's
841 AccessibleApplication_getVersion (AccessibleApplication *obj);
844 * AccessibleApplication_getID:
845 * @obj: a pointer to the #AccessibleApplication being queried.
847 * Get the unique ID assigned by the Registry to an
848 * #AccessibleApplication instance.
849 * (Not Yet Implemented by the registry).
851 * Returns: a unique #long integer associated with the application
852 * by the Registry, or 0 if the application is not registered.
855 AccessibleApplication_getID (AccessibleApplication *obj);
858 * AccessibleApplication_pause:
859 * @obj: a pointer to the #Accessible object on which to operate.
861 * Attempt to pause the application (used when client event queue is
863 * Not Yet Implemented.
865 * Returns: #TRUE if the application was paused successfully, #FALSE otherwise.
869 AccessibleApplication_pause (AccessibleApplication *obj);
872 * AccessibleApplication_resume:
873 * @obj: a pointer to the #Accessible object on which to operate.
875 * Attempt to resume the application (used after #AccessibleApplication_pause).
876 * Not Yet Implemented.
878 * Returns: #TRUE if application processing resumed successfully, #FALSE otherwise.
882 AccessibleApplication_resume (AccessibleApplication *obj);
886 * AccessibleComponent function prototypes
891 AccessibleComponent_ref (AccessibleComponent *obj);
894 AccessibleComponent_unref (AccessibleComponent *obj);
897 AccessibleComponent_contains (AccessibleComponent *obj,
900 AccessibleCoordType ctype);
903 AccessibleComponent_getAccessibleAtPoint (AccessibleComponent *obj,
906 AccessibleCoordType ctype);
909 * AccessibleComponent_getExtents:
910 * @obj: a pointer to the #AccessibleComponent to query.
911 * @x: a pointer to a #long into which the minimum x coordinate will be returned.
912 * @y: a pointer to a #long into which the minimum y coordinate will be returned.
913 * @width: a pointer to a #long into which the x extents (width) will be returned.
914 * @height: a pointer to a #long into which the y extents (height) will be returned.
915 * @ctype: the desired coordinate system into which to return the results,
916 * (e.g. COORD_TYPE_WINDOW, COORD_TYPE_SCREEN).
918 * Get the bounding box of the specified #AccessibleComponent.
922 AccessibleComponent_getExtents (AccessibleComponent *obj,
927 AccessibleCoordType ctype);
930 AccessibleComponent_getPosition (AccessibleComponent *obj,
933 AccessibleCoordType ctype);
936 AccessibleComponent_getSize (AccessibleComponent *obj,
941 AccessibleComponent_grabFocus (AccessibleComponent *obj);
945 * AccessibleEditableText function prototypes
950 AccessibleEditableText_ref (AccessibleEditableText *obj);
953 AccessibleEditableText_unref (AccessibleEditableText *obj);
956 AccessibleEditableText_setRunAttributes (AccessibleEditableText *obj,
957 const char *attributes,
958 long int startPos, long int intendPos);
961 AccessibleEditableText_setTextContents (AccessibleEditableText *obj,
962 const char *newContents);
965 AccessibleEditableText_insertText (AccessibleEditableText *obj,
971 AccessibleEditableText_copyText (AccessibleText *obj,
976 AccessibleEditableText_cutText (AccessibleEditableText *obj,
981 AccessibleEditableText_deleteText (AccessibleEditableText *obj,
986 AccessibleEditableText_pasteText (AccessibleEditableText *obj,
991 * AccessibleHyperlink function prototypes
996 AccessibleHyperlink_getNAnchors (AccessibleHyperlink *obj);
999 AccessibleHyperlink_getURI (AccessibleHyperlink *obj,
1003 AccessibleHyperlink_getObject (AccessibleHyperlink *obj,
1007 AccessibleHyperlink_getIndexRange (AccessibleHyperlink *obj,
1008 long int *startIndex,
1009 long int *endIndex);
1012 AccessibleHyperlink_isValid (AccessibleHyperlink *obj);
1016 * AccessibleHypertext function prototypes
1021 AccessibleHypertext_ref (AccessibleHypertext *obj);
1024 AccessibleHypertext_unref (AccessibleHypertext *obj);
1027 AccessibleHypertext_getNLinks (AccessibleHypertext *obj);
1029 AccessibleHyperlink *
1030 AccessibleHypertext_getLink (AccessibleHypertext *obj,
1031 long int linkIndex);
1034 AccessibleHypertext_getLinkIndex (AccessibleHypertext *obj,
1035 long int characterOffset);
1039 * AccessibleImage function prototypes
1044 AccessibleImage_ref (AccessibleImage *obj);
1047 AccessibleImage_unref (AccessibleImage *obj);
1050 AccessibleImage_getImageDescription (AccessibleImage *obj);
1053 AccessibleImage_getImageSize (AccessibleImage *obj,
1058 AccessibleImage_getImagePosition (AccessibleImage *obj,
1061 AccessibleCoordType ctype);
1065 * AccessibleRelation function prototypes
1070 AccessibleRelation_ref (AccessibleRelation *obj);
1073 AccessibleRelation_unref (AccessibleRelation *obj);
1075 AccessibleRelationType
1076 AccessibleRelation_getRelationType (AccessibleRelation *obj);
1079 AccessibleRelation_getTarget (AccessibleRelation *obj);
1084 * AccessibleSelection function prototypes
1089 AccessibleSelection_ref (AccessibleSelection *obj);
1092 AccessibleSelection_unref (AccessibleSelection *obj);
1095 AccessibleSelection_getNSelectedChildren (AccessibleSelection *obj);
1098 AccessibleSelection_getSelectedChild (AccessibleSelection *obj,
1099 long int selectedChildIndex);
1102 AccessibleSelection_selectChild (AccessibleSelection *obj,
1103 long int childIndex);
1106 AccessibleSelection_deselectSelectedChild (AccessibleSelection *obj,
1107 long int selectedChildIndex);
1110 AccessibleSelection_isChildSelected (AccessibleSelection *obj,
1111 long int childIndex);
1114 AccessibleSelection_selectAll (AccessibleSelection *obj);
1117 AccessibleSelection_clearSelection (AccessibleSelection *obj);
1122 * AccessibleStateSet function prototypes
1127 AccessibleStateSet_ref (AccessibleStateSet *obj);
1130 AccessibleStateSet_unref (AccessibleStateSet *obj);
1133 AccessibleStateSet_contains (AccessibleStateSet *obj,
1134 AccessibleState state);
1137 AccessibleStateSet_add (AccessibleStateSet *obj,
1138 AccessibleState state);
1141 AccessibleStateSet_remove (AccessibleStateSet *obj,
1142 AccessibleState state);
1145 AccessibleStateSet_equals (AccessibleStateSet *obj,
1146 AccessibleStateSet *obj2);
1149 AccessibleStateSet_compare (AccessibleStateSet *obj,
1150 AccessibleStateSet *obj2,
1151 AccessibleStateSet **differenceSet);
1154 AccessibleStateSet_isEmpty (AccessibleStateSet *obj);
1159 * AccessibleTable function prototypes
1164 AccessibleTable_ref (AccessibleTable *obj);
1167 AccessibleTable_unref (AccessibleTable *obj);
1170 AccessibleTable_getCaption (AccessibleTable *obj);
1173 AccessibleTable_getSummary (AccessibleTable *obj);
1176 AccessibleTable_getNRows (AccessibleTable *obj);
1179 AccessibleTable_getNColumns (AccessibleTable *obj);
1182 AccessibleTable_refAt (AccessibleTable *obj,
1187 AccessibleTable_getIndexAt (AccessibleTable *obj,
1192 AccessibleTable_getRowAtIndex (AccessibleTable *obj,
1196 AccessibleTable_getColumnAtIndex (AccessibleTable *obj,
1200 AccessibleTable_getRowDescription (AccessibleTable *obj,
1204 AccessibleTable_getColumnDescription (AccessibleTable *obj,
1208 AccessibleTable_getRowExtentAt (AccessibleTable *obj,
1213 AccessibleTable_getColumnExtentAt (AccessibleTable *obj,
1218 AccessibleTable_getRowHeader (AccessibleTable *obj,
1222 AccessibleTable_getColumnHeader (AccessibleTable *obj,
1226 AccessibleTable_getNSelectedRows (AccessibleTable *obj);
1229 AccessibleTable_getSelectedRows (AccessibleTable *obj,
1230 long int **selectedRows);
1233 AccessibleTable_getNSelectedColumns (AccessibleTable *obj);
1236 AccessibleTable_getSelectedColumns (AccessibleTable *obj,
1237 long int **selectedColumns);
1240 AccessibleTable_isRowSelected (AccessibleTable *obj,
1244 AccessibleTable_isColumnSelected (AccessibleTable *obj,
1248 AccessibleTable_isSelected (AccessibleTable *obj,
1254 * AccessibleText function prototypes
1259 AccessibleText_ref (AccessibleText *obj);
1262 AccessibleText_unref (AccessibleText *obj);
1265 AccessibleText_getCharacterCount (AccessibleText *obj);
1268 AccessibleText_getText (AccessibleText *obj,
1269 long int startOffset,
1270 long int endOffset);
1273 AccessibleText_getCaretOffset (AccessibleText *obj);
1276 AccessibleText_getAttributes (AccessibleText *obj,
1278 long int *startOffset,
1279 long int *endOffset);
1283 AccessibleText_setCaretOffset (AccessibleText *obj,
1284 long int newOffset);
1287 AccessibleText_getTextBeforeOffset (AccessibleText *obj,
1289 AccessibleTextBoundaryType type,
1290 long int *startOffset,
1291 long int *endOffset);
1294 AccessibleText_getTextAtOffset (AccessibleText *obj,
1296 AccessibleTextBoundaryType type,
1297 long int *startOffset,
1298 long int *endOffset);
1301 AccessibleText_getTextAfterOffset (AccessibleText *obj,
1303 AccessibleTextBoundaryType type,
1304 long int *startOffset,
1305 long int *endOffset);
1308 AccessibleText_getCharacterAtOffset (AccessibleText *obj,
1312 AccessibleText_getCharacterExtents (AccessibleText *obj,
1318 AccessibleCoordType type);
1321 AccessibleText_getOffsetAtPoint (AccessibleText *obj,
1324 AccessibleCoordType type);
1327 AccessibleText_getNSelections (AccessibleText *obj);
1330 AccessibleText_getSelection (AccessibleText *obj,
1331 long int selectionNum,
1332 long int *startOffset,
1333 long int *endOffset);
1337 AccessibleText_addSelection (AccessibleText *obj,
1338 long int startOffset,
1339 long int endOffset);
1342 AccessibleText_removeSelection (AccessibleText *obj,
1343 long int selectionNum);
1346 AccessibleText_setSelection (AccessibleText *obj,
1347 long int selectionNum,
1348 long int startOffset,
1349 long int endOffset);
1353 * AccessibleValue Function Prototypes:
1358 AccessibleValue_ref (AccessibleValue *obj);
1361 AccessibleValue_unref (AccessibleValue *obj);
1364 AccessibleValue_getMinimumValue (AccessibleValue *obj);
1367 AccessibleValue_getCurrentValue (AccessibleValue *obj);
1370 AccessibleValue_getMaximumValue (AccessibleValue *obj);
1373 AccessibleValue_setCurrentValue (AccessibleValue *obj,
1377 spi_freeString (char *s);