| AT-SPI C Bindings Reference Manual | ||||
|---|---|---|---|---|
AccessibleComponent InterfaceAccessibleComponent Interface — An interface implemented by objects which occupy area on screen. |
enum AccessibleCoordType; enum AccessibleComponentLayer;void AccessibleComponent_ref (AccessibleComponent *obj);void AccessibleComponent_unref (AccessibleComponent *obj);SPIBoolean AccessibleComponent_contains (AccessibleComponent *obj, longint x, longint y, AccessibleCoordType ctype); Accessible* AccessibleComponent_getAccessibleAtPoint (AccessibleComponent *obj, longint x, longint y, AccessibleCoordType ctype);void AccessibleComponent_getExtents (AccessibleComponent *obj, longint *x, longint *y, longint *width, longint *height, AccessibleCoordType ctype);void AccessibleComponent_getPosition (AccessibleComponent *obj, longint *x, longint *y, AccessibleCoordType ctype);void AccessibleComponent_getSize (AccessibleComponent *obj, longint *width, longint *height); AccessibleComponentLayer AccessibleComponent_getLayer (AccessibleComponent *obj);short AccessibleComponent_getMDIZOrder (AccessibleComponent *obj);SPIBoolean AccessibleComponent_grabFocus (AccessibleComponent *obj);double AccessibleComponent_getAlpha (AccessibleComponent *obj);
The Component interface is implemented by objects which are visible, or are potentially visible, onscreen. The interface exposes onscreen bounds, the approximate "layer" in which the object resides, sometimes including z-order information, and allows objects to explicitly be told to request focus.
typedef enum {
SPI_COORD_TYPE_SCREEN,
SPI_COORD_TYPE_WINDOW
} AccessibleCoordType;
Specifies how xy coordinates are to be interpreted. Used by functions such
as AccessibleComponent_getPosition() and AccessibleText_getCharacterExtents()
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_WINDOW,
SPI_LAYER_LAST_DEFINED
} AccessibleComponentLayer;
Describes the layer of a component.
These enumerated "layer values" are used when determining which UI rendering layer a component is drawn into, which can help in making determinations of when components occlude one another.
void AccessibleComponent_ref (AccessibleComponent *obj);
Increment the reference count for an
obj : |
a pointer to an object implementing |
void AccessibleComponent_unref (AccessibleComponent *obj);
Decrement the reference count for an
obj : |
a pointer to the object implementing |
SPIBoolean AccessibleComponent_contains (AccessibleComponent *obj, longint x, longint y, AccessibleCoordType ctype);
Query whether a given
obj : |
a pointer to the |
x : |
a |
y : |
a |
ctype : |
the desired coordinate system of the point (x, y)
(e.g. CSPI_COORD_TYPE_WINDOW, CSPI_COORD_TYPE_SCREEN).
|
| Returns : | a x, y),
otherwise |
Accessible* AccessibleComponent_getAccessibleAtPoint (AccessibleComponent *obj, longint x, longint y, AccessibleCoordType ctype);
Get the accessible child at a given coordinate within an
obj : |
a pointer to the |
x : |
a |
y : |
a |
ctype : |
the coordinate system of the point (x, y)
(e.g. CSPI_COORD_TYPE_WINDOW, CSPI_COORD_TYPE_SCREEN).
|
| Returns : | a pointer to an Accessible child of the specified component which
contains the point (x, y), or NULL of no child contains the point.
|
void AccessibleComponent_getExtents (AccessibleComponent *obj, longint *x, longint *y, longint *width, longint *height, AccessibleCoordType ctype);
Get the bounding box of the specified
obj : |
a pointer to the |
x : |
a pointer to a |
y : |
a pointer to a |
width : |
a pointer to a |
height : |
a pointer to a |
ctype : |
the desired coordinate system into which to return the results, (e.g. CSPI_COORD_TYPE_WINDOW, CSPI_COORD_TYPE_SCREEN). |
void AccessibleComponent_getPosition (AccessibleComponent *obj, longint *x, longint *y, AccessibleCoordType ctype);
Get the minimum x and y coordinates of the specified
obj : |
a pointer to the |
x : |
a pointer to a |
y : |
a pointer to a |
ctype : |
the desired coordinate system into which to return the results, (e.g. CSPI_COORD_TYPE_WINDOW, CSPI_COORD_TYPE_SCREEN). |
void AccessibleComponent_getSize (AccessibleComponent *obj, longint *width, longint *height);
Get the size of the specified
obj : |
a pointer to the |
width : |
a pointer to a |
height : |
a pointer to a |
AccessibleComponentLayer AccessibleComponent_getLayer (AccessibleComponent *obj);
Query which layer the component is painted into, to help determine its visibility in terms of stacking order.
obj : |
a pointer to the |
| Returns : | the AccessibleComponentLayer into which this component is painted. |
short AccessibleComponent_getMDIZOrder (AccessibleComponent *obj);
Query the z stacking order of a component which is in the MDI or window layer. (Bigger z-order numbers mean nearer the top)
obj : |
a pointer to the |
| 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. |
SPIBoolean AccessibleComponent_grabFocus (AccessibleComponent *obj);
Attempt to set the keyboard input focus to the specified
obj : |
a pointer to the |
| Returns : | |