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
135 SPI_init (SPIBoolean isGNOMEApp);
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 (void);
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 (SPIBoolean waitForEvent);
179 * Disconnects from the Accessibility Registry and releases resources.
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,
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,
218 * AccessibleEventListener_removeCallback:
219 * @listener: the #AccessibleEventListener instance to modify.
220 * @callback: an #AccessibleEventListenerCB function pointer.
222 * Remove an in-process callback function from an existing AccessibleEventListener.
224 * Returns: #TRUE if successful, otherwise #FALSE.
228 AccessibleEventListener_removeCallback (AccessibleEventListener *listener,
229 AccessibleEventListenerCB callback);
232 * createAccessibleKeystrokeListener:
233 * @callback : an #AccessibleKeystrokeListenerCB callback function, or NULL.
235 * Create a new #AccessibleKeystrokeListener with a specified callback function.
237 * Returns: a pointer to a newly-created #AccessibleKeystrokeListener.
240 AccessibleKeystrokeListener *
241 createAccessibleKeystrokeListener (AccessibleKeystrokeListenerCB callback,
245 * KeystrokeListener_addCallback:
246 * @listener: the #KeystrokeListener instance to modify.
247 * @callback: an #KeystrokeListenerCB function pointer.
249 * Add an in-process callback function to an existing #KeystrokeListener.
251 * Returns: #TRUE if successful, otherwise #FALSE.
255 AccessibleKeystrokeListener_addCallback (AccessibleKeystrokeListener *listener,
256 AccessibleKeystrokeListenerCB callback,
260 * AccessibleKeystrokeListener_removeCallback:
261 * @listener: the #AccessibleKeystrokeListener instance to modify.
262 * @callback: an #AccessibleKeystrokeListenerCB function pointer.
264 * Remove an in-process callback function from an existing #AccessibleKeystrokeListener.
266 * Returns: #TRUE if successful, otherwise #FALSE.
270 AccessibleKeystrokeListener_removeCallback (AccessibleKeystrokeListener *listener,
271 AccessibleKeystrokeListenerCB callback);
273 void AccessibleKeystrokeListener_unref (AccessibleKeystrokeListener *listener);
277 * Global functions serviced by the registry
282 * registerGlobalEventListener:
283 * @listener: the #AccessibleEventListener to be registered against an event type.
284 * @callback: a character string indicating the type of events for which
285 * notification is requested. Format is
286 * EventClass:major_type:minor_type:detail
287 * where all subfields other than EventClass are optional.
288 * EventClasses include "Focus", "Window", "Mouse",
289 * and toolkit events (e.g. "Gtk", "AWT").
290 * Examples: "focus:", "Gtk:GtkWidget:button_press_event".
292 * NOTE: this string may be UTF-8, but should not contain byte value 56 (ascii ':'),
293 * except as a delimiter, since non-UTF-8 string delimiting
294 * functions are used internally. In general, listening to
295 * toolkit-specific events is not recommended.
297 * Add an in-process callback function to an existing AccessibleEventListener.
299 * Returns: #TRUE if successful, otherwise #FALSE.
303 registerGlobalEventListener (AccessibleEventListener *listener,
306 deregisterGlobalEventListener (AccessibleEventListener *listener,
309 deregisterGlobalEventListenerAll (AccessibleEventListener *listener);
315 * Get the number of virtual desktops.
316 * NOTE: currently multiple virtual desktops are not implemented, this
317 * function always returns '1'.
319 * Returns: an integer indicating the number of active virtual desktops.
327 * @i: an integer indicating which of the accessible desktops is to be returned.
329 * Get the virtual desktop indicated by index @i.
330 * NOTE: currently multiple virtual desktops are not implemented, this
331 * function always returns '1'.
333 * Returns: a pointer to the 'i-th' virtual desktop's #Accessible representation.
341 * @list: a pointer to an array of #Accessible objects.
343 * Get the list of virtual desktops. On return, @list will point
344 * to a newly-created array of virtual desktop pointers.
345 * It is the responsibility of the caller to free this array when
346 * it is no longer needed.
348 * Not Yet Implemented.
350 * Returns: an integer indicating how many virtual desktops have been
351 * placed in the list pointed to by parameter @list.
354 getDesktopList (Accessible **list);
357 * registerAccessibleKeystrokeListener:
358 * @listener: a pointer to the #AccessibleKeystrokeListener for which
359 * keystroke events are requested.
361 * [Partially Implemented.]
365 registerAccessibleKeystrokeListener (AccessibleKeystrokeListener *listener,
366 AccessibleKeySet *keys,
367 AccessibleKeyMaskType modmask,
368 AccessibleKeyEventMask eventmask,
369 AccessibleKeyListenerSyncType sync_type);
372 deregisterAccessibleKeystrokeListener (AccessibleKeystrokeListener *listener,
373 AccessibleKeyMaskType modmask);
377 * @keyval: a #long integer indicating the keycode or keysym of the key event
379 * @synth_type: a #AccessibleKeySynthType flag indicating whether @keyval
380 * is to be interpreted as a keysym rather than a keycode
381 * (SPI_KEYSYM) and whether to synthesize
382 * SPI_KEY_PRESS, SPI_KEY_RELEASE, or both (SPI_KEY_PRESSRELEASE).
384 * Synthesize a keyboard event (as if a hardware keyboard event occurred in the
385 * current UI context).
389 generateKeyEvent (long int keyval, AccessibleKeySynthType synth_type);
392 * generateMouseEvent:
393 * @x: a #long int indicating the screen x coordinate of the mouse event.
394 * @y: a #long int indicating the screen y coordinate of the mouse event.
395 * @name: a string indicating which mouse event to be synthesized
396 * (e.g. "button1", "button2", "mousemove").
398 * Synthesize a mouse event at a specific screen coordinate.
399 * Not Yet Implemented.
403 generateMouseEvent (long int x, long int y, char *name);
407 * Accessible function prototypes
413 * @obj: a pointer to the #Accessible object on which to operate.
415 * Increment the reference count for an #Accessible object.
417 * Returns: (no return code implemented yet).
421 Accessible_ref (Accessible *obj);
425 * @obj: a pointer to the #Accessible object on which to operate.
427 * Decrement the reference count for an #Accessible object.
429 * Returns: (no return code implemented yet).
433 Accessible_unref (Accessible *obj);
436 * Accessible_getName:
437 * @obj: a pointer to the #Accessible object on which to operate.
439 * Get the name of an #Accessible object.
441 * Returns: a UTF-8 string indicating the name of the #Accessible object.
445 Accessible_getName (Accessible *obj);
448 * Accessible_getDescription:
449 * @obj: a pointer to the #Accessible object on which to operate.
451 * Get the description of an #Accessible object.
453 * Returns: a UTF-8 string describing the #Accessible object.
457 Accessible_getDescription (Accessible *obj);
460 * Accessible_getParent:
461 * @obj: a pointer to the #Accessible object to query.
463 * Get an #Accessible object's parent container.
465 * Returns: a pointer to the #Accessible object which contains the given
466 * #Accessible instance, or NULL if the @obj has no parent container.
470 Accessible_getParent (Accessible *obj);
473 * Accessible_getChildCount:
474 * @obj: a pointer to the #Accessible object on which to operate.
476 * Get the number of children contained by an #Accessible object.
478 * Returns: a #long indicating the number of #Accessible children
479 * contained by an #Accessible object.
483 Accessible_getChildCount (Accessible *obj);
486 * Accessible_getChildAtIndex:
488 * @obj: a pointer to the #Accessible object on which to operate.
489 * @childIndex: a #long indicating which child is specified.
491 * Get the #Accessible child of an #Accessible object at a given index.
493 * Returns: a pointer to the #Accessible child object at index
498 Accessible_getChildAtIndex (Accessible *obj,
499 long int childIndex);
502 * Accessible_getIndexInParent:
504 * @obj: a pointer to the #Accessible object on which to operate.
506 * Get the index of an #Accessible object in its containing #Accessible.
508 * Returns: a #long indicating the index of the #Accessible object
509 * in its parent (i.e. containing) #Accessible instance,
510 * or -1 if @obj has no containing parent.
514 Accessible_getIndexInParent (Accessible *obj);
517 * Accessible_getRelationSet:
518 * @obj: a pointer to the #Accessible object on which to operate.
520 * Not Yet Implemented.
522 * Returns: a pointer to an array of #AccessibleRelations.
525 AccessibleRelation **
526 Accessible_getRelationSet (Accessible *obj);
529 * Accessible_getRole:
530 * @obj: a pointer to the #Accessible object on which to operate.
532 * Get the UI role of an #Accessible object.
534 * Returns: a UTF-8 string indicating the UI role of the #Accessible object.
538 Accessible_getRole (Accessible *obj);
541 * Accessible_getStateSet:
542 * @obj: a pointer to the #Accessible object on which to operate.
544 * Not Yet Implemented.
546 * Returns: a pointer to an #AccessibleStateSet representing the object's current state.
550 Accessible_getStateSet (Accessible *obj);
552 /* Interface query methods */
555 * Accessible_isAction:
556 * @obj: a pointer to the #Accessible instance to query.
558 * Query whether the specified #Accessible implements #AccessibleAction.
560 * Returns: #TRUE if @obj implements the #AccessibleAction interface,
564 Accessible_isAction (Accessible *obj);
567 * Accessible_isApplication:
568 * @obj: a pointer to the #Accessible instance to query.
570 * Query whether the specified #Accessible implements #AccessibleApplication.
572 * Returns: #TRUE if @obj implements the #AccessibleApplication interface,
576 Accessible_isApplication (Accessible *obj);
579 * Accessible_isComponent:
580 * @obj: a pointer to the #Accessible instance to query.
582 * Query whether the specified #Accessible implements #AccessibleComponent.
584 * Returns: #TRUE if @obj implements the #AccessibleComponent interface,
588 Accessible_isComponent (Accessible *obj);
591 * Accessible_isEditableText:
592 * @obj: a pointer to the #Accessible instance to query.
594 * Query whether the specified #Accessible implements #AccessibleEditableText.
596 * Returns: #TRUE if @obj implements the #AccessibleEditableText interface,
600 Accessible_isEditableText (Accessible *obj);
603 * Accessible_isHypertext:
604 * @obj: a pointer to the #Accessible instance to query.
606 * Query whether the specified #Accessible implements #AccessibleHypertext.
608 * Returns: #TRUE if @obj implements the #AccessibleHypertext interface,
612 Accessible_isHypertext (Accessible *obj);
615 * Accessible_isImage:
616 * @obj: a pointer to the #Accessible instance to query.
618 * Query whether the specified #Accessible implements #AccessibleImage.
620 * Returns: #TRUE if @obj implements the #AccessibleImage interface,
624 Accessible_isImage (Accessible *obj);
627 * Accessible_isSelection:
628 * @obj: a pointer to the #Accessible instance to query.
630 * Query whether the specified #Accessible implements #AccessibleSelection.
632 * Returns: #TRUE if @obj implements the #AccessibleSelection interface,
636 Accessible_isSelection (Accessible *obj);
639 * Accessible_isTable:
640 * @obj: a pointer to the #Accessible instance to query.
642 * Query whether the specified #Accessible implements #AccessibleTable.
644 * Returns: #TRUE if @obj implements the #AccessibleTable interface,
648 Accessible_isTable (Accessible *obj);
652 * @obj: a pointer to the #Accessible instance to query.
654 * Query whether the specified #Accessible implements #AccessibleText.
656 * Returns: #TRUE if @obj implements the #AccessibleText interface,
660 Accessible_isText (Accessible *obj);
663 Accessible_isValue (Accessible *obj);
666 * Accessible_getAction:
667 * @obj: a pointer to the #Accessible instance to query.
669 * Get the #AccessibleAction interface for an #Accessible.
671 * Returns: a pointer to an #AccessibleAction interface instance, or
672 * NULL if @obj does not implement #AccessibleAction.
675 Accessible_getAction (Accessible *obj);
678 * Accessible_getApplication:
679 * @obj: a pointer to the #Accessible instance to query.
681 * Get the #AccessibleApplication interface for an #Accessible.
683 * Returns: a pointer to an #AccessibleApplication interface instance, or
684 * NULL if @obj does not implement #AccessibleApplication.
686 AccessibleApplication *
687 Accessible_getApplication (Accessible *obj);
690 * Accessible_getComponent:
691 * @obj: a pointer to the #Accessible instance to query.
693 * Get the #AccessibleComponent interface for an #Accessible.
695 * Returns: a pointer to an #AccessibleComponent interface instance, or
696 * NULL if @obj does not implement #AccessibleComponent.
698 AccessibleComponent *
699 Accessible_getComponent (Accessible *obj);
702 * Accessible_getEditableText:
704 * Not Yet Implemented.
707 AccessibleEditableText *
708 Accessible_getEditableText (Accessible *obj);
711 * Accessible_getHypertext:
713 * Not Yet Implemented.
716 AccessibleHypertext *
717 Accessible_getHypertext (Accessible *obj);
720 * Accessible_getImage:
722 * Not Yet Implemented.
726 Accessible_getImage (Accessible *obj);
729 * Accessible_getSelection:
731 * Not Yet Implemented.
734 AccessibleSelection *
735 Accessible_getSelection (Accessible *obj);
738 * Accessible_getTable:
740 * Not Yet Implemented.
744 Accessible_getTable (Accessible *obj);
747 * Accessible_getText:
749 * Not Yet Implemented.
753 Accessible_getText (Accessible *obj);
756 Accessible_getValue (Accessible *obj);
759 * Accessible_queryInterface:
760 * @obj: a pointer to the #Accessible instance to query.
761 * @interface_name: a UTF-8 character string specifiying the requested interface.
763 * Query an #Accessible object to for a named interface.
765 * Returns: an instance of the named interface object, if it is implemented
766 * by @obj, or NULL otherwise.
770 Accessible_queryInterface (Accessible *obj, char *interface_name);
774 * AccessibleAction function prototypes
779 AccessibleAction_ref (AccessibleAction *obj);
782 AccessibleAction_unref (AccessibleAction *obj);
785 AccessibleAction_getNActions (AccessibleAction *obj);
788 * AccessibleAction_getName:
789 * @obj: a pointer to the #AccessibleAction implementor to query.
790 * @i: a long integer indicating which action to query.
792 * Get the name of the '@i-th' action invokable on an
793 * object implementing #AccessibleAction.
795 * Returns: the 'event type' name of the action, as a UTF-8 string.
799 AccessibleAction_getName (AccessibleAction *obj, long int i);
802 * AccessibleAction_getDescription:
803 * @obj: a pointer to the #AccessibleAction to query.
804 * @i: a long integer indicating which action to query.
806 * Get the description of '@i-th' action invokable on an
807 * object implementing #AccessibleAction.
809 * Returns: a UTF-8 string describing the '@i-th' invokable action.
813 AccessibleAction_getDescription (AccessibleAction *obj,
817 AccessibleAction_doAction (AccessibleAction *obj,
821 * AccessibleAction_getKeybinding:
822 * @obj: a pointer to the #AccessibleAction implementor to query.
823 * @i: a long integer indicating which action to query.
825 * Get the keybindings for the @i-th action invokable on an
826 * object implementing #AccessibleAction, if any are defined.
828 * Returns: a UTF-8 string which can be parsed to determine the @i-th
829 * invokable action's keybindings.
833 AccessibleAction_getKeyBinding (AccessibleAction *obj,
838 * AccessibleApplication function prototypes
843 * AccessibleApplication_unref:
844 * @obj: a pointer to the #AccessibleApplication on which to operate.
846 * Decrement the reference count for an #AccessibleApplication.
848 * Returns: (no return code implemented yet).
852 AccessibleApplication_ref (AccessibleApplication *obj);
855 * AccessibleApplication_unref:
856 * @obj: a pointer to the #AccessibleApplication object on which to operate.
858 * Decrement the reference count for an #AccessibleApplication.
860 * Returns: (no return code implemented yet).
864 AccessibleApplication_unref (AccessibleApplication *obj);
867 * AccessibleApplication_getToolkitName:
868 * @obj: a pointer to the #AccessibleApplication to query.
870 * Get the name of the UI toolkit used by an #AccessibleApplication.
872 * Returns: a UTF-8 string indicating which UI toolkit is
873 * used by an application.
877 AccessibleApplication_getToolkitName (AccessibleApplication *obj);
880 * AccessibleApplication_getVersion:
881 * @obj: a pointer to the #AccessibleApplication being queried.
883 * Get the version of the at-spi bridge exported by an
884 * #AccessibleApplication instance.
886 * Returns: a UTF-8 string indicating the application's
891 AccessibleApplication_getVersion (AccessibleApplication *obj);
894 * AccessibleApplication_getID:
895 * @obj: a pointer to the #AccessibleApplication being queried.
897 * Get the unique ID assigned by the Registry to an
898 * #AccessibleApplication instance.
899 * (Not Yet Implemented by the registry).
901 * Returns: a unique #long integer associated with the application
902 * by the Registry, or 0 if the application is not registered.
905 AccessibleApplication_getID (AccessibleApplication *obj);
908 * AccessibleApplication_pause:
909 * @obj: a pointer to the #Accessible object on which to operate.
911 * Attempt to pause the application (used when client event queue is
913 * Not Yet Implemented.
915 * Returns: #TRUE if the application was paused successfully, #FALSE otherwise.
919 AccessibleApplication_pause (AccessibleApplication *obj);
922 * AccessibleApplication_resume:
923 * @obj: a pointer to the #Accessible object on which to operate.
925 * Attempt to resume the application (used after #AccessibleApplication_pause).
926 * Not Yet Implemented.
928 * Returns: #TRUE if application processing resumed successfully, #FALSE otherwise.
932 AccessibleApplication_resume (AccessibleApplication *obj);
936 * AccessibleComponent function prototypes
941 AccessibleComponent_ref (AccessibleComponent *obj);
944 AccessibleComponent_unref (AccessibleComponent *obj);
947 AccessibleComponent_contains (AccessibleComponent *obj,
950 AccessibleCoordType ctype);
953 AccessibleComponent_getAccessibleAtPoint (AccessibleComponent *obj,
956 AccessibleCoordType ctype);
959 * AccessibleComponent_getExtents:
960 * @obj: a pointer to the #AccessibleComponent to query.
961 * @x: a pointer to a #long into which the minimum x coordinate will be returned.
962 * @y: a pointer to a #long into which the minimum y coordinate will be returned.
963 * @width: a pointer to a #long into which the x extents (width) will be returned.
964 * @height: a pointer to a #long into which the y extents (height) will be returned.
965 * @ctype: the desired coordinate system into which to return the results,
966 * (e.g. COORD_TYPE_WINDOW, COORD_TYPE_SCREEN).
968 * Get the bounding box of the specified #AccessibleComponent.
972 AccessibleComponent_getExtents (AccessibleComponent *obj,
977 AccessibleCoordType ctype);
980 AccessibleComponent_getPosition (AccessibleComponent *obj,
983 AccessibleCoordType ctype);
986 AccessibleComponent_getSize (AccessibleComponent *obj,
991 * AccessibleComponent_getLayer:
992 * @obj: a pointer to the #AccessibleComponent to query.
994 * Query which layer the component is painted into, to help determine its
995 * visibility in terms of stacking order.
997 * Returns: the #AccessibleComponentLayer into which this component is painted.
999 AccessibleComponentLayer
1000 AccessibleComponent_getLayer (AccessibleComponent *obj);
1003 * AccessibleComponent_getMDIZOrder:
1004 * @obj: a pointer to the #AccessibleComponent to query.
1006 * Query the z stacking order of a component which is in the MDI layer.
1008 * Returns: a short integer indicating the stacking order of the component
1009 * in the MDI layer, or -1 if the component is not in the MDI layer.
1012 AccessibleComponent_getMDIZOrder (AccessibleComponent *obj);
1015 AccessibleComponent_grabFocus (AccessibleComponent *obj);
1019 * AccessibleEditableText function prototypes
1024 AccessibleEditableText_ref (AccessibleEditableText *obj);
1027 AccessibleEditableText_unref (AccessibleEditableText *obj);
1030 AccessibleEditableText_setAttributes (AccessibleEditableText *obj,
1031 const char *attributes,
1032 long int startOffset,
1033 long int endOffset);
1036 AccessibleEditableText_setTextContents (AccessibleEditableText *obj,
1037 const char *newContents);
1040 AccessibleEditableText_insertText (AccessibleEditableText *obj,
1046 AccessibleEditableText_copyText (AccessibleText *obj,
1051 AccessibleEditableText_cutText (AccessibleEditableText *obj,
1056 AccessibleEditableText_deleteText (AccessibleEditableText *obj,
1061 AccessibleEditableText_pasteText (AccessibleEditableText *obj,
1066 * AccessibleHyperlink function prototypes
1071 AccessibleHyperlink_getNAnchors (AccessibleHyperlink *obj);
1074 AccessibleHyperlink_getURI (AccessibleHyperlink *obj,
1078 AccessibleHyperlink_getObject (AccessibleHyperlink *obj,
1082 AccessibleHyperlink_getIndexRange (AccessibleHyperlink *obj,
1083 long int *startIndex,
1084 long int *endIndex);
1087 AccessibleHyperlink_isValid (AccessibleHyperlink *obj);
1091 * AccessibleHypertext function prototypes
1096 AccessibleHypertext_ref (AccessibleHypertext *obj);
1099 AccessibleHypertext_unref (AccessibleHypertext *obj);
1102 AccessibleHypertext_getNLinks (AccessibleHypertext *obj);
1104 AccessibleHyperlink *
1105 AccessibleHypertext_getLink (AccessibleHypertext *obj,
1106 long int linkIndex);
1109 AccessibleHypertext_getLinkIndex (AccessibleHypertext *obj,
1110 long int characterOffset);
1114 * AccessibleImage function prototypes
1119 AccessibleImage_ref (AccessibleImage *obj);
1122 AccessibleImage_unref (AccessibleImage *obj);
1125 AccessibleImage_getImageDescription (AccessibleImage *obj);
1128 AccessibleImage_getImageSize (AccessibleImage *obj,
1133 AccessibleImage_getImagePosition (AccessibleImage *obj,
1136 AccessibleCoordType ctype);
1139 AccessibleImage_getImageExtents (AccessibleImage *obj,
1144 AccessibleCoordType ctype);
1147 * AccessibleRelation function prototypes
1152 AccessibleRelation_ref (AccessibleRelation *obj);
1155 AccessibleRelation_unref (AccessibleRelation *obj);
1157 AccessibleRelationType
1158 AccessibleRelation_getRelationType (AccessibleRelation *obj);
1161 AccessibleRelation_getNTargets (AccessibleRelation *obj);
1164 AccessibleRelation_getTarget (AccessibleRelation *obj, int i);
1169 * AccessibleSelection function prototypes
1174 AccessibleSelection_ref (AccessibleSelection *obj);
1177 AccessibleSelection_unref (AccessibleSelection *obj);
1180 AccessibleSelection_getNSelectedChildren (AccessibleSelection *obj);
1183 AccessibleSelection_getSelectedChild (AccessibleSelection *obj,
1184 long int selectedChildIndex);
1187 AccessibleSelection_selectChild (AccessibleSelection *obj,
1188 long int childIndex);
1191 AccessibleSelection_deselectSelectedChild (AccessibleSelection *obj,
1192 long int selectedChildIndex);
1195 AccessibleSelection_isChildSelected (AccessibleSelection *obj,
1196 long int childIndex);
1199 AccessibleSelection_selectAll (AccessibleSelection *obj);
1202 AccessibleSelection_clearSelection (AccessibleSelection *obj);
1207 * AccessibleStateSet function prototypes
1212 AccessibleStateSet_ref (AccessibleStateSet *obj);
1215 AccessibleStateSet_unref (AccessibleStateSet *obj);
1218 AccessibleStateSet_contains (AccessibleStateSet *obj,
1219 AccessibleState state);
1222 AccessibleStateSet_add (AccessibleStateSet *obj,
1223 AccessibleState state);
1226 AccessibleStateSet_remove (AccessibleStateSet *obj,
1227 AccessibleState state);
1230 AccessibleStateSet_equals (AccessibleStateSet *obj,
1231 AccessibleStateSet *obj2);
1234 AccessibleStateSet_compare (AccessibleStateSet *obj,
1235 AccessibleStateSet *obj2,
1236 AccessibleStateSet **differenceSet);
1239 AccessibleStateSet_isEmpty (AccessibleStateSet *obj);
1244 * AccessibleTable function prototypes
1249 AccessibleTable_ref (AccessibleTable *obj);
1252 AccessibleTable_unref (AccessibleTable *obj);
1255 AccessibleTable_getCaption (AccessibleTable *obj);
1258 AccessibleTable_getSummary (AccessibleTable *obj);
1261 AccessibleTable_getNRows (AccessibleTable *obj);
1264 AccessibleTable_getNColumns (AccessibleTable *obj);
1267 AccessibleTable_getAccessibleAt (AccessibleTable *obj,
1272 AccessibleTable_getIndexAt (AccessibleTable *obj,
1277 AccessibleTable_getRowAtIndex (AccessibleTable *obj,
1281 AccessibleTable_getColumnAtIndex (AccessibleTable *obj,
1285 AccessibleTable_getRowDescription (AccessibleTable *obj,
1289 AccessibleTable_getColumnDescription (AccessibleTable *obj,
1293 AccessibleTable_getRowExtentAt (AccessibleTable *obj,
1298 AccessibleTable_getColumnExtentAt (AccessibleTable *obj,
1303 AccessibleTable_getRowHeader (AccessibleTable *obj,
1307 AccessibleTable_getColumnHeader (AccessibleTable *obj,
1311 AccessibleTable_getNSelectedRows (AccessibleTable *obj);
1314 AccessibleTable_getSelectedRows (AccessibleTable *obj,
1315 long int **selectedRows);
1318 AccessibleTable_getNSelectedColumns (AccessibleTable *obj);
1321 AccessibleTable_getSelectedColumns (AccessibleTable *obj,
1322 long int **selectedColumns);
1325 AccessibleTable_isRowSelected (AccessibleTable *obj,
1329 AccessibleTable_isColumnSelected (AccessibleTable *obj,
1333 AccessibleTable_isSelected (AccessibleTable *obj,
1339 * AccessibleText function prototypes
1344 AccessibleText_ref (AccessibleText *obj);
1347 AccessibleText_unref (AccessibleText *obj);
1350 AccessibleText_getCharacterCount (AccessibleText *obj);
1353 AccessibleText_getText (AccessibleText *obj,
1354 long int startOffset,
1355 long int endOffset);
1358 AccessibleText_getCaretOffset (AccessibleText *obj);
1361 AccessibleText_getAttributes (AccessibleText *obj,
1363 long int *startOffset,
1364 long int *endOffset);
1368 AccessibleText_setCaretOffset (AccessibleText *obj,
1369 long int newOffset);
1372 AccessibleText_getTextBeforeOffset (AccessibleText *obj,
1374 AccessibleTextBoundaryType type,
1375 long int *startOffset,
1376 long int *endOffset);
1379 AccessibleText_getTextAtOffset (AccessibleText *obj,
1381 AccessibleTextBoundaryType type,
1382 long int *startOffset,
1383 long int *endOffset);
1386 AccessibleText_getTextAfterOffset (AccessibleText *obj,
1388 AccessibleTextBoundaryType type,
1389 long int *startOffset,
1390 long int *endOffset);
1393 AccessibleText_getCharacterAtOffset (AccessibleText *obj,
1397 AccessibleText_getCharacterExtents (AccessibleText *obj,
1403 AccessibleCoordType type);
1406 AccessibleText_getOffsetAtPoint (AccessibleText *obj,
1409 AccessibleCoordType type);
1412 AccessibleText_getNSelections (AccessibleText *obj);
1415 AccessibleText_getSelection (AccessibleText *obj,
1416 long int selectionNum,
1417 long int *startOffset,
1418 long int *endOffset);
1422 AccessibleText_addSelection (AccessibleText *obj,
1423 long int startOffset,
1424 long int endOffset);
1427 AccessibleText_removeSelection (AccessibleText *obj,
1428 long int selectionNum);
1431 AccessibleText_setSelection (AccessibleText *obj,
1432 long int selectionNum,
1433 long int startOffset,
1434 long int endOffset);
1438 * AccessibleValue Function Prototypes:
1443 AccessibleValue_ref (AccessibleValue *obj);
1446 AccessibleValue_unref (AccessibleValue *obj);
1449 AccessibleValue_getMinimumValue (AccessibleValue *obj);
1452 AccessibleValue_getCurrentValue (AccessibleValue *obj);
1455 AccessibleValue_getMaximumValue (AccessibleValue *obj);
1458 AccessibleValue_setCurrentValue (AccessibleValue *obj,
1462 SPI_freeString (char *s);