X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=cspi%2Fspi.h;h=9d258285de3cafd013c835c9af1d8d6b14a1399e;hb=b6a9e880c09f13a391a2a23b0dd685a518fe61a1;hp=955977c30501ff5e31f4b86cfa27242f9cbca071;hpb=1f3843d72458da51ffc10aa55cfb004c0b8d8f6a;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git diff --git a/cspi/spi.h b/cspi/spi.h index 955977c..9d25828 100644 --- a/cspi/spi.h +++ b/cspi/spi.h @@ -24,6 +24,8 @@ #ifndef _SPI_H #define _SPI_H +#include +#include #include /* * Definitions for AccessibleRole, AccessibleState, @@ -33,16 +35,40 @@ #include #include + /* * Auxiliary typedefs and mask definitions */ -#include +#include #ifdef __cplusplus extern "C" { #endif /** + *AccessibleCollectionMatchType: + * + *@SPI_COLLECTION_MATCH_INVALID + *@SPI_COLLECTION_MATCH_ALL TRUE if all of the criteria are met + *@SPI_COLLECTION_MATCH_ANY TRUE if any of the criteria are met + *@SPI_COLLECTION_MATCH_NONE TRUE if none of the criteria are met + *@SPI_COLLECTION_MATCH_EMPTY Same as MATCH_ALL if the criteria is non-empty; + * for empty criteria this rule requires returned value to also have empty set. + *@SPI_COLLECTION_MATCH_LAST_DEFINED + * + **/ +typedef enum +{ + SPI_COLLECTION_MATCH_INVALID, + SPI_COLLECTION_MATCH_ALL, + SPI_COLLECTION_MATCH_ANY, + SPI_COLLECTION_MATCH_NONE, + SPI_COLLECTION_MATCH_EMPTY, + SPI_COLLECTION_MATCH_LAST_DEFINED +}AccessibleCollectionMatchType; + + +/** *AccessibleTextBoundaryType: *@SPI_TEXT_BOUNDARY_CHAR: Delimiter is the current character's bounds. *@SPI_TEXT_BOUNDARY_CURSOR_POS: Delimiter is the current text caret position. @@ -294,21 +320,6 @@ typedef enum { typedef unsigned long AccessibleKeyEventMask; typedef unsigned long AccessibleDeviceEventMask; -/** - * SPIRect: - * @x: The position of the minimum x value of the rectangle (i.e. left hand corner) - * @y: The position of the minimum y value of the rectangle's bounds. - * @width: Width of the rectangle in pixels. - * @height: Height of the rectangle in pixels. - * - * A structure encapsulating a rectangle. - **/ -typedef struct { - long x; - long y; - long width; - long height; -} SPIRect; /** *AccessibleComponentLayer: @@ -401,6 +412,14 @@ typedef struct _AccessibleAttributeSet char **attributes; } AccessibleAttributeSet; +typedef struct _AccessibleRoleSet +{ + int len; + AccessibleRole *roles; +} AccessibleRoleSet; + + + /* Basic SPI initialization and event loop function prototypes */ int SPI_init (void); @@ -524,11 +543,13 @@ AccessibleApplication *Accessible_getHostApplication (Accessible *obj); SPIBoolean Accessible_isAction (Accessible *obj); SPIBoolean Accessible_isApplication (Accessible *obj); +SPIBoolean Accessible_isCollection (Accessible *obj); SPIBoolean Accessible_isComponent (Accessible *obj); SPIBoolean Accessible_isDocument (Accessible *obj); SPIBoolean Accessible_isEditableText (Accessible *obj); SPIBoolean Accessible_isHypertext (Accessible *obj); SPIBoolean Accessible_isImage (Accessible *obj); +SPIBoolean Accessible_isMatchRule (Accessible *obj); SPIBoolean Accessible_isSelection (Accessible *obj); SPIBoolean Accessible_isStreamableContent (Accessible *obj); SPIBoolean Accessible_isTable (Accessible *obj); @@ -537,11 +558,13 @@ SPIBoolean Accessible_isValue (Accessible *obj); AccessibleAction * Accessible_getAction (Accessible *obj); AccessibleApplication * Accessible_getApplication (Accessible *obj); +AccessibleCollection * Accessible_getCollection (Accessible *obj); AccessibleComponent * Accessible_getComponent (Accessible *obj); AccessibleDocument * Accessible_getDocument (Accessible *obj); AccessibleEditableText * Accessible_getEditableText (Accessible *obj); AccessibleHypertext * Accessible_getHypertext (Accessible *obj); AccessibleImage * Accessible_getImage (Accessible *obj); +AccessibleMatchRule * Accessible_getMatchRule (Accessible *obj); AccessibleSelection * Accessible_getSelection (Accessible *obj); AccessibleStreamableContent * Accessible_getStreamableContent (Accessible *obj); AccessibleTable * Accessible_getTable (Accessible *obj); @@ -575,6 +598,23 @@ char *AccessibleApplication_getLocale (AccessibleApplication *obj, int SPIBoolean AccessibleApplication_pause (AccessibleApplication *obj); SPIBoolean AccessibleApplication_resume (AccessibleApplication *obj); +/* AccessibleCollection function prototypes */ +void AccessibleCollection_ref (AccessibleCollection *obj); +void AccessibleCollection_unref (AccessibleCollection *obj); +AccessibleMatchRule * +AccessibleCollection_createMatchRule (AccessibleCollection *obj, + AccessibleStateSet *states, + AccessibleCollectionMatchType statematchtype, + AccessibleAttributeSet *attributes, + AccessibleCollectionMatchType attributematchtype, + AccessibleRoleSet *roles, + AccessibleCollectionMatchType rolematchtype, + char *interfaces, + AccessibleCollectionMatchType interfacematchtype, + long int invert); +void +AccessibleCollection_freeMatchRule (AccessibleCollection *obj, + AccessibleMatchRule *matchrule); /* AccessibleComponent function prototypes */ void AccessibleComponent_ref (AccessibleComponent *obj); @@ -749,6 +789,14 @@ AccessibleImage_getImageLocale (AccessibleImage *obj); /* * + * AccessibleMatchRule function prototypes + * + */ +void AccessibleMatchRule_ref (AccessibleMatchRule *obj); +void AccessibleMatchRule_unref (AccessibleMatchRule *obj); + +/* + * * AccessibleRelation function prototypes * */