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_isValue (Accessible *obj);
658 Accessible_getAction (Accessible *obj);
661 * Accessible_getComponent:
662 * @obj: a pointer to the #Accessible instance to query.
664 * Get the #AccessibleComponent interface for an #Accessible.
666 * Returns: a pointer to an #AccessibleComponent interface instance, or
667 * NULL if @obj does not implement #AccessibleComponent.
669 AccessibleComponent *
670 Accessible_getComponent (Accessible *obj);
673 * Accessible_getEditableText:
675 * Not Yet Implemented.
678 AccessibleEditableText *
679 Accessible_getEditableText (Accessible *obj);
682 * Accessible_getHypertext:
684 * Not Yet Implemented.
687 AccessibleHypertext *
688 Accessible_getHypertext (Accessible *obj);
691 * Accessible_getImage:
693 * Not Yet Implemented.
697 Accessible_getImage (Accessible *obj);
700 * Accessible_getSelection:
702 * Not Yet Implemented.
705 AccessibleSelection *
706 Accessible_getSelection (Accessible *obj);
709 * Accessible_getTable:
711 * Not Yet Implemented.
715 Accessible_getTable (Accessible *obj);
718 * Accessible_getText:
720 * Not Yet Implemented.
724 Accessible_getText (Accessible *obj);
727 Accessible_getValue (Accessible *obj);
730 * Accessible_queryInterface:
731 * @obj: a pointer to the #Accessible instance to query.
732 * @interface_name: a UTF-8 character string specifiying the requested interface.
734 * Query an #Accessible object to for a named interface.
736 * Returns: an instance of the named interface object, if it is implemented
737 * by @obj, or NULL otherwise.
741 Accessible_queryInterface (Accessible *obj, char *interface_name);
745 * AccessibleAction function prototypes
750 AccessibleAction_ref (AccessibleAction *obj);
753 AccessibleAction_unref (AccessibleAction *obj);
756 AccessibleAction_getNActions (AccessibleAction *obj);
759 * AccessibleAction_getName:
760 * @obj: a pointer to the #AccessibleAction implementor to query.
761 * @i: a long integer indicating which action to query.
763 * Get the name of the '@i-th' action invokable on an
764 * object implementing #AccessibleAction.
766 * Returns: the 'event type' name of the action, as a UTF-8 string.
770 AccessibleAction_getName (AccessibleAction *obj, long int i);
773 * AccessibleAction_getDescription:
774 * @obj: a pointer to the #AccessibleAction to query.
775 * @i: a long integer indicating which action to query.
777 * Get the description of '@i-th' action invokable on an
778 * object implementing #AccessibleAction.
780 * Returns: a UTF-8 string describing the '@i-th' invokable action.
784 AccessibleAction_getDescription (AccessibleAction *obj,
788 AccessibleAction_doAction (AccessibleAction *obj,
792 * AccessibleAction_getKeybinding:
793 * @obj: a pointer to the #AccessibleAction implementor to query.
794 * @i: a long integer indicating which action to query.
796 * Get the keybindings for the @i-th action invokable on an
797 * object implementing #AccessibleAction, if any are defined.
799 * Returns: a UTF-8 string which can be parsed to determine the @i-th
800 * invokable action's keybindings.
804 AccessibleAction_getKeyBinding (AccessibleAction *obj,
809 * AccessibleApplication function prototypes
814 * AccessibleApplication_unref:
815 * @obj: a pointer to the #AccessibleApplication on which to operate.
817 * Decrement the reference count for an #AccessibleApplication.
819 * Returns: (no return code implemented yet).
823 AccessibleApplication_ref (AccessibleApplication *obj);
826 * AccessibleApplication_unref:
827 * @obj: a pointer to the #AccessibleApplication object on which to operate.
829 * Decrement the reference count for an #AccessibleApplication.
831 * Returns: (no return code implemented yet).
835 AccessibleApplication_unref (AccessibleApplication *obj);
838 * AccessibleApplication_getToolkitName:
839 * @obj: a pointer to the #AccessibleApplication to query.
841 * Get the name of the UI toolkit used by an #AccessibleApplication.
843 * Returns: a UTF-8 string indicating which UI toolkit is
844 * used by an application.
848 AccessibleApplication_getToolkitName (AccessibleApplication *obj);
851 * AccessibleApplication_getVersion:
852 * @obj: a pointer to the #AccessibleApplication being queried.
854 * Get the version of the at-spi bridge exported by an
855 * #AccessibleApplication instance.
857 * Returns: a UTF-8 string indicating the application's
862 AccessibleApplication_getVersion (AccessibleApplication *obj);
865 * AccessibleApplication_getID:
866 * @obj: a pointer to the #AccessibleApplication being queried.
868 * Get the unique ID assigned by the Registry to an
869 * #AccessibleApplication instance.
870 * (Not Yet Implemented by the registry).
872 * Returns: a unique #long integer associated with the application
873 * by the Registry, or 0 if the application is not registered.
876 AccessibleApplication_getID (AccessibleApplication *obj);
879 * AccessibleApplication_pause:
880 * @obj: a pointer to the #Accessible object on which to operate.
882 * Attempt to pause the application (used when client event queue is
884 * Not Yet Implemented.
886 * Returns: #TRUE if the application was paused successfully, #FALSE otherwise.
890 AccessibleApplication_pause (AccessibleApplication *obj);
893 * AccessibleApplication_resume:
894 * @obj: a pointer to the #Accessible object on which to operate.
896 * Attempt to resume the application (used after #AccessibleApplication_pause).
897 * Not Yet Implemented.
899 * Returns: #TRUE if application processing resumed successfully, #FALSE otherwise.
903 AccessibleApplication_resume (AccessibleApplication *obj);
907 * AccessibleComponent function prototypes
912 AccessibleComponent_ref (AccessibleComponent *obj);
915 AccessibleComponent_unref (AccessibleComponent *obj);
918 AccessibleComponent_contains (AccessibleComponent *obj,
921 AccessibleCoordType ctype);
924 AccessibleComponent_getAccessibleAtPoint (AccessibleComponent *obj,
927 AccessibleCoordType ctype);
930 * AccessibleComponent_getExtents:
931 * @obj: a pointer to the #AccessibleComponent to query.
932 * @x: a pointer to a #long into which the minimum x coordinate will be returned.
933 * @y: a pointer to a #long into which the minimum y coordinate will be returned.
934 * @width: a pointer to a #long into which the x extents (width) will be returned.
935 * @height: a pointer to a #long into which the y extents (height) will be returned.
936 * @ctype: the desired coordinate system into which to return the results,
937 * (e.g. COORD_TYPE_WINDOW, COORD_TYPE_SCREEN).
939 * Get the bounding box of the specified #AccessibleComponent.
943 AccessibleComponent_getExtents (AccessibleComponent *obj,
948 AccessibleCoordType ctype);
951 AccessibleComponent_getPosition (AccessibleComponent *obj,
954 AccessibleCoordType ctype);
957 AccessibleComponent_getSize (AccessibleComponent *obj,
962 * AccessibleComponent_getLayer:
963 * @obj: a pointer to the #AccessibleComponent to query.
965 * Query which layer the component is painted into, to help determine its
966 * visibility in terms of stacking order.
968 * Returns: the #AccessibleComponentLayer into which this component is painted.
970 AccessibleComponentLayer
971 AccessibleComponent_getLayer (AccessibleComponent *obj);
974 * AccessibleComponent_getMDIZOrder:
975 * @obj: a pointer to the #AccessibleComponent to query.
977 * Query the z stacking order of a component which is in the MDI layer.
979 * Returns: a short integer indicating the stacking order of the component
980 * in the MDI layer, or -1 if the component is not in the MDI layer.
983 AccessibleComponent_getMDIZOrder (AccessibleComponent *obj);
986 AccessibleComponent_grabFocus (AccessibleComponent *obj);
990 * AccessibleEditableText function prototypes
995 AccessibleEditableText_ref (AccessibleEditableText *obj);
998 AccessibleEditableText_unref (AccessibleEditableText *obj);
1001 AccessibleEditableText_setAttributes (AccessibleEditableText *obj,
1002 const char *attributes,
1003 long int startOffset,
1004 long int endOffset);
1007 AccessibleEditableText_setTextContents (AccessibleEditableText *obj,
1008 const char *newContents);
1011 AccessibleEditableText_insertText (AccessibleEditableText *obj,
1017 AccessibleEditableText_copyText (AccessibleText *obj,
1022 AccessibleEditableText_cutText (AccessibleEditableText *obj,
1027 AccessibleEditableText_deleteText (AccessibleEditableText *obj,
1032 AccessibleEditableText_pasteText (AccessibleEditableText *obj,
1037 * AccessibleHyperlink function prototypes
1042 AccessibleHyperlink_getNAnchors (AccessibleHyperlink *obj);
1045 AccessibleHyperlink_getURI (AccessibleHyperlink *obj,
1049 AccessibleHyperlink_getObject (AccessibleHyperlink *obj,
1053 AccessibleHyperlink_getIndexRange (AccessibleHyperlink *obj,
1054 long int *startIndex,
1055 long int *endIndex);
1058 AccessibleHyperlink_isValid (AccessibleHyperlink *obj);
1062 * AccessibleHypertext function prototypes
1067 AccessibleHypertext_ref (AccessibleHypertext *obj);
1070 AccessibleHypertext_unref (AccessibleHypertext *obj);
1073 AccessibleHypertext_getNLinks (AccessibleHypertext *obj);
1075 AccessibleHyperlink *
1076 AccessibleHypertext_getLink (AccessibleHypertext *obj,
1077 long int linkIndex);
1080 AccessibleHypertext_getLinkIndex (AccessibleHypertext *obj,
1081 long int characterOffset);
1085 * AccessibleImage function prototypes
1090 AccessibleImage_ref (AccessibleImage *obj);
1093 AccessibleImage_unref (AccessibleImage *obj);
1096 AccessibleImage_getImageDescription (AccessibleImage *obj);
1099 AccessibleImage_getImageSize (AccessibleImage *obj,
1104 AccessibleImage_getImagePosition (AccessibleImage *obj,
1107 AccessibleCoordType ctype);
1110 AccessibleImage_getImageExtents (AccessibleImage *obj,
1115 AccessibleCoordType ctype);
1118 * AccessibleRelation function prototypes
1123 AccessibleRelation_ref (AccessibleRelation *obj);
1126 AccessibleRelation_unref (AccessibleRelation *obj);
1128 AccessibleRelationType
1129 AccessibleRelation_getRelationType (AccessibleRelation *obj);
1132 AccessibleRelation_getNTargets (AccessibleRelation *obj);
1135 AccessibleRelation_getTarget (AccessibleRelation *obj, int i);
1140 * AccessibleSelection function prototypes
1145 AccessibleSelection_ref (AccessibleSelection *obj);
1148 AccessibleSelection_unref (AccessibleSelection *obj);
1151 AccessibleSelection_getNSelectedChildren (AccessibleSelection *obj);
1154 AccessibleSelection_getSelectedChild (AccessibleSelection *obj,
1155 long int selectedChildIndex);
1158 AccessibleSelection_selectChild (AccessibleSelection *obj,
1159 long int childIndex);
1162 AccessibleSelection_deselectSelectedChild (AccessibleSelection *obj,
1163 long int selectedChildIndex);
1166 AccessibleSelection_isChildSelected (AccessibleSelection *obj,
1167 long int childIndex);
1170 AccessibleSelection_selectAll (AccessibleSelection *obj);
1173 AccessibleSelection_clearSelection (AccessibleSelection *obj);
1178 * AccessibleStateSet function prototypes
1183 AccessibleStateSet_ref (AccessibleStateSet *obj);
1186 AccessibleStateSet_unref (AccessibleStateSet *obj);
1189 AccessibleStateSet_contains (AccessibleStateSet *obj,
1190 AccessibleState state);
1193 AccessibleStateSet_add (AccessibleStateSet *obj,
1194 AccessibleState state);
1197 AccessibleStateSet_remove (AccessibleStateSet *obj,
1198 AccessibleState state);
1201 AccessibleStateSet_equals (AccessibleStateSet *obj,
1202 AccessibleStateSet *obj2);
1205 AccessibleStateSet_compare (AccessibleStateSet *obj,
1206 AccessibleStateSet *obj2,
1207 AccessibleStateSet **differenceSet);
1210 AccessibleStateSet_isEmpty (AccessibleStateSet *obj);
1215 * AccessibleTable function prototypes
1220 AccessibleTable_ref (AccessibleTable *obj);
1223 AccessibleTable_unref (AccessibleTable *obj);
1226 AccessibleTable_getCaption (AccessibleTable *obj);
1229 AccessibleTable_getSummary (AccessibleTable *obj);
1232 AccessibleTable_getNRows (AccessibleTable *obj);
1235 AccessibleTable_getNColumns (AccessibleTable *obj);
1238 AccessibleTable_getAccessibleAt (AccessibleTable *obj,
1243 AccessibleTable_getIndexAt (AccessibleTable *obj,
1248 AccessibleTable_getRowAtIndex (AccessibleTable *obj,
1252 AccessibleTable_getColumnAtIndex (AccessibleTable *obj,
1256 AccessibleTable_getRowDescription (AccessibleTable *obj,
1260 AccessibleTable_getColumnDescription (AccessibleTable *obj,
1264 AccessibleTable_getRowExtentAt (AccessibleTable *obj,
1269 AccessibleTable_getColumnExtentAt (AccessibleTable *obj,
1274 AccessibleTable_getRowHeader (AccessibleTable *obj,
1278 AccessibleTable_getColumnHeader (AccessibleTable *obj,
1282 AccessibleTable_getNSelectedRows (AccessibleTable *obj);
1285 AccessibleTable_getSelectedRows (AccessibleTable *obj,
1286 long int **selectedRows);
1289 AccessibleTable_getNSelectedColumns (AccessibleTable *obj);
1292 AccessibleTable_getSelectedColumns (AccessibleTable *obj,
1293 long int **selectedColumns);
1296 AccessibleTable_isRowSelected (AccessibleTable *obj,
1300 AccessibleTable_isColumnSelected (AccessibleTable *obj,
1304 AccessibleTable_isSelected (AccessibleTable *obj,
1310 * AccessibleText function prototypes
1315 AccessibleText_ref (AccessibleText *obj);
1318 AccessibleText_unref (AccessibleText *obj);
1321 AccessibleText_getCharacterCount (AccessibleText *obj);
1324 AccessibleText_getText (AccessibleText *obj,
1325 long int startOffset,
1326 long int endOffset);
1329 AccessibleText_getCaretOffset (AccessibleText *obj);
1332 AccessibleText_getAttributes (AccessibleText *obj,
1334 long int *startOffset,
1335 long int *endOffset);
1339 AccessibleText_setCaretOffset (AccessibleText *obj,
1340 long int newOffset);
1343 AccessibleText_getTextBeforeOffset (AccessibleText *obj,
1345 AccessibleTextBoundaryType type,
1346 long int *startOffset,
1347 long int *endOffset);
1350 AccessibleText_getTextAtOffset (AccessibleText *obj,
1352 AccessibleTextBoundaryType type,
1353 long int *startOffset,
1354 long int *endOffset);
1357 AccessibleText_getTextAfterOffset (AccessibleText *obj,
1359 AccessibleTextBoundaryType type,
1360 long int *startOffset,
1361 long int *endOffset);
1364 AccessibleText_getCharacterAtOffset (AccessibleText *obj,
1368 AccessibleText_getCharacterExtents (AccessibleText *obj,
1374 AccessibleCoordType type);
1377 AccessibleText_getOffsetAtPoint (AccessibleText *obj,
1380 AccessibleCoordType type);
1383 AccessibleText_getNSelections (AccessibleText *obj);
1386 AccessibleText_getSelection (AccessibleText *obj,
1387 long int selectionNum,
1388 long int *startOffset,
1389 long int *endOffset);
1393 AccessibleText_addSelection (AccessibleText *obj,
1394 long int startOffset,
1395 long int endOffset);
1398 AccessibleText_removeSelection (AccessibleText *obj,
1399 long int selectionNum);
1402 AccessibleText_setSelection (AccessibleText *obj,
1403 long int selectionNum,
1404 long int startOffset,
1405 long int endOffset);
1409 * AccessibleValue Function Prototypes:
1414 AccessibleValue_ref (AccessibleValue *obj);
1417 AccessibleValue_unref (AccessibleValue *obj);
1420 AccessibleValue_getMinimumValue (AccessibleValue *obj);
1423 AccessibleValue_getCurrentValue (AccessibleValue *obj);
1426 AccessibleValue_getMaximumValue (AccessibleValue *obj);
1429 AccessibleValue_setCurrentValue (AccessibleValue *obj,