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;
77 * AccessibleComponentLayer:
78 * @SPI_LAYER_INVALID: The layer cannot be determined or is somehow undefined.
79 * @SPI_LAYER_BACKGROUND: Component belongs to the destop background.
80 * @SPI_LAYER_CANVAS: Component is a canvas backdrop or drawing area.
81 * @SPI_LAYER_WIDGET: Component is a 'normal' widget.
82 * @SPI_LAYER_MDI: Component is drawn in the MDI layer and may have valid
83 * Z-information relative to other MDI-layer components.
84 * @SPI_LAYER_POPUP: Component is in the popup layer, above other widgets and
86 * @SPI_LAYER_OVERLAY: Component is in the overlay plane - this value is reserved
88 * @SPI_LAYER_LAST_DEFINED: Used to determine the last valid value in the enum,
89 * should not be encountered.
99 SPI_LAYER_LAST_DEFINED
100 } AccessibleComponentLayer;
109 * Structure containing identifying information about a set of keycode or
112 typedef struct _AccessibleKeySet
114 unsigned long *keysyms;
115 unsigned short *keycodes;
120 * SPI_KEYSET_ALL_KEYS:
121 * @SPI_KEYSET_ALL_KEYS: A special value for an AccessibleKeySet type, which tacitly
122 * includes all keycodes and keyvals for the specified modifier set.
124 #define SPI_KEYSET_ALL_KEYS NULL
126 typedef unsigned long AccessibleKeyMaskType;
130 * Basic SPI initialization and event loop function prototypes
137 * Connects to the accessibility registry and initializes the SPI.
139 * Returns: 0 on success, otherwise an integer error code.
146 * @isGNOMEApp: a #SPIBoolean indicating whether the client of the SPI
147 * will use the Gnome event loop or not.
149 * Starts/enters the main event loop for the SPI services.
151 * (NOTE: This method does not return control, it is exited via a call to exit()
152 * from within an event handler).
156 SPI_event_main (SPIBoolean isGNOMEApp);
159 * SPI_event_is_ready:
161 * Checks to see if an SPI event is waiting in the event queue.
162 * Used by clients that don't wish to use SPI_event_main().
163 * Not Yet Implemented.
165 * Returns: #TRUE if an event is waiting, otherwise #FALSE.
174 * Gets the next event in the SPI event queue; blocks if no event
176 * Used by clients that don't wish to use SPI_event_main().
177 * Not Yet Implemented.
179 * Returns: the next #AccessibleEvent in the SPI event queue.
183 SPI_nextEvent (SPIBoolean waitForEvent);
188 * Disconnects from the Accessibility Registry and releases resources.
189 * Not Yet Implemented.
196 * Event Listener creation and support.
200 * createAccessibleEventListener:
201 * @callback : an #AccessibleEventListenerCB callback function, or NULL.
203 * Create a new #AccessibleEventListener with a specified callback function.
205 * Returns: a pointer to a newly-created #AccessibleEventListener.
208 AccessibleEventListener *
209 createAccessibleEventListener (AccessibleEventListenerCB callback);
212 * AccessibleEventListener_addCallback:
213 * @listener: the #AccessibleEventListener instance to modify.
214 * @callback: an #AccessibleEventListenerCB function pointer.
216 * Add an in-process callback function to an existing AccessibleEventListener.
218 * Returns: #TRUE if successful, otherwise #FALSE.
222 AccessibleEventListener_addCallback (AccessibleEventListener *listener,
223 AccessibleEventListenerCB callback);
226 * AccessibleEventListener_removeCallback:
227 * @listener: the #AccessibleEventListener instance to modify.
228 * @callback: an #AccessibleEventListenerCB function pointer.
230 * Remove an in-process callback function from an existing AccessibleEventListener.
232 * Returns: #TRUE if successful, otherwise #FALSE.
236 AccessibleEventListener_removeCallback (AccessibleEventListener *listener,
237 AccessibleEventListenerCB callback);
240 * createAccessibleKeystrokeListener:
241 * @callback : an #AccessibleKeystrokeListenerCB callback function, or NULL.
243 * Create a new #AccessibleKeystrokeListener with a specified callback function.
245 * Returns: a pointer to a newly-created #AccessibleKeystrokeListener.
248 AccessibleKeystrokeListener *
249 createAccessibleKeystrokeListener (AccessibleKeystrokeListenerCB callback);
252 * KeystrokeListener_addCallback:
253 * @listener: the #KeystrokeListener instance to modify.
254 * @callback: an #KeystrokeListenerCB function pointer.
256 * Add an in-process callback function to an existing #KeystrokeListener.
258 * Returns: #TRUE if successful, otherwise #FALSE.
262 AccessibleKeystrokeListener_addCallback (AccessibleKeystrokeListener *listener,
263 AccessibleKeystrokeListenerCB callback);
266 * AccessibleKeystrokeListener_removeCallback:
267 * @listener: the #AccessibleKeystrokeListener instance to modify.
268 * @callback: an #AccessibleKeystrokeListenerCB function pointer.
270 * Remove an in-process callback function from an existing #AccessibleKeystrokeListener.
272 * Returns: #TRUE if successful, otherwise #FALSE.
276 AccessibleKeystrokeListener_removeCallback (AccessibleKeystrokeListener *listener,
277 AccessibleKeystrokeListenerCB callback);
281 * Global functions serviced by the registry
286 * registerGlobalEventListener:
287 * @listener: the #AccessibleEventListener to be registered against an event type.
288 * @callback: a character string indicating the type of events for which
289 * notification is requested. Format is
290 * EventClass:major_type:minor_type:detail
291 * where all subfields other than EventClass are optional.
292 * EventClasses include "Focus", "Window", "Mouse",
293 * and toolkit events (e.g. "Gtk", "AWT").
294 * Examples: "focus:", "Gtk:GtkWidget:button_press_event".
296 * NOTE: this string may be UTF-8, but should not contain byte value 56 (ascii ':'),
297 * except as a delimiter, since non-UTF-8 string delimiting
298 * functions are used internally. In general, listening to
299 * toolkit-specific events is not recommended.
301 * Add an in-process callback function to an existing AccessibleEventListener.
303 * Returns: #TRUE if successful, otherwise #FALSE.
307 registerGlobalEventListener (AccessibleEventListener *listener,
310 deregisterGlobalEventListener (AccessibleEventListener *listener,
313 deregisterGlobalEventListenerAll (AccessibleEventListener *listener);
319 * Get the number of virtual desktops.
320 * NOTE: currently multiple virtual desktops are not implemented, this
321 * function always returns '1'.
323 * Returns: an integer indicating the number of active virtual desktops.
331 * @i: an integer indicating which of the accessible desktops is to be returned.
333 * Get the virtual desktop indicated by index @i.
334 * NOTE: currently multiple virtual desktops are not implemented, this
335 * function always returns '1'.
337 * Returns: a pointer to the 'i-th' virtual desktop's #Accessible representation.
345 * @list: a pointer to an array of #Accessible objects.
347 * Get the list of virtual desktops. On return, @list will point
348 * to a newly-created array of virtual desktop pointers.
349 * It is the responsibility of the caller to free this array when
350 * it is no longer needed.
352 * Not Yet Implemented.
354 * Returns: an integer indicating how many virtual desktops have been
355 * placed in the list pointed to by parameter @list.
358 getDesktopList (Accessible **list);
361 * registerAccessibleKeystrokeListener:
362 * @listener: a pointer to the #AccessibleKeystrokeListener for which
363 * keystroke events are requested.
365 * [Partially Implemented.]
369 registerAccessibleKeystrokeListener (AccessibleKeystrokeListener *listener,
370 AccessibleKeySet *keys,
371 AccessibleKeyMaskType modmask,
372 AccessibleKeyEventMask eventmask,
373 AccessibleKeyListenerSyncType sync_type);
376 deregisterAccessibleKeystrokeListener (AccessibleKeystrokeListener *listener,
377 AccessibleKeyMaskType modmask);
381 * @keyval: a #long integer indicating the keycode or keysym of the key event
383 * @synth_type: a #AccessibleKeySynthType flag indicating whether @keyval
384 * is to be interpreted as a keysym rather than a keycode
385 * (SPI_KEYSYM) and whether to synthesize
386 * SPI_KEY_PRESS, SPI_KEY_RELEASE, or both (SPI_KEY_PRESSRELEASE).
388 * Synthesize a keyboard event (as if a hardware keyboard event occurred in the
389 * current UI context).
393 generateKeyEvent (long int keyval, AccessibleKeySynthType synth_type);
396 * generateMouseEvent:
397 * @x: a #long int indicating the screen x coordinate of the mouse event.
398 * @y: a #long int indicating the screen y coordinate of the mouse event.
399 * @name: a string indicating which mouse event to be synthesized
400 * (e.g. "button1", "button2", "mousemove").
402 * Synthesize a mouse event at a specific screen coordinate.
403 * Not Yet Implemented.
407 generateMouseEvent (long int x, long int y, char *name);
411 * Accessible function prototypes
417 * @obj: a pointer to the #Accessible object on which to operate.
419 * Increment the reference count for an #Accessible object.
421 * Returns: (no return code implemented yet).
425 Accessible_ref (Accessible *obj);
429 * @obj: a pointer to the #Accessible object on which to operate.
431 * Decrement the reference count for an #Accessible object.
433 * Returns: (no return code implemented yet).
437 Accessible_unref (Accessible *obj);
440 * Accessible_getName:
441 * @obj: a pointer to the #Accessible object on which to operate.
443 * Get the name of an #Accessible object.
445 * Returns: a UTF-8 string indicating the name of the #Accessible object.
449 Accessible_getName (Accessible *obj);
452 * Accessible_getDescription:
453 * @obj: a pointer to the #Accessible object on which to operate.
455 * Get the description of an #Accessible object.
457 * Returns: a UTF-8 string describing the #Accessible object.
461 Accessible_getDescription (Accessible *obj);
464 * Accessible_getParent:
465 * @obj: a pointer to the #Accessible object to query.
467 * Get an #Accessible object's parent container.
469 * Returns: a pointer to the #Accessible object which contains the given
470 * #Accessible instance, or NULL if the @obj has no parent container.
474 Accessible_getParent (Accessible *obj);
477 * Accessible_getChildCount:
478 * @obj: a pointer to the #Accessible object on which to operate.
480 * Get the number of children contained by an #Accessible object.
482 * Returns: a #long indicating the number of #Accessible children
483 * contained by an #Accessible object.
487 Accessible_getChildCount (Accessible *obj);
490 * Accessible_getChildAtIndex:
492 * @obj: a pointer to the #Accessible object on which to operate.
493 * @childIndex: a #long indicating which child is specified.
495 * Get the #Accessible child of an #Accessible object at a given index.
497 * Returns: a pointer to the #Accessible child object at index
502 Accessible_getChildAtIndex (Accessible *obj,
503 long int childIndex);
506 * Accessible_getIndexInParent:
508 * @obj: a pointer to the #Accessible object on which to operate.
510 * Get the index of an #Accessible object in its containing #Accessible.
512 * Returns: a #long indicating the index of the #Accessible object
513 * in its parent (i.e. containing) #Accessible instance,
514 * or -1 if @obj has no containing parent.
518 Accessible_getIndexInParent (Accessible *obj);
521 * Accessible_getRelationSet:
522 * @obj: a pointer to the #Accessible object on which to operate.
524 * Not Yet Implemented.
526 * Returns: a pointer to an array of #AccessibleRelations.
529 AccessibleRelation **
530 Accessible_getRelationSet (Accessible *obj);
533 * Accessible_getRole:
534 * @obj: a pointer to the #Accessible object on which to operate.
536 * Get the UI role of an #Accessible object.
538 * Returns: a UTF-8 string indicating the UI role of the #Accessible object.
542 Accessible_getRole (Accessible *obj);
545 * Accessible_getStateSet:
546 * @obj: a pointer to the #Accessible object on which to operate.
548 * Not Yet Implemented.
550 * Returns: a pointer to an #AccessibleStateSet representing the object's current state.
554 Accessible_getStateSet (Accessible *obj);
556 /* Interface query methods */
559 * Accessible_isAction:
560 * @obj: a pointer to the #Accessible instance to query.
562 * Query whether the specified #Accessible implements #AccessibleAction.
564 * Returns: #TRUE if @obj implements the #AccessibleAction interface,
568 Accessible_isAction (Accessible *obj);
571 * Accessible_isComponent:
572 * @obj: a pointer to the #Accessible instance to query.
574 * Query whether the specified #Accessible implements #AccessibleComponent.
576 * Returns: #TRUE if @obj implements the #AccessibleComponent interface,
580 Accessible_isComponent (Accessible *obj);
583 * Accessible_isEditableText:
584 * @obj: a pointer to the #Accessible instance to query.
586 * Query whether the specified #Accessible implements #AccessibleEditableText.
588 * Returns: #TRUE if @obj implements the #AccessibleEditableText interface,
592 Accessible_isEditableText (Accessible *obj);
595 * Accessible_isHypertext:
596 * @obj: a pointer to the #Accessible instance to query.
598 * Query whether the specified #Accessible implements #AccessibleHypertext.
600 * Returns: #TRUE if @obj implements the #AccessibleHypertext interface,
604 Accessible_isHypertext (Accessible *obj);
607 * Accessible_isImage:
608 * @obj: a pointer to the #Accessible instance to query.
610 * Query whether the specified #Accessible implements #AccessibleImage.
612 * Returns: #TRUE if @obj implements the #AccessibleImage interface,
616 Accessible_isImage (Accessible *obj);
619 * Accessible_isSelection:
620 * @obj: a pointer to the #Accessible instance to query.
622 * Query whether the specified #Accessible implements #AccessibleSelection.
624 * Returns: #TRUE if @obj implements the #AccessibleSelection interface,
628 Accessible_isSelection (Accessible *obj);
631 * Accessible_isTable:
632 * @obj: a pointer to the #Accessible instance to query.
634 * Query whether the specified #Accessible implements #AccessibleTable.
636 * Returns: #TRUE if @obj implements the #AccessibleTable interface,
640 Accessible_isTable (Accessible *obj);
644 * @obj: a pointer to the #Accessible instance to query.
646 * Query whether the specified #Accessible implements #AccessibleText.
648 * Returns: #TRUE if @obj implements the #AccessibleText interface,
652 Accessible_isText (Accessible *obj);
655 Accessible_getAction (Accessible *obj);
658 * Accessible_getComponent:
659 * @obj: a pointer to the #Accessible instance to query.
661 * Get the #AccessibleComponent interface for an #Accessible.
663 * Returns: a pointer to an #AccessibleComponent interface instance, or
664 * NULL if @obj does not implement #AccessibleComponent.
666 AccessibleComponent *
667 Accessible_getComponent (Accessible *obj);
670 * Accessible_getEditableText:
672 * Not Yet Implemented.
675 AccessibleEditableText *
676 Accessible_getEditableText (Accessible *obj);
679 * Accessible_getHypertext:
681 * Not Yet Implemented.
684 AccessibleHypertext *
685 Accessible_getHypertext (Accessible *obj);
688 * Accessible_getImage:
690 * Not Yet Implemented.
694 Accessible_getImage (Accessible *obj);
697 * Accessible_getSelection:
699 * Not Yet Implemented.
702 AccessibleSelection *
703 Accessible_getSelection (Accessible *obj);
706 * Accessible_getTable:
708 * Not Yet Implemented.
712 Accessible_getTable (Accessible *obj);
715 * Accessible_getText:
717 * Not Yet Implemented.
721 Accessible_getText (Accessible *obj);
724 * Accessible_queryInterface:
725 * @obj: a pointer to the #Accessible instance to query.
726 * @interface_name: a UTF-8 character string specifiying the requested interface.
728 * Query an #Accessible object to for a named interface.
730 * Returns: an instance of the named interface object, if it is implemented
731 * by @obj, or NULL otherwise.
735 Accessible_queryInterface (Accessible *obj, char *interface_name);
739 * AccessibleAction function prototypes
744 AccessibleAction_ref (AccessibleAction *obj);
747 AccessibleAction_unref (AccessibleAction *obj);
750 AccessibleAction_getNActions (AccessibleAction *obj);
753 * AccessibleAction_getName:
754 * @obj: a pointer to the #AccessibleAction implementor to query.
755 * @i: a long integer indicating which action to query.
757 * Get the name of the '@i-th' action invokable on an
758 * object implementing #AccessibleAction.
760 * Returns: the 'event type' name of the action, as a UTF-8 string.
764 AccessibleAction_getName (AccessibleAction *obj, long int i);
767 * AccessibleAction_getDescription:
768 * @obj: a pointer to the #AccessibleAction to query.
769 * @i: a long integer indicating which action to query.
771 * Get the description of '@i-th' action invokable on an
772 * object implementing #AccessibleAction.
774 * Returns: a UTF-8 string describing the '@i-th' invokable action.
778 AccessibleAction_getDescription (AccessibleAction *obj,
782 AccessibleAction_doAction (AccessibleAction *obj,
786 * AccessibleAction_getKeybinding:
787 * @obj: a pointer to the #AccessibleAction implementor to query.
788 * @i: a long integer indicating which action to query.
790 * Get the keybindings for the @i-th action invokable on an
791 * object implementing #AccessibleAction, if any are defined.
793 * Returns: a UTF-8 string which can be parsed to determine the @i-th
794 * invokable action's keybindings.
798 AccessibleAction_getKeyBinding (AccessibleAction *obj,
803 * AccessibleApplication function prototypes
808 * AccessibleApplication_unref:
809 * @obj: a pointer to the #AccessibleApplication on which to operate.
811 * Decrement the reference count for an #AccessibleApplication.
813 * Returns: (no return code implemented yet).
817 AccessibleApplication_ref (AccessibleApplication *obj);
820 * AccessibleApplication_unref:
821 * @obj: a pointer to the #AccessibleApplication object on which to operate.
823 * Decrement the reference count for an #AccessibleApplication.
825 * Returns: (no return code implemented yet).
829 AccessibleApplication_unref (AccessibleApplication *obj);
832 * AccessibleApplication_getToolkitName:
833 * @obj: a pointer to the #AccessibleApplication to query.
835 * Get the name of the UI toolkit used by an #AccessibleApplication.
837 * Returns: a UTF-8 string indicating which UI toolkit is
838 * used by an application.
842 AccessibleApplication_getToolkitName (AccessibleApplication *obj);
845 * AccessibleApplication_getVersion:
846 * @obj: a pointer to the #AccessibleApplication being queried.
848 * Get the version of the at-spi bridge exported by an
849 * #AccessibleApplication instance.
851 * Returns: a UTF-8 string indicating the application's
856 AccessibleApplication_getVersion (AccessibleApplication *obj);
859 * AccessibleApplication_getID:
860 * @obj: a pointer to the #AccessibleApplication being queried.
862 * Get the unique ID assigned by the Registry to an
863 * #AccessibleApplication instance.
864 * (Not Yet Implemented by the registry).
866 * Returns: a unique #long integer associated with the application
867 * by the Registry, or 0 if the application is not registered.
870 AccessibleApplication_getID (AccessibleApplication *obj);
873 * AccessibleApplication_pause:
874 * @obj: a pointer to the #Accessible object on which to operate.
876 * Attempt to pause the application (used when client event queue is
878 * Not Yet Implemented.
880 * Returns: #TRUE if the application was paused successfully, #FALSE otherwise.
884 AccessibleApplication_pause (AccessibleApplication *obj);
887 * AccessibleApplication_resume:
888 * @obj: a pointer to the #Accessible object on which to operate.
890 * Attempt to resume the application (used after #AccessibleApplication_pause).
891 * Not Yet Implemented.
893 * Returns: #TRUE if application processing resumed successfully, #FALSE otherwise.
897 AccessibleApplication_resume (AccessibleApplication *obj);
901 * AccessibleComponent function prototypes
906 AccessibleComponent_ref (AccessibleComponent *obj);
909 AccessibleComponent_unref (AccessibleComponent *obj);
912 AccessibleComponent_contains (AccessibleComponent *obj,
915 AccessibleCoordType ctype);
918 AccessibleComponent_getAccessibleAtPoint (AccessibleComponent *obj,
921 AccessibleCoordType ctype);
924 * AccessibleComponent_getExtents:
925 * @obj: a pointer to the #AccessibleComponent to query.
926 * @x: a pointer to a #long into which the minimum x coordinate will be returned.
927 * @y: a pointer to a #long into which the minimum y coordinate will be returned.
928 * @width: a pointer to a #long into which the x extents (width) will be returned.
929 * @height: a pointer to a #long into which the y extents (height) will be returned.
930 * @ctype: the desired coordinate system into which to return the results,
931 * (e.g. COORD_TYPE_WINDOW, COORD_TYPE_SCREEN).
933 * Get the bounding box of the specified #AccessibleComponent.
937 AccessibleComponent_getExtents (AccessibleComponent *obj,
942 AccessibleCoordType ctype);
945 AccessibleComponent_getPosition (AccessibleComponent *obj,
948 AccessibleCoordType ctype);
951 AccessibleComponent_getSize (AccessibleComponent *obj,
956 * AccessibleComponent_getLayer:
957 * @obj: a pointer to the #AccessibleComponent to query.
959 * Query which layer the component is painted into, to help determine its
960 * visibility in terms of stacking order.
962 * Returns: the #AccessibleComponentLayer into which this component is painted.
964 AccessibleComponentLayer
965 AccessibleComponent_getLayer (AccessibleComponent *obj);
968 * AccessibleComponent_getMDIZOrder:
969 * @obj: a pointer to the #AccessibleComponent to query.
971 * Query the z stacking order of a component which is in the MDI layer.
973 * Returns: a short integer indicating the stacking order of the component
974 * in the MDI layer, or -1 if the component is not in the MDI layer.
977 AccessibleComponent_getMDIZOrder (AccessibleComponent *obj);
980 AccessibleComponent_grabFocus (AccessibleComponent *obj);
984 * AccessibleEditableText function prototypes
989 AccessibleEditableText_ref (AccessibleEditableText *obj);
992 AccessibleEditableText_unref (AccessibleEditableText *obj);
995 AccessibleEditableText_setAttributes (AccessibleEditableText *obj,
996 const char *attributes,
997 long int startOffset,
1001 AccessibleEditableText_setTextContents (AccessibleEditableText *obj,
1002 const char *newContents);
1005 AccessibleEditableText_insertText (AccessibleEditableText *obj,
1011 AccessibleEditableText_copyText (AccessibleText *obj,
1016 AccessibleEditableText_cutText (AccessibleEditableText *obj,
1021 AccessibleEditableText_deleteText (AccessibleEditableText *obj,
1026 AccessibleEditableText_pasteText (AccessibleEditableText *obj,
1031 * AccessibleHyperlink function prototypes
1036 AccessibleHyperlink_getNAnchors (AccessibleHyperlink *obj);
1039 AccessibleHyperlink_getURI (AccessibleHyperlink *obj,
1043 AccessibleHyperlink_getObject (AccessibleHyperlink *obj,
1047 AccessibleHyperlink_getIndexRange (AccessibleHyperlink *obj,
1048 long int *startIndex,
1049 long int *endIndex);
1052 AccessibleHyperlink_isValid (AccessibleHyperlink *obj);
1056 * AccessibleHypertext function prototypes
1061 AccessibleHypertext_ref (AccessibleHypertext *obj);
1064 AccessibleHypertext_unref (AccessibleHypertext *obj);
1067 AccessibleHypertext_getNLinks (AccessibleHypertext *obj);
1069 AccessibleHyperlink *
1070 AccessibleHypertext_getLink (AccessibleHypertext *obj,
1071 long int linkIndex);
1074 AccessibleHypertext_getLinkIndex (AccessibleHypertext *obj,
1075 long int characterOffset);
1079 * AccessibleImage function prototypes
1084 AccessibleImage_ref (AccessibleImage *obj);
1087 AccessibleImage_unref (AccessibleImage *obj);
1090 AccessibleImage_getImageDescription (AccessibleImage *obj);
1093 AccessibleImage_getImageSize (AccessibleImage *obj,
1098 AccessibleImage_getImagePosition (AccessibleImage *obj,
1101 AccessibleCoordType ctype);
1105 * AccessibleRelation function prototypes
1110 AccessibleRelation_ref (AccessibleRelation *obj);
1113 AccessibleRelation_unref (AccessibleRelation *obj);
1115 AccessibleRelationType
1116 AccessibleRelation_getRelationType (AccessibleRelation *obj);
1119 AccessibleRelation_getNTargets (AccessibleRelation *obj);
1122 AccessibleRelation_getTarget (AccessibleRelation *obj, int i);
1127 * AccessibleSelection function prototypes
1132 AccessibleSelection_ref (AccessibleSelection *obj);
1135 AccessibleSelection_unref (AccessibleSelection *obj);
1138 AccessibleSelection_getNSelectedChildren (AccessibleSelection *obj);
1141 AccessibleSelection_getSelectedChild (AccessibleSelection *obj,
1142 long int selectedChildIndex);
1145 AccessibleSelection_selectChild (AccessibleSelection *obj,
1146 long int childIndex);
1149 AccessibleSelection_deselectSelectedChild (AccessibleSelection *obj,
1150 long int selectedChildIndex);
1153 AccessibleSelection_isChildSelected (AccessibleSelection *obj,
1154 long int childIndex);
1157 AccessibleSelection_selectAll (AccessibleSelection *obj);
1160 AccessibleSelection_clearSelection (AccessibleSelection *obj);
1165 * AccessibleStateSet function prototypes
1170 AccessibleStateSet_ref (AccessibleStateSet *obj);
1173 AccessibleStateSet_unref (AccessibleStateSet *obj);
1176 AccessibleStateSet_contains (AccessibleStateSet *obj,
1177 AccessibleState state);
1180 AccessibleStateSet_add (AccessibleStateSet *obj,
1181 AccessibleState state);
1184 AccessibleStateSet_remove (AccessibleStateSet *obj,
1185 AccessibleState state);
1188 AccessibleStateSet_equals (AccessibleStateSet *obj,
1189 AccessibleStateSet *obj2);
1192 AccessibleStateSet_compare (AccessibleStateSet *obj,
1193 AccessibleStateSet *obj2,
1194 AccessibleStateSet **differenceSet);
1197 AccessibleStateSet_isEmpty (AccessibleStateSet *obj);
1202 * AccessibleTable function prototypes
1207 AccessibleTable_ref (AccessibleTable *obj);
1210 AccessibleTable_unref (AccessibleTable *obj);
1213 AccessibleTable_getCaption (AccessibleTable *obj);
1216 AccessibleTable_getSummary (AccessibleTable *obj);
1219 AccessibleTable_getNRows (AccessibleTable *obj);
1222 AccessibleTable_getNColumns (AccessibleTable *obj);
1225 AccessibleTable_getAccessibleAt (AccessibleTable *obj,
1230 AccessibleTable_getIndexAt (AccessibleTable *obj,
1235 AccessibleTable_getRowAtIndex (AccessibleTable *obj,
1239 AccessibleTable_getColumnAtIndex (AccessibleTable *obj,
1243 AccessibleTable_getRowDescription (AccessibleTable *obj,
1247 AccessibleTable_getColumnDescription (AccessibleTable *obj,
1251 AccessibleTable_getRowExtentAt (AccessibleTable *obj,
1256 AccessibleTable_getColumnExtentAt (AccessibleTable *obj,
1261 AccessibleTable_getRowHeader (AccessibleTable *obj,
1265 AccessibleTable_getColumnHeader (AccessibleTable *obj,
1269 AccessibleTable_getNSelectedRows (AccessibleTable *obj);
1272 AccessibleTable_getSelectedRows (AccessibleTable *obj,
1273 long int **selectedRows);
1276 AccessibleTable_getNSelectedColumns (AccessibleTable *obj);
1279 AccessibleTable_getSelectedColumns (AccessibleTable *obj,
1280 long int **selectedColumns);
1283 AccessibleTable_isRowSelected (AccessibleTable *obj,
1287 AccessibleTable_isColumnSelected (AccessibleTable *obj,
1291 AccessibleTable_isSelected (AccessibleTable *obj,
1297 * AccessibleText function prototypes
1302 AccessibleText_ref (AccessibleText *obj);
1305 AccessibleText_unref (AccessibleText *obj);
1308 AccessibleText_getCharacterCount (AccessibleText *obj);
1311 AccessibleText_getText (AccessibleText *obj,
1312 long int startOffset,
1313 long int endOffset);
1316 AccessibleText_getCaretOffset (AccessibleText *obj);
1319 AccessibleText_getAttributes (AccessibleText *obj,
1321 long int *startOffset,
1322 long int *endOffset);
1326 AccessibleText_setCaretOffset (AccessibleText *obj,
1327 long int newOffset);
1330 AccessibleText_getTextBeforeOffset (AccessibleText *obj,
1332 AccessibleTextBoundaryType type,
1333 long int *startOffset,
1334 long int *endOffset);
1337 AccessibleText_getTextAtOffset (AccessibleText *obj,
1339 AccessibleTextBoundaryType type,
1340 long int *startOffset,
1341 long int *endOffset);
1344 AccessibleText_getTextAfterOffset (AccessibleText *obj,
1346 AccessibleTextBoundaryType type,
1347 long int *startOffset,
1348 long int *endOffset);
1351 AccessibleText_getCharacterAtOffset (AccessibleText *obj,
1355 AccessibleText_getCharacterExtents (AccessibleText *obj,
1361 AccessibleCoordType type);
1364 AccessibleText_getOffsetAtPoint (AccessibleText *obj,
1367 AccessibleCoordType type);
1370 AccessibleText_getNSelections (AccessibleText *obj);
1373 AccessibleText_getSelection (AccessibleText *obj,
1374 long int selectionNum,
1375 long int *startOffset,
1376 long int *endOffset);
1380 AccessibleText_addSelection (AccessibleText *obj,
1381 long int startOffset,
1382 long int endOffset);
1385 AccessibleText_removeSelection (AccessibleText *obj,
1386 long int selectionNum);
1389 AccessibleText_setSelection (AccessibleText *obj,
1390 long int selectionNum,
1391 long int startOffset,
1392 long int endOffset);
1396 * AccessibleValue Function Prototypes:
1401 AccessibleValue_ref (AccessibleValue *obj);
1404 AccessibleValue_unref (AccessibleValue *obj);
1407 AccessibleValue_getMinimumValue (AccessibleValue *obj);
1410 AccessibleValue_getCurrentValue (AccessibleValue *obj);
1413 AccessibleValue_getMaximumValue (AccessibleValue *obj);
1416 AccessibleValue_setCurrentValue (AccessibleValue *obj,