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;
110 * SPI_KEYSET_ALL_KEYS:
111 * @SPI_KEYSET_ALL_KEYS: A special value for an AccessibleKeySet type, which tacitly
112 * includes all keycodes and keyvals for the specified modifier set.
114 #define SPI_KEYSET_ALL_KEYS NULL
116 typedef unsigned long AccessibleKeyMaskType;
120 * Basic SPI initialization and event loop function prototypes
127 * Connects to the accessibility registry and initializes the SPI.
129 * Returns: 0 on success, otherwise an integer error code.
136 * @isGNOMEApp: a #boolean indicating whether the client of the SPI
137 * will use the Gnome event loop or not.
139 * Starts/enters the main event loop for the SPI services.
141 * (NOTE: This method does not return control, it is exited via a call to exit()
142 * from within an event handler).
146 SPI_event_main (boolean isGNOMEApp);
149 * SPI_event_is_ready:
151 * Checks to see if an SPI event is waiting in the event queue.
152 * Used by clients that don't wish to use SPI_event_main().
153 * Not Yet Implemented.
155 * Returns: #TRUE if an event is waiting, otherwise #FALSE.
164 * Gets the next event in the SPI event queue; blocks if no event
166 * Used by clients that don't wish to use SPI_event_main().
167 * Not Yet Implemented.
169 * Returns: the next #AccessibleEvent in the SPI event queue.
173 SPI_nextEvent (boolean waitForEvent);
178 * Disconnects from the Accessibility Registry and releases resources.
179 * Not Yet Implemented.
186 * Event Listener creation and support.
190 * createAccessibleEventListener:
191 * @callback : an #AccessibleEventListenerCB callback function, or NULL.
193 * Create a new #AccessibleEventListener with a specified callback function.
195 * Returns: a pointer to a newly-created #AccessibleEventListener.
198 AccessibleEventListener *
199 createAccessibleEventListener (AccessibleEventListenerCB callback);
202 * AccessibleEventListener_addCallback:
203 * @listener: the #AccessibleEventListener instance to modify.
204 * @callback: an #AccessibleEventListenerCB function pointer.
206 * Add an in-process callback function to an existing AccessibleEventListener.
208 * Returns: #TRUE if successful, otherwise #FALSE.
212 AccessibleEventListener_addCallback (AccessibleEventListener *listener,
213 AccessibleEventListenerCB callback);
216 * AccessibleEventListener_removeCallback:
217 * @listener: the #AccessibleEventListener instance to modify.
218 * @callback: an #AccessibleEventListenerCB function pointer.
220 * Remove an in-process callback function from an existing AccessibleEventListener.
222 * Returns: #TRUE if successful, otherwise #FALSE.
226 AccessibleEventListener_removeCallback (AccessibleEventListener *listener,
227 AccessibleEventListenerCB callback);
230 * createAccessibleKeystrokeListener:
231 * @callback : an #AccessibleKeystrokeListenerCB callback function, or NULL.
233 * Create a new #AccessibleKeystrokeListener with a specified callback function.
235 * Returns: a pointer to a newly-created #AccessibleKeystrokeListener.
238 AccessibleKeystrokeListener *
239 createAccessibleKeystrokeListener (AccessibleKeystrokeListenerCB callback);
242 * KeystrokeListener_addCallback:
243 * @listener: the #KeystrokeListener instance to modify.
244 * @callback: an #KeystrokeListenerCB function pointer.
246 * Add an in-process callback function to an existing #KeystrokeListener.
248 * Returns: #TRUE if successful, otherwise #FALSE.
252 AccessibleKeystrokeListener_addCallback (AccessibleKeystrokeListener *listener,
253 AccessibleKeystrokeListenerCB callback);
256 * AccessibleKeystrokeListener_removeCallback:
257 * @listener: the #AccessibleKeystrokeListener instance to modify.
258 * @callback: an #AccessibleKeystrokeListenerCB function pointer.
260 * Remove an in-process callback function from an existing #AccessibleKeystrokeListener.
262 * Returns: #TRUE if successful, otherwise #FALSE.
266 AccessibleKeystrokeListener_removeCallback (AccessibleKeystrokeListener *listener,
267 AccessibleKeystrokeListenerCB callback);
271 * Global functions serviced by the registry
276 * registerGlobalEventListener:
277 * @listener: the #AccessibleEventListener to be registered against an event type.
278 * @callback: a character string indicating the type of events for which
279 * notification is requested. Format is
280 * EventClass:major_type:minor_type:detail
281 * where all subfields other than EventClass are optional.
282 * EventClasses include "Focus", "Window", "Mouse",
283 * and toolkit events (e.g. "Gtk", "AWT").
284 * Examples: "focus:", "Gtk:GtkWidget:button_press_event".
286 * NOTE: this string may be UTF-8, but should not contain byte value 56 (ascii ':'),
287 * except as a delimiter, since non-UTF-8 string delimiting
288 * functions are used internally. In general, listening to
289 * toolkit-specific events is not recommended.
291 * Add an in-process callback function to an existing AccessibleEventListener.
293 * Returns: #TRUE if successful, otherwise #FALSE.
297 registerGlobalEventListener (AccessibleEventListener *listener,
300 deregisterGlobalEventListener (AccessibleEventListener *listener,
303 deregisterGlobalEventListenerAll (AccessibleEventListener *listener);
309 * Get the number of virtual desktops.
310 * NOTE: currently multiple virtual desktops are not implemented, this
311 * function always returns '1'.
313 * Returns: an integer indicating the number of active virtual desktops.
321 * @i: an integer indicating which of the accessible desktops is to be returned.
323 * Get the virtual desktop indicated by index @i.
324 * NOTE: currently multiple virtual desktops are not implemented, this
325 * function always returns '1'.
327 * Returns: a pointer to the 'i-th' virtual desktop's #Accessible representation.
335 * @list: a pointer to an array of #Accessible objects.
337 * Get the list of virtual desktops. On return, @list will point
338 * to a newly-created array of virtual desktop pointers.
339 * It is the responsibility of the caller to free this array when
340 * it is no longer needed.
342 * Not Yet Implemented.
344 * Returns: an integer indicating how many virtual desktops have been
345 * placed in the list pointed to by parameter @list.
348 getDesktopList (Accessible **list);
351 * registerAccessibleKeystrokeListener:
352 * @listener: a pointer to the #AccessibleKeystrokeListener for which
353 * keystroke events are requested.
355 * [Partially Implemented.]
359 registerAccessibleKeystrokeListener (AccessibleKeystrokeListener *listener,
360 AccessibleKeySet *keys,
361 AccessibleKeyMaskType modmask,
362 AccessibleKeyEventMask eventmask,
363 AccessibleKeyListenerSyncType sync_type);
366 deregisterAccessibleKeystrokeListener (AccessibleKeystrokeListener *listener,
367 AccessibleKeyMaskType modmask);
371 * @keyval: a #long integer indicating the keycode or keysym of the key event
373 * @synth_type: a #AccessibleKeySynthType flag indicating whether @keyval
374 * is to be interpreted as a keysym rather than a keycode
375 * (SPI_KEYSYM) and whether to synthesize
376 * SPI_KEY_PRESS, SPI_KEY_RELEASE, or both (SPI_KEY_PRESSRELEASE).
378 * Synthesize a keyboard event (as if a hardware keyboard event occurred in the
379 * current UI context).
383 generateKeyEvent (long int keyval, AccessibleKeySynthType synth_type);
386 * generateMouseEvent:
387 * @x: a #long int indicating the screen x coordinate of the mouse event.
388 * @y: a #long int indicating the screen y coordinate of the mouse event.
389 * @name: a string indicating which mouse event to be synthesized
390 * (e.g. "button1", "button2", "mousemove").
392 * Synthesize a mouse event at a specific screen coordinate.
393 * Not Yet Implemented.
397 generateMouseEvent (long int x, long int y, char *name);
401 * Accessible function prototypes
407 * @obj: a pointer to the #Accessible object on which to operate.
409 * Increment the reference count for an #Accessible object.
411 * Returns: (no return code implemented yet).
415 Accessible_ref (Accessible *obj);
419 * @obj: a pointer to the #Accessible object on which to operate.
421 * Decrement the reference count for an #Accessible object.
423 * Returns: (no return code implemented yet).
427 Accessible_unref (Accessible *obj);
430 * Accessible_getName:
431 * @obj: a pointer to the #Accessible object on which to operate.
433 * Get the name of an #Accessible object.
435 * Returns: a UTF-8 string indicating the name of the #Accessible object.
439 Accessible_getName (Accessible *obj);
442 * Accessible_getDescription:
443 * @obj: a pointer to the #Accessible object on which to operate.
445 * Get the description of an #Accessible object.
447 * Returns: a UTF-8 string describing the #Accessible object.
451 Accessible_getDescription (Accessible *obj);
454 * Accessible_getParent:
455 * @obj: a pointer to the #Accessible object to query.
457 * Get an #Accessible object's parent container.
459 * Returns: a pointer to the #Accessible object which contains the given
460 * #Accessible instance, or NULL if the @obj has no parent container.
464 Accessible_getParent (Accessible *obj);
467 * Accessible_getChildCount:
468 * @obj: a pointer to the #Accessible object on which to operate.
470 * Get the number of children contained by an #Accessible object.
472 * Returns: a #long indicating the number of #Accessible children
473 * contained by an #Accessible object.
477 Accessible_getChildCount (Accessible *obj);
480 * Accessible_getChildAtIndex:
482 * @obj: a pointer to the #Accessible object on which to operate.
483 * @childIndex: a #long indicating which child is specified.
485 * Get the #Accessible child of an #Accessible object at a given index.
487 * Returns: a pointer to the #Accessible child object at index
492 Accessible_getChildAtIndex (Accessible *obj,
493 long int childIndex);
496 * Accessible_getIndexInParent:
498 * @obj: a pointer to the #Accessible object on which to operate.
500 * Get the index of an #Accessible object in its containing #Accessible.
502 * Returns: a #long indicating the index of the #Accessible object
503 * in its parent (i.e. containing) #Accessible instance,
504 * or -1 if @obj has no containing parent.
508 Accessible_getIndexInParent (Accessible *obj);
511 * Accessible_getRelationSet:
512 * @obj: a pointer to the #Accessible object on which to operate.
514 * Not Yet Implemented.
516 * Returns: a pointer to an array of #AccessibleRelations.
519 AccessibleRelation **
520 Accessible_getRelationSet (Accessible *obj);
523 * Accessible_getRole:
524 * @obj: a pointer to the #Accessible object on which to operate.
526 * Get the UI role of an #Accessible object.
528 * Returns: a UTF-8 string indicating the UI role of the #Accessible object.
532 Accessible_getRole (Accessible *obj);
535 * Accessible_getStateSet:
536 * @obj: a pointer to the #Accessible object on which to operate.
538 * Not Yet Implemented.
540 * Returns: a pointer to an #AccessibleStateSet representing the object's current state.
544 Accessible_getStateSet (Accessible *obj);
546 /* Interface query methods */
549 * Accessible_isAction:
550 * @obj: a pointer to the #Accessible instance to query.
552 * Query whether the specified #Accessible implements #AccessibleAction.
554 * Returns: #TRUE if @obj implements the #AccessibleAction interface,
558 Accessible_isAction (Accessible *obj);
561 * Accessible_isComponent:
562 * @obj: a pointer to the #Accessible instance to query.
564 * Query whether the specified #Accessible implements #AccessibleComponent.
566 * Returns: #TRUE if @obj implements the #AccessibleComponent interface,
570 Accessible_isComponent (Accessible *obj);
573 * Accessible_isEditableText:
574 * @obj: a pointer to the #Accessible instance to query.
576 * Query whether the specified #Accessible implements #AccessibleEditableText.
578 * Returns: #TRUE if @obj implements the #AccessibleEditableText interface,
582 Accessible_isEditableText (Accessible *obj);
585 * Accessible_isHypertext:
586 * @obj: a pointer to the #Accessible instance to query.
588 * Query whether the specified #Accessible implements #AccessibleHypertext.
590 * Returns: #TRUE if @obj implements the #AccessibleHypertext interface,
594 Accessible_isHypertext (Accessible *obj);
597 * Accessible_isImage:
598 * @obj: a pointer to the #Accessible instance to query.
600 * Query whether the specified #Accessible implements #AccessibleImage.
602 * Returns: #TRUE if @obj implements the #AccessibleImage interface,
606 Accessible_isImage (Accessible *obj);
609 * Accessible_isSelection:
610 * @obj: a pointer to the #Accessible instance to query.
612 * Query whether the specified #Accessible implements #AccessibleSelection.
614 * Returns: #TRUE if @obj implements the #AccessibleSelection interface,
618 Accessible_isSelection (Accessible *obj);
621 * Accessible_isTable:
622 * @obj: a pointer to the #Accessible instance to query.
624 * Query whether the specified #Accessible implements #AccessibleTable.
626 * Returns: #TRUE if @obj implements the #AccessibleTable interface,
630 Accessible_isTable (Accessible *obj);
634 * @obj: a pointer to the #Accessible instance to query.
636 * Query whether the specified #Accessible implements #AccessibleText.
638 * Returns: #TRUE if @obj implements the #AccessibleText interface,
642 Accessible_isText (Accessible *obj);
645 Accessible_getAction (Accessible *obj);
648 * Accessible_getComponent:
649 * @obj: a pointer to the #Accessible instance to query.
651 * Get the #AccessibleComponent interface for an #Accessible.
653 * Returns: a pointer to an #AccessibleComponent interface instance, or
654 * NULL if @obj does not implement #AccessibleComponent.
656 AccessibleComponent *
657 Accessible_getComponent (Accessible *obj);
660 * Accessible_getEditableText:
662 * Not Yet Implemented.
665 AccessibleEditableText *
666 Accessible_getEditableText (Accessible *obj);
669 * Accessible_getHypertext:
671 * Not Yet Implemented.
674 AccessibleHypertext *
675 Accessible_getHypertext (Accessible *obj);
678 * Accessible_getImage:
680 * Not Yet Implemented.
684 Accessible_getImage (Accessible *obj);
687 * Accessible_getSelection:
689 * Not Yet Implemented.
692 AccessibleSelection *
693 Accessible_getSelection (Accessible *obj);
696 * Accessible_getTable:
698 * Not Yet Implemented.
702 Accessible_getTable (Accessible *obj);
705 * Accessible_getText:
707 * Not Yet Implemented.
711 Accessible_getText (Accessible *obj);
714 * Accessible_queryInterface:
715 * @obj: a pointer to the #Accessible instance to query.
716 * @interface_name: a UTF-8 character string specifiying the requested interface.
718 * Query an #Accessible object to for a named interface.
720 * Returns: an instance of the named interface object, if it is implemented
721 * by @obj, or NULL otherwise.
725 Accessible_queryInterface (Accessible *obj, char *interface_name);
729 * AccessibleAction function prototypes
734 AccessibleAction_ref (AccessibleAction *obj);
737 AccessibleAction_unref (AccessibleAction *obj);
740 AccessibleAction_getNActions (AccessibleAction *obj);
743 * AccessibleAction_getName:
744 * @obj: a pointer to the #AccessibleAction implementor to query.
745 * @i: a long integer indicating which action to query.
747 * Get the name of the '@i-th' action invokable on an
748 * object implementing #AccessibleAction.
750 * Returns: the 'event type' name of the action, as a UTF-8 string.
754 AccessibleAction_getName (AccessibleAction *obj, long int i);
757 * AccessibleAction_getDescription:
758 * @obj: a pointer to the #AccessibleAction to query.
759 * @i: a long integer indicating which action to query.
761 * Get the description of '@i-th' action invokable on an
762 * object implementing #AccessibleAction.
764 * Returns: a UTF-8 string describing the '@i-th' invokable action.
768 AccessibleAction_getDescription (AccessibleAction *obj,
772 AccessibleAction_doAction (AccessibleAction *obj,
776 * AccessibleAction_getKeybinding:
777 * @obj: a pointer to the #AccessibleAction implementor to query.
778 * @i: a long integer indicating which action to query.
780 * Get the keybindings for the @i-th action invokable on an
781 * object implementing #AccessibleAction, if any are defined.
783 * Returns: a UTF-8 string which can be parsed to determine the @i-th
784 * invokable action's keybindings.
788 AccessibleAction_getKeyBinding (AccessibleAction *obj,
793 * AccessibleApplication function prototypes
798 * AccessibleApplication_unref:
799 * @obj: a pointer to the #AccessibleApplication on which to operate.
801 * Decrement the reference count for an #AccessibleApplication.
803 * Returns: (no return code implemented yet).
807 AccessibleApplication_ref (AccessibleApplication *obj);
810 * AccessibleApplication_unref:
811 * @obj: a pointer to the #AccessibleApplication object on which to operate.
813 * Decrement the reference count for an #AccessibleApplication.
815 * Returns: (no return code implemented yet).
819 AccessibleApplication_unref (AccessibleApplication *obj);
822 * AccessibleApplication_getToolkitName:
823 * @obj: a pointer to the #AccessibleApplication to query.
825 * Get the name of the UI toolkit used by an #AccessibleApplication.
827 * Returns: a UTF-8 string indicating which UI toolkit is
828 * used by an application.
832 AccessibleApplication_getToolkitName (AccessibleApplication *obj);
835 * AccessibleApplication_getVersion:
836 * @obj: a pointer to the #AccessibleApplication being queried.
838 * Get the version of the at-spi bridge exported by an
839 * #AccessibleApplication instance.
841 * Returns: a UTF-8 string indicating the application's
846 AccessibleApplication_getVersion (AccessibleApplication *obj);
849 * AccessibleApplication_getID:
850 * @obj: a pointer to the #AccessibleApplication being queried.
852 * Get the unique ID assigned by the Registry to an
853 * #AccessibleApplication instance.
854 * (Not Yet Implemented by the registry).
856 * Returns: a unique #long integer associated with the application
857 * by the Registry, or 0 if the application is not registered.
860 AccessibleApplication_getID (AccessibleApplication *obj);
863 * AccessibleApplication_pause:
864 * @obj: a pointer to the #Accessible object on which to operate.
866 * Attempt to pause the application (used when client event queue is
868 * Not Yet Implemented.
870 * Returns: #TRUE if the application was paused successfully, #FALSE otherwise.
874 AccessibleApplication_pause (AccessibleApplication *obj);
877 * AccessibleApplication_resume:
878 * @obj: a pointer to the #Accessible object on which to operate.
880 * Attempt to resume the application (used after #AccessibleApplication_pause).
881 * Not Yet Implemented.
883 * Returns: #TRUE if application processing resumed successfully, #FALSE otherwise.
887 AccessibleApplication_resume (AccessibleApplication *obj);
891 * AccessibleComponent function prototypes
896 AccessibleComponent_ref (AccessibleComponent *obj);
899 AccessibleComponent_unref (AccessibleComponent *obj);
902 AccessibleComponent_contains (AccessibleComponent *obj,
905 AccessibleCoordType ctype);
908 AccessibleComponent_getAccessibleAtPoint (AccessibleComponent *obj,
911 AccessibleCoordType ctype);
914 * AccessibleComponent_getExtents:
915 * @obj: a pointer to the #AccessibleComponent to query.
916 * @x: a pointer to a #long into which the minimum x coordinate will be returned.
917 * @y: a pointer to a #long into which the minimum y coordinate will be returned.
918 * @width: a pointer to a #long into which the x extents (width) will be returned.
919 * @height: a pointer to a #long into which the y extents (height) will be returned.
920 * @ctype: the desired coordinate system into which to return the results,
921 * (e.g. COORD_TYPE_WINDOW, COORD_TYPE_SCREEN).
923 * Get the bounding box of the specified #AccessibleComponent.
927 AccessibleComponent_getExtents (AccessibleComponent *obj,
932 AccessibleCoordType ctype);
935 AccessibleComponent_getPosition (AccessibleComponent *obj,
938 AccessibleCoordType ctype);
941 AccessibleComponent_getSize (AccessibleComponent *obj,
946 AccessibleComponent_grabFocus (AccessibleComponent *obj);
950 * AccessibleEditableText function prototypes
955 AccessibleEditableText_ref (AccessibleEditableText *obj);
958 AccessibleEditableText_unref (AccessibleEditableText *obj);
961 AccessibleEditableText_setAttributes (AccessibleEditableText *obj,
962 const char *attributes,
963 long int startOffset,
967 AccessibleEditableText_setTextContents (AccessibleEditableText *obj,
968 const char *newContents);
971 AccessibleEditableText_insertText (AccessibleEditableText *obj,
977 AccessibleEditableText_copyText (AccessibleText *obj,
982 AccessibleEditableText_cutText (AccessibleEditableText *obj,
987 AccessibleEditableText_deleteText (AccessibleEditableText *obj,
992 AccessibleEditableText_pasteText (AccessibleEditableText *obj,
997 * AccessibleHyperlink function prototypes
1002 AccessibleHyperlink_getNAnchors (AccessibleHyperlink *obj);
1005 AccessibleHyperlink_getURI (AccessibleHyperlink *obj,
1009 AccessibleHyperlink_getObject (AccessibleHyperlink *obj,
1013 AccessibleHyperlink_getIndexRange (AccessibleHyperlink *obj,
1014 long int *startIndex,
1015 long int *endIndex);
1018 AccessibleHyperlink_isValid (AccessibleHyperlink *obj);
1022 * AccessibleHypertext function prototypes
1027 AccessibleHypertext_ref (AccessibleHypertext *obj);
1030 AccessibleHypertext_unref (AccessibleHypertext *obj);
1033 AccessibleHypertext_getNLinks (AccessibleHypertext *obj);
1035 AccessibleHyperlink *
1036 AccessibleHypertext_getLink (AccessibleHypertext *obj,
1037 long int linkIndex);
1040 AccessibleHypertext_getLinkIndex (AccessibleHypertext *obj,
1041 long int characterOffset);
1045 * AccessibleImage function prototypes
1050 AccessibleImage_ref (AccessibleImage *obj);
1053 AccessibleImage_unref (AccessibleImage *obj);
1056 AccessibleImage_getImageDescription (AccessibleImage *obj);
1059 AccessibleImage_getImageSize (AccessibleImage *obj,
1064 AccessibleImage_getImagePosition (AccessibleImage *obj,
1067 AccessibleCoordType ctype);
1071 * AccessibleRelation function prototypes
1076 AccessibleRelation_ref (AccessibleRelation *obj);
1079 AccessibleRelation_unref (AccessibleRelation *obj);
1081 AccessibleRelationType
1082 AccessibleRelation_getRelationType (AccessibleRelation *obj);
1085 AccessibleRelation_getNTargets (AccessibleRelation *obj);
1088 AccessibleRelation_getTarget (AccessibleRelation *obj, int i);
1093 * AccessibleSelection function prototypes
1098 AccessibleSelection_ref (AccessibleSelection *obj);
1101 AccessibleSelection_unref (AccessibleSelection *obj);
1104 AccessibleSelection_getNSelectedChildren (AccessibleSelection *obj);
1107 AccessibleSelection_getSelectedChild (AccessibleSelection *obj,
1108 long int selectedChildIndex);
1111 AccessibleSelection_selectChild (AccessibleSelection *obj,
1112 long int childIndex);
1115 AccessibleSelection_deselectSelectedChild (AccessibleSelection *obj,
1116 long int selectedChildIndex);
1119 AccessibleSelection_isChildSelected (AccessibleSelection *obj,
1120 long int childIndex);
1123 AccessibleSelection_selectAll (AccessibleSelection *obj);
1126 AccessibleSelection_clearSelection (AccessibleSelection *obj);
1131 * AccessibleStateSet function prototypes
1136 AccessibleStateSet_ref (AccessibleStateSet *obj);
1139 AccessibleStateSet_unref (AccessibleStateSet *obj);
1142 AccessibleStateSet_contains (AccessibleStateSet *obj,
1143 AccessibleState state);
1146 AccessibleStateSet_add (AccessibleStateSet *obj,
1147 AccessibleState state);
1150 AccessibleStateSet_remove (AccessibleStateSet *obj,
1151 AccessibleState state);
1154 AccessibleStateSet_equals (AccessibleStateSet *obj,
1155 AccessibleStateSet *obj2);
1158 AccessibleStateSet_compare (AccessibleStateSet *obj,
1159 AccessibleStateSet *obj2,
1160 AccessibleStateSet **differenceSet);
1163 AccessibleStateSet_isEmpty (AccessibleStateSet *obj);
1168 * AccessibleTable function prototypes
1173 AccessibleTable_ref (AccessibleTable *obj);
1176 AccessibleTable_unref (AccessibleTable *obj);
1179 AccessibleTable_getCaption (AccessibleTable *obj);
1182 AccessibleTable_getSummary (AccessibleTable *obj);
1185 AccessibleTable_getNRows (AccessibleTable *obj);
1188 AccessibleTable_getNColumns (AccessibleTable *obj);
1191 AccessibleTable_getAccessibleAt (AccessibleTable *obj,
1196 AccessibleTable_getIndexAt (AccessibleTable *obj,
1201 AccessibleTable_getRowAtIndex (AccessibleTable *obj,
1205 AccessibleTable_getColumnAtIndex (AccessibleTable *obj,
1209 AccessibleTable_getRowDescription (AccessibleTable *obj,
1213 AccessibleTable_getColumnDescription (AccessibleTable *obj,
1217 AccessibleTable_getRowExtentAt (AccessibleTable *obj,
1222 AccessibleTable_getColumnExtentAt (AccessibleTable *obj,
1227 AccessibleTable_getRowHeader (AccessibleTable *obj,
1231 AccessibleTable_getColumnHeader (AccessibleTable *obj,
1235 AccessibleTable_getNSelectedRows (AccessibleTable *obj);
1238 AccessibleTable_getSelectedRows (AccessibleTable *obj,
1239 long int **selectedRows);
1242 AccessibleTable_getNSelectedColumns (AccessibleTable *obj);
1245 AccessibleTable_getSelectedColumns (AccessibleTable *obj,
1246 long int **selectedColumns);
1249 AccessibleTable_isRowSelected (AccessibleTable *obj,
1253 AccessibleTable_isColumnSelected (AccessibleTable *obj,
1257 AccessibleTable_isSelected (AccessibleTable *obj,
1263 * AccessibleText function prototypes
1268 AccessibleText_ref (AccessibleText *obj);
1271 AccessibleText_unref (AccessibleText *obj);
1274 AccessibleText_getCharacterCount (AccessibleText *obj);
1277 AccessibleText_getText (AccessibleText *obj,
1278 long int startOffset,
1279 long int endOffset);
1282 AccessibleText_getCaretOffset (AccessibleText *obj);
1285 AccessibleText_getAttributes (AccessibleText *obj,
1287 long int *startOffset,
1288 long int *endOffset);
1292 AccessibleText_setCaretOffset (AccessibleText *obj,
1293 long int newOffset);
1296 AccessibleText_getTextBeforeOffset (AccessibleText *obj,
1298 AccessibleTextBoundaryType type,
1299 long int *startOffset,
1300 long int *endOffset);
1303 AccessibleText_getTextAtOffset (AccessibleText *obj,
1305 AccessibleTextBoundaryType type,
1306 long int *startOffset,
1307 long int *endOffset);
1310 AccessibleText_getTextAfterOffset (AccessibleText *obj,
1312 AccessibleTextBoundaryType type,
1313 long int *startOffset,
1314 long int *endOffset);
1317 AccessibleText_getCharacterAtOffset (AccessibleText *obj,
1321 AccessibleText_getCharacterExtents (AccessibleText *obj,
1327 AccessibleCoordType type);
1330 AccessibleText_getOffsetAtPoint (AccessibleText *obj,
1333 AccessibleCoordType type);
1336 AccessibleText_getNSelections (AccessibleText *obj);
1339 AccessibleText_getSelection (AccessibleText *obj,
1340 long int selectionNum,
1341 long int *startOffset,
1342 long int *endOffset);
1346 AccessibleText_addSelection (AccessibleText *obj,
1347 long int startOffset,
1348 long int endOffset);
1351 AccessibleText_removeSelection (AccessibleText *obj,
1352 long int selectionNum);
1355 AccessibleText_setSelection (AccessibleText *obj,
1356 long int selectionNum,
1357 long int startOffset,
1358 long int endOffset);
1362 * AccessibleValue Function Prototypes:
1367 AccessibleValue_ref (AccessibleValue *obj);
1370 AccessibleValue_unref (AccessibleValue *obj);
1373 AccessibleValue_getMinimumValue (AccessibleValue *obj);
1376 AccessibleValue_getCurrentValue (AccessibleValue *obj);
1379 AccessibleValue_getMaximumValue (AccessibleValue *obj);
1382 AccessibleValue_setCurrentValue (AccessibleValue *obj,
1386 spi_freeString (char *s);