X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=cspi%2Fspi.h;h=3bebd99fe0fb98d20f11261a4098568709cc6208;hb=a31b958e89b901eec190109be30183a8afc6989d;hp=414ebaf611c6b2ecba2fdbf656ad53e4cb303f68;hpb=11e760ebf21a1d27d740f6b4a904d36959f587dc;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git diff --git a/cspi/spi.h b/cspi/spi.h index 414ebaf..3bebd99 100644 --- a/cspi/spi.h +++ b/cspi/spi.h @@ -1,39 +1,39 @@ - #ifndef _SPI_H #define _SPI_H -/* Implementation private definitions */ -#include "spi-impl.h" +#include + +#include +/* + * Definitions for AccessibleRole, AccessibleState, + * AccessibleEvent, and event listeners. + */ +#include +#include +#include /* - * Definitions for ACCESSIBLE_STATE , ACCESSIBLE_ROLE, AccessibleEvent, - * and event listeners. + * Auxiliary typedefs and mask definitions */ +#include -#include "spi-roletypes.h" -#include "spi-statetypes.h" -#include "spi-listener.h" +G_BEGIN_DECLS /* - * * Enumerated type for text boundary types - * */ - typedef enum { - TEXT_BOUNDARY_CHAR, - TEXT_BOUNDARY_CURSOR_POS, - TEXT_BOUNDARY_WORD_START, - TEXT_BOUNDARY_WORD_END, - TEXT_BOUNDARY_SENTENCE_START, - TEXT_BOUNDARY_SENTENCE_END, - TEXT_BOUNDARY_LINE_START, - TEXT_BOUNDARY_LINE_END, - TEXT_BOUNDARY_ATTRIBUTE_RANGE -} TEXT_BOUNDARY_TYPE; - - + SPI_TEXT_BOUNDARY_CHAR, + SPI_TEXT_BOUNDARY_CURSOR_POS, + SPI_TEXT_BOUNDARY_WORD_START, + SPI_TEXT_BOUNDARY_WORD_END, + SPI_TEXT_BOUNDARY_SENTENCE_START, + SPI_TEXT_BOUNDARY_SENTENCE_END, + SPI_TEXT_BOUNDARY_LINE_START, + SPI_TEXT_BOUNDARY_LINE_END, + SPI_TEXT_BOUNDARY_ATTRIBUTE_RANGE +} AccessibleTextBoundaryType; /* * @@ -43,20 +43,87 @@ typedef enum typedef enum { - RELATION_LABEL_FOR, - RELATION_LABELED_BY, - RELATION_CONTROLLER_FOR, - RELATION_CONTROLLED_BY, - RELATION_MEMBER_OF -} RELATION_TYPE; + SPI_RELATION_LABEL_FOR, + SPI_RELATION_LABELED_BY, + SPI_RELATION_CONTROLLER_FOR, + SPI_RELATION_CONTROLLED_BY, + SPI_RELATION_MEMBER_OF +} AccessibleRelationType; /* don't change the order of these ! */ -typedef enum _AccessibleCoordType { - COORD_TYPE_SCREEN, - COORD_TYPE_WINDOW +typedef enum { + SPI_COORD_TYPE_SCREEN, + SPI_COORD_TYPE_WINDOW } AccessibleCoordType; +typedef enum { + SPI_KEY_PRESS, + SPI_KEY_RELEASE, + SPI_KEY_PRESSRELEASE, + SPI_KEY_SYM +} AccessibleKeySynthType; + +typedef enum { + SPI_KEYLISTENER_NOSYNC = 0, + SPI_KEYLISTENER_SYNCHRONOUS = 1, + SPI_KEYLISTENER_CANCONSUME = 2, + SPI_KEYLISTENER_ALL_WINDOWS = 4 +} AccessibleKeyListenerSyncType; + +typedef unsigned long AccessibleKeyEventMask; + +/** + * AccessibleComponentLayer: + * @SPI_LAYER_INVALID: The layer cannot be determined or is somehow undefined. + * @SPI_LAYER_BACKGROUND: Component belongs to the destop background. + * @SPI_LAYER_CANVAS: Component is a canvas backdrop or drawing area. + * @SPI_LAYER_WIDGET: Component is a 'normal' widget. + * @SPI_LAYER_MDI: Component is drawn in the MDI layer and may have valid + * Z-information relative to other MDI-layer components. + * @SPI_LAYER_POPUP: Component is in the popup layer, above other widgets and + * MDI components. + * @SPI_LAYER_OVERLAY: Component is in the overlay plane - this value is reserved + * for future use. + * @SPI_LAYER_LAST_DEFINED: Used to determine the last valid value in the enum, + * should not be encountered. + **/ +typedef enum { + SPI_LAYER_INVALID, + SPI_LAYER_BACKGROUND, + SPI_LAYER_CANVAS, + SPI_LAYER_WIDGET, + SPI_LAYER_MDI, + SPI_LAYER_POPUP, + SPI_LAYER_OVERLAY, + SPI_LAYER_LAST_DEFINED +} AccessibleComponentLayer; + + +/** + * AccessibleKeySet: + * @keysyms: + * @keycodes: + * @len: + * + * Structure containing identifying information about a set of keycode or + * keysyms. + **/ +typedef struct _AccessibleKeySet +{ + unsigned long *keysyms; + unsigned short *keycodes; + short len; +} AccessibleKeySet; + +/** + * SPI_KEYSET_ALL_KEYS: + * @SPI_KEYSET_ALL_KEYS: A special value for an AccessibleKeySet type, which tacitly + * includes all keycodes and keyvals for the specified modifier set. + **/ +#define SPI_KEYSET_ALL_KEYS NULL + +typedef unsigned long AccessibleKeyMaskType; /* * @@ -76,7 +143,7 @@ SPI_init (void); /** * SPI_event_main: - * @isGNOMEApp: a #boolean indicating whether the client of the SPI + * @isGNOMEApp: a #SPIBoolean indicating whether the client of the SPI * will use the Gnome event loop or not. * * Starts/enters the main event loop for the SPI services. @@ -86,7 +153,7 @@ SPI_init (void); * **/ void -SPI_event_main (boolean isGNOMEApp); +SPI_event_main (SPIBoolean isGNOMEApp); /** * SPI_event_is_ready: @@ -98,7 +165,7 @@ SPI_event_main (boolean isGNOMEApp); * Returns: #TRUE if an event is waiting, otherwise #FALSE. * **/ -boolean +SPIBoolean SPI_eventIsReady (); /** @@ -113,7 +180,7 @@ SPI_eventIsReady (); * **/ AccessibleEvent * -SPI_nextEvent (boolean waitForEvent); +SPI_nextEvent (SPIBoolean waitForEvent); /** * SPI_exit: @@ -130,7 +197,7 @@ SPI_exit (void); */ /** - * createEventListener: + * createAccessibleEventListener: * @callback : an #AccessibleEventListenerCB callback function, or NULL. * * Create a new #AccessibleEventListener with a specified callback function. @@ -139,10 +206,10 @@ SPI_exit (void); * **/ AccessibleEventListener * -createEventListener (AccessibleEventListenerCB callback); +createAccessibleEventListener (AccessibleEventListenerCB callback); /** - * EventListener_addCallback: + * AccessibleEventListener_addCallback: * @listener: the #AccessibleEventListener instance to modify. * @callback: an #AccessibleEventListenerCB function pointer. * @@ -151,12 +218,12 @@ createEventListener (AccessibleEventListenerCB callback); * Returns: #TRUE if successful, otherwise #FALSE. * **/ -boolean -EventListener_addCallback (AccessibleEventListener *listener, - AccessibleEventListenerCB callback); +SPIBoolean +AccessibleEventListener_addCallback (AccessibleEventListener *listener, + AccessibleEventListenerCB callback); /** - * EventListener_removeCallback: + * AccessibleEventListener_removeCallback: * @listener: the #AccessibleEventListener instance to modify. * @callback: an #AccessibleEventListenerCB function pointer. * @@ -165,9 +232,49 @@ EventListener_addCallback (AccessibleEventListener *listener, * Returns: #TRUE if successful, otherwise #FALSE. * **/ -boolean -EventListener_removeCallback (AccessibleEventListener *listener, - AccessibleEventListenerCB callback); +SPIBoolean +AccessibleEventListener_removeCallback (AccessibleEventListener *listener, + AccessibleEventListenerCB callback); + +/** + * createAccessibleKeystrokeListener: + * @callback : an #AccessibleKeystrokeListenerCB callback function, or NULL. + * + * Create a new #AccessibleKeystrokeListener with a specified callback function. + * + * Returns: a pointer to a newly-created #AccessibleKeystrokeListener. + * + **/ +AccessibleKeystrokeListener * +createAccessibleKeystrokeListener (AccessibleKeystrokeListenerCB callback); + +/** + * KeystrokeListener_addCallback: + * @listener: the #KeystrokeListener instance to modify. + * @callback: an #KeystrokeListenerCB function pointer. + * + * Add an in-process callback function to an existing #KeystrokeListener. + * + * Returns: #TRUE if successful, otherwise #FALSE. + * + **/ +SPIBoolean +AccessibleKeystrokeListener_addCallback (AccessibleKeystrokeListener *listener, + AccessibleKeystrokeListenerCB callback); + +/** + * AccessibleKeystrokeListener_removeCallback: + * @listener: the #AccessibleKeystrokeListener instance to modify. + * @callback: an #AccessibleKeystrokeListenerCB function pointer. + * + * Remove an in-process callback function from an existing #AccessibleKeystrokeListener. + * + * Returns: #TRUE if successful, otherwise #FALSE. + * + **/ +SPIBoolean +AccessibleKeystrokeListener_removeCallback (AccessibleKeystrokeListener *listener, + AccessibleKeystrokeListenerCB callback); /* * @@ -196,9 +303,15 @@ EventListener_removeCallback (AccessibleEventListener *listener, * Returns: #TRUE if successful, otherwise #FALSE. * **/ -boolean +SPIBoolean registerGlobalEventListener (AccessibleEventListener *listener, char *eventType); +SPIBoolean +deregisterGlobalEventListener (AccessibleEventListener *listener, + char *eventType); +SPIBoolean +deregisterGlobalEventListenerAll (AccessibleEventListener *listener); + /** * getDesktopCount: @@ -225,7 +338,7 @@ getDesktopCount (); * **/ Accessible* -getDesktop (int n); +getDesktop (int i); /** * getDesktopList: @@ -245,35 +358,44 @@ int getDesktopList (Accessible **list); /** - * registerKeystrokeListener: - * @listener: a pointer to the #KeystrokeListener for which + * registerAccessibleKeystrokeListener: + * @listener: a pointer to the #AccessibleKeystrokeListener for which * keystroke events are requested. * - * Not Yet Implemented. + * [Partially Implemented.] * **/ void -registerKeystrokeListener (KeystrokeListener *listener); +registerAccessibleKeystrokeListener (AccessibleKeystrokeListener *listener, + AccessibleKeySet *keys, + AccessibleKeyMaskType modmask, + AccessibleKeyEventMask eventmask, + AccessibleKeyListenerSyncType sync_type); + +void +deregisterAccessibleKeystrokeListener (AccessibleKeystrokeListener *listener, + AccessibleKeyMaskType modmask); /** * generateKeyEvent: - * @keycode: a #long indicating the keycode of the key event + * @keyval: a #long integer indicating the keycode or keysym of the key event * being synthesized. - * @meta: a #long indicating the key modifiers to be sent - * with the event, if any. + * @synth_type: a #AccessibleKeySynthType flag indicating whether @keyval + * is to be interpreted as a keysym rather than a keycode + * (SPI_KEYSYM) and whether to synthesize + * SPI_KEY_PRESS, SPI_KEY_RELEASE, or both (SPI_KEY_PRESSRELEASE). * * Synthesize a keyboard event (as if a hardware keyboard event occurred in the * current UI context). - * Not Yet Implemented. * **/ void -generateKeyEvent (long keyCode, long meta); +generateKeyEvent (long int keyval, AccessibleKeySynthType synth_type); /** * generateMouseEvent: - * @x: a #long indicating the screen x coordinate of the mouse event. - * @y: a #long indicating the screen y coordinate of the mouse event. + * @x: a #long int indicating the screen x coordinate of the mouse event. + * @y: a #long int indicating the screen y coordinate of the mouse event. * @name: a string indicating which mouse event to be synthesized * (e.g. "button1", "button2", "mousemove"). * @@ -282,7 +404,7 @@ generateKeyEvent (long keyCode, long meta); * **/ void -generateMouseEvent (long x, long y, char *name); +generateMouseEvent (long int x, long int y, char *name); /* * @@ -353,7 +475,6 @@ Accessible_getParent (Accessible *obj); /** * Accessible_getChildCount: - * * @obj: a pointer to the #Accessible object on which to operate. * * Get the number of children contained by an #Accessible object. @@ -379,7 +500,7 @@ Accessible_getChildCount (Accessible *obj); **/ Accessible * Accessible_getChildAtIndex (Accessible *obj, - long childIndex); + long int childIndex); /** * Accessible_getIndexInParent: @@ -398,9 +519,12 @@ Accessible_getIndexInParent (Accessible *obj); /** * Accessible_getRelationSet: + * @obj: a pointer to the #Accessible object on which to operate. * * Not Yet Implemented. * + * Returns: a pointer to an array of #AccessibleRelations. + * **/ AccessibleRelation ** Accessible_getRelationSet (Accessible *obj); @@ -419,9 +543,12 @@ Accessible_getRole (Accessible *obj); /** * Accessible_getStateSet: + * @obj: a pointer to the #Accessible object on which to operate. * * Not Yet Implemented. * + * Returns: a pointer to an #AccessibleStateSet representing the object's current state. + * **/ AccessibleStateSet * Accessible_getStateSet (Accessible *obj); @@ -433,12 +560,11 @@ Accessible_getStateSet (Accessible *obj); * @obj: a pointer to the #Accessible instance to query. * * Query whether the specified #Accessible implements #AccessibleAction. - * Not Yet Implemented. * * Returns: #TRUE if @obj implements the #AccessibleAction interface, * #FALSE otherwise. **/ -boolean +SPIBoolean Accessible_isAction (Accessible *obj); /** @@ -450,7 +576,7 @@ Accessible_isAction (Accessible *obj); * Returns: #TRUE if @obj implements the #AccessibleComponent interface, * #FALSE otherwise. **/ -boolean +SPIBoolean Accessible_isComponent (Accessible *obj); /** @@ -458,12 +584,11 @@ Accessible_isComponent (Accessible *obj); * @obj: a pointer to the #Accessible instance to query. * * Query whether the specified #Accessible implements #AccessibleEditableText. - * Not Yet Implemented. * * Returns: #TRUE if @obj implements the #AccessibleEditableText interface, * #FALSE otherwise. **/ -boolean +SPIBoolean Accessible_isEditableText (Accessible *obj); /** @@ -471,12 +596,11 @@ Accessible_isEditableText (Accessible *obj); * @obj: a pointer to the #Accessible instance to query. * * Query whether the specified #Accessible implements #AccessibleHypertext. - * Not Yet Implemented. * * Returns: #TRUE if @obj implements the #AccessibleHypertext interface, * #FALSE otherwise. **/ -boolean +SPIBoolean Accessible_isHypertext (Accessible *obj); /** @@ -484,12 +608,11 @@ Accessible_isHypertext (Accessible *obj); * @obj: a pointer to the #Accessible instance to query. * * Query whether the specified #Accessible implements #AccessibleImage. - * Not Yet Implemented. * * Returns: #TRUE if @obj implements the #AccessibleImage interface, * #FALSE otherwise. **/ -boolean +SPIBoolean Accessible_isImage (Accessible *obj); /** @@ -497,12 +620,11 @@ Accessible_isImage (Accessible *obj); * @obj: a pointer to the #Accessible instance to query. * * Query whether the specified #Accessible implements #AccessibleSelection. - * Not Yet Implemented. * * Returns: #TRUE if @obj implements the #AccessibleSelection interface, * #FALSE otherwise. **/ -boolean +SPIBoolean Accessible_isSelection (Accessible *obj); /** @@ -510,12 +632,11 @@ Accessible_isSelection (Accessible *obj); * @obj: a pointer to the #Accessible instance to query. * * Query whether the specified #Accessible implements #AccessibleTable. - * Not Yet Implemented. * * Returns: #TRUE if @obj implements the #AccessibleTable interface, * #FALSE otherwise. **/ -boolean +SPIBoolean Accessible_isTable (Accessible *obj); /** @@ -523,20 +644,13 @@ Accessible_isTable (Accessible *obj); * @obj: a pointer to the #Accessible instance to query. * * Query whether the specified #Accessible implements #AccessibleText. - * Not Yet Implemented. * * Returns: #TRUE if @obj implements the #AccessibleText interface, * #FALSE otherwise. **/ -boolean +SPIBoolean Accessible_isText (Accessible *obj); -/** - * Accessible_getAction: - * - * Not Yet Implemented. - * - **/ AccessibleAction * Accessible_getAction (Accessible *obj); @@ -627,8 +741,7 @@ Accessible_queryInterface (Accessible *obj, char *interface_name); */ int -AccessibleAction_ref ( - AccessibleAction *obj); +AccessibleAction_ref (AccessibleAction *obj); int AccessibleAction_unref (AccessibleAction *obj); @@ -637,28 +750,53 @@ long AccessibleAction_getNActions (AccessibleAction *obj); /** + * AccessibleAction_getName: + * @obj: a pointer to the #AccessibleAction implementor to query. + * @i: a long integer indicating which action to query. + * + * Get the name of the '@i-th' action invokable on an + * object implementing #AccessibleAction. + * + * Returns: the 'event type' name of the action, as a UTF-8 string. + * + **/ +char * +AccessibleAction_getName (AccessibleAction *obj, long int i); + +/** * AccessibleAction_getDescription: * @obj: a pointer to the #AccessibleAction to query. + * @i: a long integer indicating which action to query. * - * Get the description of 'i-th' action invokable on an + * Get the description of '@i-th' action invokable on an * object implementing #AccessibleAction. * - * Not Yet Implemented. - * - * Returns: a UTF-8 string describing the 'i-th' invokable action. + * Returns: a UTF-8 string describing the '@i-th' invokable action. * **/ char * AccessibleAction_getDescription (AccessibleAction *obj, - long index); + long int i); -boolean +SPIBoolean AccessibleAction_doAction (AccessibleAction *obj, - long index); + long int i); +/** + * AccessibleAction_getKeybinding: + * @obj: a pointer to the #AccessibleAction implementor to query. + * @i: a long integer indicating which action to query. + * + * Get the keybindings for the @i-th action invokable on an + * object implementing #AccessibleAction, if any are defined. + * + * Returns: a UTF-8 string which can be parsed to determine the @i-th + * invokable action's keybindings. + * + **/ char * AccessibleAction_getKeyBinding (AccessibleAction *obj, - long index); + long int i); /* * @@ -733,6 +871,7 @@ AccessibleApplication_getID (AccessibleApplication *obj); /** * AccessibleApplication_pause: + * @obj: a pointer to the #Accessible object on which to operate. * * Attempt to pause the application (used when client event queue is * over-full). @@ -741,11 +880,12 @@ AccessibleApplication_getID (AccessibleApplication *obj); * Returns: #TRUE if the application was paused successfully, #FALSE otherwise. * **/ -boolean +SPIBoolean AccessibleApplication_pause (AccessibleApplication *obj); /** - * AccessibleApplication_pause: + * AccessibleApplication_resume: + * @obj: a pointer to the #Accessible object on which to operate. * * Attempt to resume the application (used after #AccessibleApplication_pause). * Not Yet Implemented. @@ -753,7 +893,7 @@ AccessibleApplication_pause (AccessibleApplication *obj); * Returns: #TRUE if application processing resumed successfully, #FALSE otherwise. * **/ -boolean +SPIBoolean AccessibleApplication_resume (AccessibleApplication *obj); /* @@ -768,16 +908,16 @@ AccessibleComponent_ref (AccessibleComponent *obj); int AccessibleComponent_unref (AccessibleComponent *obj); -boolean +SPIBoolean AccessibleComponent_contains (AccessibleComponent *obj, - long x, - long y, + long int x, + long int y, AccessibleCoordType ctype); Accessible * AccessibleComponent_getAccessibleAtPoint (AccessibleComponent *obj, - long x, - long y, + long int x, + long int y, AccessibleCoordType ctype); /** @@ -795,22 +935,46 @@ AccessibleComponent_getAccessibleAtPoint (AccessibleComponent *obj, **/ void AccessibleComponent_getExtents (AccessibleComponent *obj, - long *x, - long *y, - long *width, - long *height, + long int *x, + long int *y, + long int *width, + long int *height, AccessibleCoordType ctype); void AccessibleComponent_getPosition (AccessibleComponent *obj, - long *x, - long *y, + long int *x, + long int *y, AccessibleCoordType ctype); void AccessibleComponent_getSize (AccessibleComponent *obj, - long *width, - long *height); + long int *width, + long int *height); + +/** + * AccessibleComponent_getLayer: + * @obj: a pointer to the #AccessibleComponent to query. + * + * Query which layer the component is painted into, to help determine its + * visibility in terms of stacking order. + * + * Returns: the #AccessibleComponentLayer into which this component is painted. + **/ +AccessibleComponentLayer +AccessibleComponent_getLayer (AccessibleComponent *obj); + +/** + * AccessibleComponent_getMDIZOrder: + * @obj: a pointer to the #AccessibleComponent to query. + * + * Query the z stacking order of a component which is in the MDI layer. + * + * Returns: a short integer indicating the stacking order of the component + * in the MDI layer, or -1 if the component is not in the MDI layer. + **/ +short +AccessibleComponent_getMDIZOrder (AccessibleComponent *obj); void AccessibleComponent_grabFocus (AccessibleComponent *obj); @@ -827,39 +991,40 @@ AccessibleEditableText_ref (AccessibleEditableText *obj); int AccessibleEditableText_unref (AccessibleEditableText *obj); -boolean -AccessibleEditableText_setRunAttributes (AccessibleEditableText *obj, - const char *attributes, - long startPos, long endPos); +SPIBoolean +AccessibleEditableText_setAttributes (AccessibleEditableText *obj, + const char *attributes, + long int startOffset, + long int endOffset); -void +SPIBoolean AccessibleEditableText_setTextContents (AccessibleEditableText *obj, const char *newContents); -void +SPIBoolean AccessibleEditableText_insertText (AccessibleEditableText *obj, - long position, + long int position, char *text, - long length); + long int length); -void +SPIBoolean AccessibleEditableText_copyText (AccessibleText *obj, - long startPos, - long endPos); + long int startPos, + long int endPos); -void +SPIBoolean AccessibleEditableText_cutText (AccessibleEditableText *obj, - long startPos, - long endPos); + long int startPos, + long int endPos); -void +SPIBoolean AccessibleEditableText_deleteText (AccessibleEditableText *obj, - long startPos, - long endPos); + long int startPos, + long int endPos); -void +SPIBoolean AccessibleEditableText_pasteText (AccessibleEditableText *obj, - long position); + long int position); /* * @@ -867,29 +1032,23 @@ AccessibleEditableText_pasteText (AccessibleEditableText *obj, * */ -int -AccessibleHyperlink_ref (AccessibleHyperlink *obj); - -int -AccessibleHyperlink_unref (AccessibleHyperlink *obj); - long AccessibleHyperlink_getNAnchors (AccessibleHyperlink *obj); char * AccessibleHyperlink_getURI (AccessibleHyperlink *obj, - long i); + long int i); -Accessible +Accessible * AccessibleHyperlink_getObject (AccessibleHyperlink *obj, - long i); + long int i); void AccessibleHyperlink_getIndexRange (AccessibleHyperlink *obj, - long *startIndex, - long *endIndex); + long int *startIndex, + long int *endIndex); -boolean +SPIBoolean AccessibleHyperlink_isValid (AccessibleHyperlink *obj); /* @@ -908,12 +1067,12 @@ long AccessibleHypertext_getNLinks (AccessibleHypertext *obj); AccessibleHyperlink * -AccessibleHyperText_getLink (AccessibleHypertext *obj, - long linkIndex); +AccessibleHypertext_getLink (AccessibleHypertext *obj, + long int linkIndex); long AccessibleHypertext_getLinkIndex (AccessibleHypertext *obj, - long characterIndex); + long int characterOffset); /* * @@ -932,15 +1091,22 @@ AccessibleImage_getImageDescription (AccessibleImage *obj); void AccessibleImage_getImageSize (AccessibleImage *obj, - long *width, - long *height); + long int *width, + long int *height); void AccessibleImage_getImagePosition (AccessibleImage *obj, - long *x, - long *y, + long int *x, + long int *y, AccessibleCoordType ctype); +void +AccessibleImage_getImageExtents (AccessibleImage *obj, + long int *x, + long int *y, + long int *width, + long int *height, + AccessibleCoordType ctype); /* * * AccessibleRelation function prototypes @@ -953,12 +1119,14 @@ AccessibleRelation_ref (AccessibleRelation *obj); int AccessibleRelation_unref (AccessibleRelation *obj); -RELATION_TYPE +AccessibleRelationType AccessibleRelation_getRelationType (AccessibleRelation *obj); -Accessible * -AccessibleRelation_getTarget (AccessibleRelation *obj); +int +AccessibleRelation_getNTargets (AccessibleRelation *obj); +Accessible * +AccessibleRelation_getTarget (AccessibleRelation *obj, int i); /* @@ -977,22 +1145,22 @@ long AccessibleSelection_getNSelectedChildren (AccessibleSelection *obj); Accessible * -AccessibleSelection_refSelectedChild (AccessibleSelection *obj, - long selectedChildIndex); +AccessibleSelection_getSelectedChild (AccessibleSelection *obj, + long int selectedChildIndex); -boolean +SPIBoolean AccessibleSelection_selectChild (AccessibleSelection *obj, - long childIndex); + long int childIndex); -boolean +SPIBoolean AccessibleSelection_deselectSelectedChild (AccessibleSelection *obj, - long selectedChildIndex); + long int selectedChildIndex); -boolean +SPIBoolean AccessibleSelection_isChildSelected (AccessibleSelection *obj, - long childIndex); + long int childIndex); -void +SPIBoolean AccessibleSelection_selectAll (AccessibleSelection *obj); void @@ -1011,19 +1179,19 @@ AccessibleStateSet_ref (AccessibleStateSet *obj); int AccessibleStateSet_unref (AccessibleStateSet *obj); -boolean +SPIBoolean AccessibleStateSet_contains (AccessibleStateSet *obj, - ACCESSIBLE_STATE state); + AccessibleState state); void AccessibleStateSet_add (AccessibleStateSet *obj, - ACCESSIBLE_STATE state); + AccessibleState state); void AccessibleStateSet_remove (AccessibleStateSet *obj, - ACCESSIBLE_STATE state); + AccessibleState state); -boolean +SPIBoolean AccessibleStateSet_equals (AccessibleStateSet *obj, AccessibleStateSet *obj2); @@ -1032,7 +1200,7 @@ AccessibleStateSet_compare (AccessibleStateSet *obj, AccessibleStateSet *obj2, AccessibleStateSet **differenceSet); -boolean +SPIBoolean AccessibleStateSet_isEmpty (AccessibleStateSet *obj); @@ -1061,75 +1229,75 @@ long AccessibleTable_getNColumns (AccessibleTable *obj); Accessible * -AccessibleTable_refAt (AccessibleTable *obj, - long row, - long column); +AccessibleTable_getAccessibleAt (AccessibleTable *obj, + long int row, + long int column); long AccessibleTable_getIndexAt (AccessibleTable *obj, - long row, - long column); + long int row, + long int column); long AccessibleTable_getRowAtIndex (AccessibleTable *obj, - long index); + long int index); long AccessibleTable_getColumnAtIndex (AccessibleTable *obj, - long index); + long int index); char * AccessibleTable_getRowDescription (AccessibleTable *obj, - long row); + long int row); char * AccessibleTable_getColumnDescription (AccessibleTable *obj, - long column); + long int column); long AccessibleTable_getRowExtentAt (AccessibleTable *obj, - long row, - long column); + long int row, + long int column); long AccessibleTable_getColumnExtentAt (AccessibleTable *obj, - long row, - long column); + long int row, + long int column); Accessible * AccessibleTable_getRowHeader (AccessibleTable *obj, - long row); + long int row); Accessible * AccessibleTable_getColumnHeader (AccessibleTable *obj, - long column); + long int column); long AccessibleTable_getNSelectedRows (AccessibleTable *obj); long AccessibleTable_getSelectedRows (AccessibleTable *obj, - long **selectedRows); + long int **selectedRows); long AccessibleTable_getNSelectedColumns (AccessibleTable *obj); long AccessibleTable_getSelectedColumns (AccessibleTable *obj, - long **selectedColumns); + long int **selectedColumns); -boolean +SPIBoolean AccessibleTable_isRowSelected (AccessibleTable *obj, - long row); + long int row); -boolean +SPIBoolean AccessibleTable_isColumnSelected (AccessibleTable *obj, - long column); + long int column); -boolean +SPIBoolean AccessibleTable_isSelected (AccessibleTable *obj, - long row, - long column); + long int row, + long int column); /* * @@ -1148,79 +1316,87 @@ AccessibleText_getCharacterCount (AccessibleText *obj); char * AccessibleText_getText (AccessibleText *obj, - long startOffset, - long endOffset); + long int startOffset, + long int endOffset); long AccessibleText_getCaretOffset (AccessibleText *obj); char * AccessibleText_getAttributes (AccessibleText *obj, - long offset, - long *startOffset, - long *endOfset); + long int offset, + long int *startOffset, + long int *endOffset); -boolean +SPIBoolean AccessibleText_setCaretOffset (AccessibleText *obj, - long newOffset); + long int newOffset); char * AccessibleText_getTextBeforeOffset (AccessibleText *obj, - long offset, - TEXT_BOUNDARY_TYPE type, - long *startOffset, long *endOffset); + long int offset, + AccessibleTextBoundaryType type, + long int *startOffset, + long int *endOffset); char * AccessibleText_getTextAtOffset (AccessibleText *obj, - long offset, - TEXT_BOUNDARY_TYPE type, - long *startOffset, long *endOffset); + long int offset, + AccessibleTextBoundaryType type, + long int *startOffset, + long int *endOffset); char * AccessibleText_getTextAfterOffset (AccessibleText *obj, - long offset, - TEXT_BOUNDARY_TYPE type, - long *startOffset, long *endOffset); -char + long int offset, + AccessibleTextBoundaryType type, + long int *startOffset, + long int *endOffset); + +unsigned long AccessibleText_getCharacterAtOffset (AccessibleText *obj, - long offset); + long int offset); void AccessibleText_getCharacterExtents (AccessibleText *obj, - long offset, - long *x, - long *y, - long *width, - long *height, AccessibleCoordType type); + long int offset, + long int *x, + long int *y, + long int *width, + long int *height, + AccessibleCoordType type); long AccessibleText_getOffsetAtPoint (AccessibleText *obj, - long x, - long y, AccessibleCoordType type); + long int x, + long int y, + AccessibleCoordType type); long AccessibleText_getNSelections (AccessibleText *obj); void AccessibleText_getSelection (AccessibleText *obj, - long selectionNum, long *startOffset, - long *endOffset); + long int selectionNum, + long int *startOffset, + long int *endOffset); -boolean +SPIBoolean AccessibleText_addSelection (AccessibleText *obj, - long startOffset, long endOffset); + long int startOffset, + long int endOffset); -boolean +SPIBoolean AccessibleText_removeSelection (AccessibleText *obj, - long selectionNum); + long int selectionNum); -boolean +SPIBoolean AccessibleText_setSelection (AccessibleText *obj, - long selectionNum, - long startOffset, - long endOffset); + long int selectionNum, + long int startOffset, + long int endOffset); /* * @@ -1228,17 +1404,25 @@ AccessibleText_setSelection (AccessibleText *obj, * */ +int +AccessibleValue_ref (AccessibleValue *obj); + +int +AccessibleValue_unref (AccessibleValue *obj); + float -AccessibleValue_getMinimumValue (AccessibleValue *value); +AccessibleValue_getMinimumValue (AccessibleValue *obj); float -AccessibleValue_getCurrentValue (AccessibleValue *value); +AccessibleValue_getCurrentValue (AccessibleValue *obj); float -AccessibleValue_getMaximumValue (AccessibleValue *value); +AccessibleValue_getMaximumValue (AccessibleValue *obj); -boolean -AccessibleValue_setCurrentValue (AccessibleValue *value, +SPIBoolean +AccessibleValue_setCurrentValue (AccessibleValue *obj, float newValue); +G_END_DECLS + #endif