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
90 AccessibleKeyEventType type;
91 unsigned short modifiers;
92 } AccessibleKeyStroke;
100 * Structure containing identifying information about a set of keycode or
103 typedef struct _AccessibleKeySet
105 unsigned long *keysyms;
106 unsigned short *keycodes;
111 * SPI_KEYSET_ALL_KEYS:
112 * @SPI_KEYSET_ALL_KEYS: A special value for an AccessibleKeySet type, which tacitly
113 * includes all keycodes and keyvals for the specified modifier set.
115 #define SPI_KEYSET_ALL_KEYS NULL
117 typedef unsigned long AccessibleKeyMaskType;
121 * Basic SPI initialization and event loop function prototypes
128 * Connects to the accessibility registry and initializes the SPI.
130 * Returns: 0 on success, otherwise an integer error code.
137 * @isGNOMEApp: a #boolean indicating whether the client of the SPI
138 * will use the Gnome event loop or not.
140 * Starts/enters the main event loop for the SPI services.
142 * (NOTE: This method does not return control, it is exited via a call to exit()
143 * from within an event handler).
147 SPI_event_main (boolean isGNOMEApp);
150 * SPI_event_is_ready:
152 * Checks to see if an SPI event is waiting in the event queue.
153 * Used by clients that don't wish to use SPI_event_main().
154 * Not Yet Implemented.
156 * Returns: #TRUE if an event is waiting, otherwise #FALSE.
165 * Gets the next event in the SPI event queue; blocks if no event
167 * Used by clients that don't wish to use SPI_event_main().
168 * Not Yet Implemented.
170 * Returns: the next #AccessibleEvent in the SPI event queue.
174 SPI_nextEvent (boolean waitForEvent);
179 * Disconnects from the Accessibility Registry and releases resources.
180 * Not Yet Implemented.
187 * Event Listener creation and support.
191 * createAccessibleEventListener:
192 * @callback : an #AccessibleEventListenerCB callback function, or NULL.
194 * Create a new #AccessibleEventListener with a specified callback function.
196 * Returns: a pointer to a newly-created #AccessibleEventListener.
199 AccessibleEventListener *
200 createAccessibleEventListener (AccessibleEventListenerCB callback);
203 * AccessibleEventListener_addCallback:
204 * @listener: the #AccessibleEventListener instance to modify.
205 * @callback: an #AccessibleEventListenerCB function pointer.
207 * Add an in-process callback function to an existing AccessibleEventListener.
209 * Returns: #TRUE if successful, otherwise #FALSE.
213 AccessibleEventListener_addCallback (AccessibleEventListener *listener,
214 AccessibleEventListenerCB callback);
217 * AccessibleEventListener_removeCallback:
218 * @listener: the #AccessibleEventListener instance to modify.
219 * @callback: an #AccessibleEventListenerCB function pointer.
221 * Remove an in-process callback function from an existing AccessibleEventListener.
223 * Returns: #TRUE if successful, otherwise #FALSE.
227 AccessibleEventListener_removeCallback (AccessibleEventListener *listener,
228 AccessibleEventListenerCB callback);
231 * createAccessibleKeystrokeListener:
232 * @callback : an #AccessibleKeystrokeListenerCB callback function, or NULL.
234 * Create a new #AccessibleKeystrokeListener with a specified callback function.
236 * Returns: a pointer to a newly-created #AccessibleKeystrokeListener.
239 AccessibleKeystrokeListener *
240 createAccessibleKeystrokeListener (AccessibleKeystrokeListenerCB callback);
243 * KeystrokeListener_addCallback:
244 * @listener: the #KeystrokeListener instance to modify.
245 * @callback: an #KeystrokeListenerCB function pointer.
247 * Add an in-process callback function to an existing #KeystrokeListener.
249 * Returns: #TRUE if successful, otherwise #FALSE.
253 AccessibleKeystrokeListener_addCallback (AccessibleKeystrokeListener *listener,
254 AccessibleKeystrokeListenerCB callback);
257 * AccessibleKeystrokeListener_removeCallback:
258 * @listener: the #AccessibleKeystrokeListener instance to modify.
259 * @callback: an #AccessibleKeystrokeListenerCB function pointer.
261 * Remove an in-process callback function from an existing #AccessibleKeystrokeListener.
263 * Returns: #TRUE if successful, otherwise #FALSE.
267 AccessibleKeystrokeListener_removeCallback (AccessibleKeystrokeListener *listener,
268 AccessibleKeystrokeListenerCB callback);
272 * Global functions serviced by the registry
277 * registerGlobalEventListener:
278 * @listener: the #AccessibleEventListener to be registered against an event type.
279 * @callback: a character string indicating the type of events for which
280 * notification is requested. Format is
281 * EventClass:major_type:minor_type:detail
282 * where all subfields other than EventClass are optional.
283 * EventClasses include "Focus", "Window", "Mouse",
284 * and toolkit events (e.g. "Gtk", "AWT").
285 * Examples: "focus:", "Gtk:GtkWidget:button_press_event".
287 * NOTE: this string may be UTF-8, but should not contain byte value 56 (ascii ':'),
288 * except as a delimiter, since non-UTF-8 string delimiting
289 * functions are used internally. In general, listening to
290 * toolkit-specific events is not recommended.
292 * Add an in-process callback function to an existing AccessibleEventListener.
294 * Returns: #TRUE if successful, otherwise #FALSE.
298 registerGlobalEventListener (AccessibleEventListener *listener,
301 deregisterGlobalEventListener (AccessibleEventListener *listener,
304 deregisterGlobalEventListenerAll (AccessibleEventListener *listener);
310 * Get the number of virtual desktops.
311 * NOTE: currently multiple virtual desktops are not implemented, this
312 * function always returns '1'.
314 * Returns: an integer indicating the number of active virtual desktops.
322 * @i: an integer indicating which of the accessible desktops is to be returned.
324 * Get the virtual desktop indicated by index @i.
325 * NOTE: currently multiple virtual desktops are not implemented, this
326 * function always returns '1'.
328 * Returns: a pointer to the 'i-th' virtual desktop's #Accessible representation.
336 * @list: a pointer to an array of #Accessible objects.
338 * Get the list of virtual desktops. On return, @list will point
339 * to a newly-created array of virtual desktop pointers.
340 * It is the responsibility of the caller to free this array when
341 * it is no longer needed.
343 * Not Yet Implemented.
345 * Returns: an integer indicating how many virtual desktops have been
346 * placed in the list pointed to by parameter @list.
349 getDesktopList (Accessible **list);
352 * registerAccessibleKeystrokeListener:
353 * @listener: a pointer to the #AccessibleKeystrokeListener for which
354 * keystroke events are requested.
356 * [Partially Implemented.]
360 registerAccessibleKeystrokeListener (AccessibleKeystrokeListener *listener,
361 AccessibleKeySet *keys,
362 AccessibleKeyMaskType modmask,
363 AccessibleKeyEventMask eventmask,
364 AccessibleKeyListenerSyncType sync_type);
367 deregisterAccessibleKeystrokeListener (AccessibleKeystrokeListener *listener,
368 AccessibleKeyMaskType modmask);
372 * @keyval: a #long integer indicating the keycode or keysym of the key event
374 * @synth_type: a #AccessibleKeySynthType flag indicating whether @keyval
375 * is to be interpreted as a keysym rather than a keycode
376 * (SPI_KEYSYM) and whether to synthesize
377 * SPI_KEY_PRESS, SPI_KEY_RELEASE, or both (SPI_KEY_PRESSRELEASE).
379 * Synthesize a keyboard event (as if a hardware keyboard event occurred in the
380 * current UI context).
384 generateKeyEvent (long int keyval, AccessibleKeySynthType synth_type);
387 * generateMouseEvent:
388 * @x: a #long int indicating the screen x coordinate of the mouse event.
389 * @y: a #long int indicating the screen y coordinate of the mouse event.
390 * @name: a string indicating which mouse event to be synthesized
391 * (e.g. "button1", "button2", "mousemove").
393 * Synthesize a mouse event at a specific screen coordinate.
394 * Not Yet Implemented.
398 generateMouseEvent (long int x, long int y, char *name);
402 * Accessible function prototypes
408 * @obj: a pointer to the #Accessible object on which to operate.
410 * Increment the reference count for an #Accessible object.
412 * Returns: (no return code implemented yet).
416 Accessible_ref (Accessible *obj);
420 * @obj: a pointer to the #Accessible object on which to operate.
422 * Decrement the reference count for an #Accessible object.
424 * Returns: (no return code implemented yet).
428 Accessible_unref (Accessible *obj);
431 * Accessible_getName:
432 * @obj: a pointer to the #Accessible object on which to operate.
434 * Get the name of an #Accessible object.
436 * Returns: a UTF-8 string indicating the name of the #Accessible object.
440 Accessible_getName (Accessible *obj);
443 * Accessible_getDescription:
444 * @obj: a pointer to the #Accessible object on which to operate.
446 * Get the description of an #Accessible object.
448 * Returns: a UTF-8 string describing the #Accessible object.
452 Accessible_getDescription (Accessible *obj);
455 * Accessible_getParent:
456 * @obj: a pointer to the #Accessible object to query.
458 * Get an #Accessible object's parent container.
460 * Returns: a pointer to the #Accessible object which contains the given
461 * #Accessible instance, or NULL if the @obj has no parent container.
465 Accessible_getParent (Accessible *obj);
468 * Accessible_getChildCount:
469 * @obj: a pointer to the #Accessible object on which to operate.
471 * Get the number of children contained by an #Accessible object.
473 * Returns: a #long indicating the number of #Accessible children
474 * contained by an #Accessible object.
478 Accessible_getChildCount (Accessible *obj);
481 * Accessible_getChildAtIndex:
483 * @obj: a pointer to the #Accessible object on which to operate.
484 * @childIndex: a #long indicating which child is specified.
486 * Get the #Accessible child of an #Accessible object at a given index.
488 * Returns: a pointer to the #Accessible child object at index
493 Accessible_getChildAtIndex (Accessible *obj,
494 long int childIndex);
497 * Accessible_getIndexInParent:
499 * @obj: a pointer to the #Accessible object on which to operate.
501 * Get the index of an #Accessible object in its containing #Accessible.
503 * Returns: a #long indicating the index of the #Accessible object
504 * in its parent (i.e. containing) #Accessible instance,
505 * or -1 if @obj has no containing parent.
509 Accessible_getIndexInParent (Accessible *obj);
512 * Accessible_getRelationSet:
513 * @obj: a pointer to the #Accessible object on which to operate.
515 * Not Yet Implemented.
517 * Returns: a pointer to an array of #AccessibleRelations.
520 AccessibleRelation **
521 Accessible_getRelationSet (Accessible *obj);
524 * Accessible_getRole:
525 * @obj: a pointer to the #Accessible object on which to operate.
527 * Get the UI role of an #Accessible object.
529 * Returns: a UTF-8 string indicating the UI role of the #Accessible object.
533 Accessible_getRole (Accessible *obj);
536 * Accessible_getStateSet:
537 * @obj: a pointer to the #Accessible object on which to operate.
539 * Not Yet Implemented.
541 * Returns: a pointer to an #AccessibleStateSet representing the object's current state.
545 Accessible_getStateSet (Accessible *obj);
547 /* Interface query methods */
550 * Accessible_isAction:
551 * @obj: a pointer to the #Accessible instance to query.
553 * Query whether the specified #Accessible implements #AccessibleAction.
555 * Returns: #TRUE if @obj implements the #AccessibleAction interface,
559 Accessible_isAction (Accessible *obj);
562 * Accessible_isComponent:
563 * @obj: a pointer to the #Accessible instance to query.
565 * Query whether the specified #Accessible implements #AccessibleComponent.
567 * Returns: #TRUE if @obj implements the #AccessibleComponent interface,
571 Accessible_isComponent (Accessible *obj);
574 * Accessible_isEditableText:
575 * @obj: a pointer to the #Accessible instance to query.
577 * Query whether the specified #Accessible implements #AccessibleEditableText.
579 * Returns: #TRUE if @obj implements the #AccessibleEditableText interface,
583 Accessible_isEditableText (Accessible *obj);
586 * Accessible_isHypertext:
587 * @obj: a pointer to the #Accessible instance to query.
589 * Query whether the specified #Accessible implements #AccessibleHypertext.
591 * Returns: #TRUE if @obj implements the #AccessibleHypertext interface,
595 Accessible_isHypertext (Accessible *obj);
598 * Accessible_isImage:
599 * @obj: a pointer to the #Accessible instance to query.
601 * Query whether the specified #Accessible implements #AccessibleImage.
603 * Returns: #TRUE if @obj implements the #AccessibleImage interface,
607 Accessible_isImage (Accessible *obj);
610 * Accessible_isSelection:
611 * @obj: a pointer to the #Accessible instance to query.
613 * Query whether the specified #Accessible implements #AccessibleSelection.
615 * Returns: #TRUE if @obj implements the #AccessibleSelection interface,
619 Accessible_isSelection (Accessible *obj);
622 * Accessible_isTable:
623 * @obj: a pointer to the #Accessible instance to query.
625 * Query whether the specified #Accessible implements #AccessibleTable.
627 * Returns: #TRUE if @obj implements the #AccessibleTable interface,
631 Accessible_isTable (Accessible *obj);
635 * @obj: a pointer to the #Accessible instance to query.
637 * Query whether the specified #Accessible implements #AccessibleText.
639 * Returns: #TRUE if @obj implements the #AccessibleText interface,
643 Accessible_isText (Accessible *obj);
646 Accessible_getAction (Accessible *obj);
649 * Accessible_getComponent:
650 * @obj: a pointer to the #Accessible instance to query.
652 * Get the #AccessibleComponent interface for an #Accessible.
654 * Returns: a pointer to an #AccessibleComponent interface instance, or
655 * NULL if @obj does not implement #AccessibleComponent.
657 AccessibleComponent *
658 Accessible_getComponent (Accessible *obj);
661 * Accessible_getEditableText:
663 * Not Yet Implemented.
666 AccessibleEditableText *
667 Accessible_getEditableText (Accessible *obj);
670 * Accessible_getHypertext:
672 * Not Yet Implemented.
675 AccessibleHypertext *
676 Accessible_getHypertext (Accessible *obj);
679 * Accessible_getImage:
681 * Not Yet Implemented.
685 Accessible_getImage (Accessible *obj);
688 * Accessible_getSelection:
690 * Not Yet Implemented.
693 AccessibleSelection *
694 Accessible_getSelection (Accessible *obj);
697 * Accessible_getTable:
699 * Not Yet Implemented.
703 Accessible_getTable (Accessible *obj);
706 * Accessible_getText:
708 * Not Yet Implemented.
712 Accessible_getText (Accessible *obj);
715 * Accessible_queryInterface:
716 * @obj: a pointer to the #Accessible instance to query.
717 * @interface_name: a UTF-8 character string specifiying the requested interface.
719 * Query an #Accessible object to for a named interface.
721 * Returns: an instance of the named interface object, if it is implemented
722 * by @obj, or NULL otherwise.
726 Accessible_queryInterface (Accessible *obj, char *interface_name);
730 * AccessibleAction function prototypes
735 AccessibleAction_ref (AccessibleAction *obj);
738 AccessibleAction_unref (AccessibleAction *obj);
741 AccessibleAction_getNActions (AccessibleAction *obj);
744 * AccessibleAction_getName:
745 * @obj: a pointer to the #AccessibleAction implementor to query.
746 * @i: a long integer indicating which action to query.
748 * Get the name of the '@i-th' action invokable on an
749 * object implementing #AccessibleAction.
751 * Returns: the 'event type' name of the action, as a UTF-8 string.
755 AccessibleAction_getName (AccessibleAction *obj, long int i);
758 * AccessibleAction_getDescription:
759 * @obj: a pointer to the #AccessibleAction to query.
760 * @i: a long integer indicating which action to query.
762 * Get the description of '@i-th' action invokable on an
763 * object implementing #AccessibleAction.
765 * Returns: a UTF-8 string describing the '@i-th' invokable action.
769 AccessibleAction_getDescription (AccessibleAction *obj,
773 AccessibleAction_doAction (AccessibleAction *obj,
777 * AccessibleAction_getKeybinding:
778 * @obj: a pointer to the #AccessibleAction implementor to query.
779 * @i: a long integer indicating which action to query.
781 * Get the keybindings for the @i-th action invokable on an
782 * object implementing #AccessibleAction, if any are defined.
784 * Returns: a UTF-8 string which can be parsed to determine the @i-th
785 * invokable action's keybindings.
789 AccessibleAction_getKeyBinding (AccessibleAction *obj,
794 * AccessibleApplication function prototypes
799 * AccessibleApplication_unref:
800 * @obj: a pointer to the #AccessibleApplication on which to operate.
802 * Decrement the reference count for an #AccessibleApplication.
804 * Returns: (no return code implemented yet).
808 AccessibleApplication_ref (AccessibleApplication *obj);
811 * AccessibleApplication_unref:
812 * @obj: a pointer to the #AccessibleApplication object on which to operate.
814 * Decrement the reference count for an #AccessibleApplication.
816 * Returns: (no return code implemented yet).
820 AccessibleApplication_unref (AccessibleApplication *obj);
823 * AccessibleApplication_getToolkitName:
824 * @obj: a pointer to the #AccessibleApplication to query.
826 * Get the name of the UI toolkit used by an #AccessibleApplication.
828 * Returns: a UTF-8 string indicating which UI toolkit is
829 * used by an application.
833 AccessibleApplication_getToolkitName (AccessibleApplication *obj);
836 * AccessibleApplication_getVersion:
837 * @obj: a pointer to the #AccessibleApplication being queried.
839 * Get the version of the at-spi bridge exported by an
840 * #AccessibleApplication instance.
842 * Returns: a UTF-8 string indicating the application's
847 AccessibleApplication_getVersion (AccessibleApplication *obj);
850 * AccessibleApplication_getID:
851 * @obj: a pointer to the #AccessibleApplication being queried.
853 * Get the unique ID assigned by the Registry to an
854 * #AccessibleApplication instance.
855 * (Not Yet Implemented by the registry).
857 * Returns: a unique #long integer associated with the application
858 * by the Registry, or 0 if the application is not registered.
861 AccessibleApplication_getID (AccessibleApplication *obj);
864 * AccessibleApplication_pause:
865 * @obj: a pointer to the #Accessible object on which to operate.
867 * Attempt to pause the application (used when client event queue is
869 * Not Yet Implemented.
871 * Returns: #TRUE if the application was paused successfully, #FALSE otherwise.
875 AccessibleApplication_pause (AccessibleApplication *obj);
878 * AccessibleApplication_resume:
879 * @obj: a pointer to the #Accessible object on which to operate.
881 * Attempt to resume the application (used after #AccessibleApplication_pause).
882 * Not Yet Implemented.
884 * Returns: #TRUE if application processing resumed successfully, #FALSE otherwise.
888 AccessibleApplication_resume (AccessibleApplication *obj);
892 * AccessibleComponent function prototypes
897 AccessibleComponent_ref (AccessibleComponent *obj);
900 AccessibleComponent_unref (AccessibleComponent *obj);
903 AccessibleComponent_contains (AccessibleComponent *obj,
906 AccessibleCoordType ctype);
909 AccessibleComponent_getAccessibleAtPoint (AccessibleComponent *obj,
912 AccessibleCoordType ctype);
915 * AccessibleComponent_getExtents:
916 * @obj: a pointer to the #AccessibleComponent to query.
917 * @x: a pointer to a #long into which the minimum x coordinate will be returned.
918 * @y: a pointer to a #long into which the minimum y coordinate will be returned.
919 * @width: a pointer to a #long into which the x extents (width) will be returned.
920 * @height: a pointer to a #long into which the y extents (height) will be returned.
921 * @ctype: the desired coordinate system into which to return the results,
922 * (e.g. COORD_TYPE_WINDOW, COORD_TYPE_SCREEN).
924 * Get the bounding box of the specified #AccessibleComponent.
928 AccessibleComponent_getExtents (AccessibleComponent *obj,
933 AccessibleCoordType ctype);
936 AccessibleComponent_getPosition (AccessibleComponent *obj,
939 AccessibleCoordType ctype);
942 AccessibleComponent_getSize (AccessibleComponent *obj,
947 AccessibleComponent_grabFocus (AccessibleComponent *obj);
951 * AccessibleEditableText function prototypes
956 AccessibleEditableText_ref (AccessibleEditableText *obj);
959 AccessibleEditableText_unref (AccessibleEditableText *obj);
962 AccessibleEditableText_setAttributes (AccessibleEditableText *obj,
963 const char *attributes,
964 long int startOffset,
968 AccessibleEditableText_setTextContents (AccessibleEditableText *obj,
969 const char *newContents);
972 AccessibleEditableText_insertText (AccessibleEditableText *obj,
978 AccessibleEditableText_copyText (AccessibleText *obj,
983 AccessibleEditableText_cutText (AccessibleEditableText *obj,
988 AccessibleEditableText_deleteText (AccessibleEditableText *obj,
993 AccessibleEditableText_pasteText (AccessibleEditableText *obj,
998 * AccessibleHyperlink function prototypes
1003 AccessibleHyperlink_getNAnchors (AccessibleHyperlink *obj);
1006 AccessibleHyperlink_getURI (AccessibleHyperlink *obj,
1010 AccessibleHyperlink_getObject (AccessibleHyperlink *obj,
1014 AccessibleHyperlink_getIndexRange (AccessibleHyperlink *obj,
1015 long int *startIndex,
1016 long int *endIndex);
1019 AccessibleHyperlink_isValid (AccessibleHyperlink *obj);
1023 * AccessibleHypertext function prototypes
1028 AccessibleHypertext_ref (AccessibleHypertext *obj);
1031 AccessibleHypertext_unref (AccessibleHypertext *obj);
1034 AccessibleHypertext_getNLinks (AccessibleHypertext *obj);
1036 AccessibleHyperlink *
1037 AccessibleHypertext_getLink (AccessibleHypertext *obj,
1038 long int linkIndex);
1041 AccessibleHypertext_getLinkIndex (AccessibleHypertext *obj,
1042 long int characterOffset);
1046 * AccessibleImage function prototypes
1051 AccessibleImage_ref (AccessibleImage *obj);
1054 AccessibleImage_unref (AccessibleImage *obj);
1057 AccessibleImage_getImageDescription (AccessibleImage *obj);
1060 AccessibleImage_getImageSize (AccessibleImage *obj,
1065 AccessibleImage_getImagePosition (AccessibleImage *obj,
1068 AccessibleCoordType ctype);
1072 * AccessibleRelation function prototypes
1077 AccessibleRelation_ref (AccessibleRelation *obj);
1080 AccessibleRelation_unref (AccessibleRelation *obj);
1082 AccessibleRelationType
1083 AccessibleRelation_getRelationType (AccessibleRelation *obj);
1086 AccessibleRelation_getNTargets (AccessibleRelation *obj);
1089 AccessibleRelation_getTarget (AccessibleRelation *obj, int i);
1094 * AccessibleSelection function prototypes
1099 AccessibleSelection_ref (AccessibleSelection *obj);
1102 AccessibleSelection_unref (AccessibleSelection *obj);
1105 AccessibleSelection_getNSelectedChildren (AccessibleSelection *obj);
1108 AccessibleSelection_getSelectedChild (AccessibleSelection *obj,
1109 long int selectedChildIndex);
1112 AccessibleSelection_selectChild (AccessibleSelection *obj,
1113 long int childIndex);
1116 AccessibleSelection_deselectSelectedChild (AccessibleSelection *obj,
1117 long int selectedChildIndex);
1120 AccessibleSelection_isChildSelected (AccessibleSelection *obj,
1121 long int childIndex);
1124 AccessibleSelection_selectAll (AccessibleSelection *obj);
1127 AccessibleSelection_clearSelection (AccessibleSelection *obj);
1132 * AccessibleStateSet function prototypes
1137 AccessibleStateSet_ref (AccessibleStateSet *obj);
1140 AccessibleStateSet_unref (AccessibleStateSet *obj);
1143 AccessibleStateSet_contains (AccessibleStateSet *obj,
1144 AccessibleState state);
1147 AccessibleStateSet_add (AccessibleStateSet *obj,
1148 AccessibleState state);
1151 AccessibleStateSet_remove (AccessibleStateSet *obj,
1152 AccessibleState state);
1155 AccessibleStateSet_equals (AccessibleStateSet *obj,
1156 AccessibleStateSet *obj2);
1159 AccessibleStateSet_compare (AccessibleStateSet *obj,
1160 AccessibleStateSet *obj2,
1161 AccessibleStateSet **differenceSet);
1164 AccessibleStateSet_isEmpty (AccessibleStateSet *obj);
1169 * AccessibleTable function prototypes
1174 AccessibleTable_ref (AccessibleTable *obj);
1177 AccessibleTable_unref (AccessibleTable *obj);
1180 AccessibleTable_getCaption (AccessibleTable *obj);
1183 AccessibleTable_getSummary (AccessibleTable *obj);
1186 AccessibleTable_getNRows (AccessibleTable *obj);
1189 AccessibleTable_getNColumns (AccessibleTable *obj);
1192 AccessibleTable_getAccessibleAt (AccessibleTable *obj,
1197 AccessibleTable_getIndexAt (AccessibleTable *obj,
1202 AccessibleTable_getRowAtIndex (AccessibleTable *obj,
1206 AccessibleTable_getColumnAtIndex (AccessibleTable *obj,
1210 AccessibleTable_getRowDescription (AccessibleTable *obj,
1214 AccessibleTable_getColumnDescription (AccessibleTable *obj,
1218 AccessibleTable_getRowExtentAt (AccessibleTable *obj,
1223 AccessibleTable_getColumnExtentAt (AccessibleTable *obj,
1228 AccessibleTable_getRowHeader (AccessibleTable *obj,
1232 AccessibleTable_getColumnHeader (AccessibleTable *obj,
1236 AccessibleTable_getNSelectedRows (AccessibleTable *obj);
1239 AccessibleTable_getSelectedRows (AccessibleTable *obj,
1240 long int **selectedRows);
1243 AccessibleTable_getNSelectedColumns (AccessibleTable *obj);
1246 AccessibleTable_getSelectedColumns (AccessibleTable *obj,
1247 long int **selectedColumns);
1250 AccessibleTable_isRowSelected (AccessibleTable *obj,
1254 AccessibleTable_isColumnSelected (AccessibleTable *obj,
1258 AccessibleTable_isSelected (AccessibleTable *obj,
1264 * AccessibleText function prototypes
1269 AccessibleText_ref (AccessibleText *obj);
1272 AccessibleText_unref (AccessibleText *obj);
1275 AccessibleText_getCharacterCount (AccessibleText *obj);
1278 AccessibleText_getText (AccessibleText *obj,
1279 long int startOffset,
1280 long int endOffset);
1283 AccessibleText_getCaretOffset (AccessibleText *obj);
1286 AccessibleText_getAttributes (AccessibleText *obj,
1288 long int *startOffset,
1289 long int *endOffset);
1293 AccessibleText_setCaretOffset (AccessibleText *obj,
1294 long int newOffset);
1297 AccessibleText_getTextBeforeOffset (AccessibleText *obj,
1299 AccessibleTextBoundaryType type,
1300 long int *startOffset,
1301 long int *endOffset);
1304 AccessibleText_getTextAtOffset (AccessibleText *obj,
1306 AccessibleTextBoundaryType type,
1307 long int *startOffset,
1308 long int *endOffset);
1311 AccessibleText_getTextAfterOffset (AccessibleText *obj,
1313 AccessibleTextBoundaryType type,
1314 long int *startOffset,
1315 long int *endOffset);
1318 AccessibleText_getCharacterAtOffset (AccessibleText *obj,
1322 AccessibleText_getCharacterExtents (AccessibleText *obj,
1328 AccessibleCoordType type);
1331 AccessibleText_getOffsetAtPoint (AccessibleText *obj,
1334 AccessibleCoordType type);
1337 AccessibleText_getNSelections (AccessibleText *obj);
1340 AccessibleText_getSelection (AccessibleText *obj,
1341 long int selectionNum,
1342 long int *startOffset,
1343 long int *endOffset);
1347 AccessibleText_addSelection (AccessibleText *obj,
1348 long int startOffset,
1349 long int endOffset);
1352 AccessibleText_removeSelection (AccessibleText *obj,
1353 long int selectionNum);
1356 AccessibleText_setSelection (AccessibleText *obj,
1357 long int selectionNum,
1358 long int startOffset,
1359 long int endOffset);
1363 * AccessibleValue Function Prototypes:
1368 AccessibleValue_ref (AccessibleValue *obj);
1371 AccessibleValue_unref (AccessibleValue *obj);
1374 AccessibleValue_getMinimumValue (AccessibleValue *obj);
1377 AccessibleValue_getCurrentValue (AccessibleValue *obj);
1380 AccessibleValue_getMaximumValue (AccessibleValue *obj);
1383 AccessibleValue_setCurrentValue (AccessibleValue *obj,
1387 spi_freeString (char *s);