Top | ![]() |
![]() |
![]() |
![]() |
Accessible ObjectsAccessible Objects — The base accessibility interface which all accessible objects implement. |
The Accessible interface provides for a hierarchical tree of accessible objects corresponding to user interface components and content in an accessible application. Accessible objects provide name, descriptive information, state information, and information on the "role" of the object in the user interface. The capabilities of these objects may be queried via interface queries, as they are implemented via interface aggregation. These objects are located in a containment hierarchy with parent/child relationships, and may have other functional relationships to objects within the tree.
void
Accessible_ref (Accessible *obj
);
Increment the reference count for an Accessible object.
void
Accessible_unref (Accessible *obj
);
Decrement the reference count for an Accessible object.
char *
Accessible_getName (Accessible *obj
);
Get the name of an Accessible object.
char *
Accessible_getDescription (Accessible *obj
);
Get the description of an Accessible object.
Accessible *
Accessible_getParent (Accessible *obj
);
Get an Accessible object's parent container.
a pointer tothe Accessible object which contains the given
Accessible instance, or NULL if the obj
has no parent container.
long
Accessible_getChildCount (Accessible *obj
);
Get the number of children contained by an Accessible object.
a long indicating the number of Accessible children contained by an Accessible object. or -1 on exception
Accessible * Accessible_getChildAtIndex (Accessible *obj
,long int childIndex
);
Get the Accessible child of an Accessible object at a given index.
obj |
a pointer to the Accessible object on which to operate. |
|
childIndex |
a long indicating which child is specified. |
long
Accessible_getIndexInParent (Accessible *obj
);
Get the index of an Accessible object in its containing Accessible.
a long indicating the index of the Accessible object
in its parent (i.e. containing) Accessible instance,
or -1 if obj
has no containing parent or on exception.
AccessibleRelation **
Accessible_getRelationSet (Accessible *obj
);
Get the set of AccessibleRelation objects which describe this Accessible object's relationships with other Accessible objects.
AccessibleRole
Accessible_getRole (Accessible *obj
);
Get the UI role of an Accessible object.
A UTF-8 string describing this role can be obtained via Accessible_getRoleName()
.
char *
Accessible_getRoleName (Accessible *obj
);
Get a UTF-8 string describing the role this object plays in the UI.
This method will return useful values for roles that fall outside the
enumeration used in Accessible_getRole()
.
AccessibleStateSet *
Accessible_getStateSet (Accessible *obj
);
Gets the current state of an object.
AccessibleAttributeSet *
Accessible_getAttributes (Accessible *obj
);
Get the AttributeSet representing any assigned name-value pair attributes or annotations for this object. For typographic, textual, or textually-semantic attributes, see AccessibleText_getAttributes instead.
AccessibleApplication *
Accessible_getHostApplication (Accessible *obj
);
Get the containing AccessibleApplication for an object.
char *
Accessible_getLocalizedRoleName (Accessible *obj
);
Get a UTF-8 string describing the (localized) role this object plays in the UI.
This method will return useful values for roles that fall outside the
enumeration used in Accessible_getRole()
.
Since
: AT-SPI 1.4
SPIBoolean
Accessible_isAction (Accessible *obj
);
Query whether the specified Accessible implements AccessibleAction.
SPIBoolean
Accessible_isApplication (Accessible *obj
);
Query whether the specified Accessible implements AccessibleApplication.
SPIBoolean
Accessible_isComponent (Accessible *obj
);
Query whether the specified Accessible implements AccessibleComponent.
SPIBoolean
Accessible_isDocument (Accessible *obj
);
Query whether the specified Accessible implements AccessibleDocument.
SPIBoolean
Accessible_isEditableText (Accessible *obj
);
Query whether the specified Accessible implements AccessibleEditableText.
SPIBoolean
Accessible_isHypertext (Accessible *obj
);
Query whether the specified Accessible implements AccessibleHypertext.
SPIBoolean
Accessible_isImage (Accessible *obj
);
Query whether the specified Accessible implements AccessibleImage.
SPIBoolean
Accessible_isSelection (Accessible *obj
);
Query whether the specified Accessible implements AccessibleSelection.
SPIBoolean
Accessible_isStreamableContent (Accessible *obj
);
Query whether the specified Accessible implements AccessibleStreamableContent.
SPIBoolean
Accessible_isTable (Accessible *obj
);
Query whether the specified Accessible implements AccessibleTable.
SPIBoolean
Accessible_isText (Accessible *obj
);
Query whether the specified Accessible implements AccessibleText.
SPIBoolean
Accessible_isValue (Accessible *obj
);
Query whether the specified Accessible implements AccessibleValue.
AccessibleAction *
Accessible_getAction (Accessible *obj
);
Get the AccessibleAction interface for an Accessible.
AccessibleApplication *
Accessible_getApplication (Accessible *obj
);
Get the AccessibleApplication interface for an Accessible.
AccessibleComponent *
Accessible_getComponent (Accessible *obj
);
Get the AccessibleComponent interface for an Accessible.
AccessibleDocument *
Accessible_getDocument (Accessible *obj
);
Get the AccessibleDocument interface for an Accessible.
AccessibleEditableText *
Accessible_getEditableText (Accessible *obj
);
Get the AccessibleEditableText interface for an Accessible.
AccessibleHypertext *
Accessible_getHypertext (Accessible *obj
);
Get the AccessibleHypertext interface for an Accessible.
AccessibleImage *
Accessible_getImage (Accessible *obj
);
Get the AccessibleImage interface for an Accessible.
AccessibleSelection *
Accessible_getSelection (Accessible *obj
);
Get the AccessibleSelection interface for an Accessible.
AccessibleStreamableContent *
Accessible_getStreamableContent (Accessible *obj
);
Get the AccessibleStreamableContent interface for an Accessible.
AccessibleTable *
Accessible_getTable (Accessible *obj
);
Get the AccessibleTable interface for an Accessible.
AccessibleText *
Accessible_getText (Accessible *obj
);
Get the AccessibleText interface for an Accessible.
AccessibleValue *
Accessible_getValue (Accessible *obj
);
Get the AccessibleValue interface for an Accessible.
AccessibleUnknown * Accessible_queryInterface (Accessible *obj
,const char *interface_name
);
Query an Accessible object to for a named interface.
obj |
a pointer to the Accessible instance to query. |
|
interface_name |
a UTF-8 character string specifiying the requested interface. |
char *
AccessibleRole_getName (AccessibleRole role
);
Get a localizeable string that indicates the name of an AccessibleRole. <em>DEPRECATED.</em>
struct Accessible { CORBA_Object objref; /* And some other bits */ guint on_loan : 1; guint ref_count : 30; };
An Accessible object is an opaque object used to refer to an accessible object corresponding to an user interface element.
Describes the role of an object
These are the built-in enumerated roles that UI components can have. Other roles may be added at runtime, so an AccessibleRole >= SPI_ROLE_LAST_DEFINED is not necessarily an error.
role is not legal, something is wrong with this object |
||
object is a label indicating keyboard accelerators for the parent |
||
Object is used to alert the user about something |
||
Object contains a dynamic or moving image |
||
Object is a 2d directional indicator |
||
Object contains one or more dates, usually arranged into a 2d list |
||
Object that can be drawn into and is used to trap events |
||
Object representd a choice that can be checked or unchecked and provides a separate indicator for the current state. |
||
Object is a menu item that behaves like a CHECK_BOX |
||
A specialized dialog that lets the user choose a color. |
||
The header for a column of data |
||
A list of choices the user can select from |
||
Allows entry of a date |
||
An inconifed internal frame within a DESKTOP_PANE |
||
A pane that supports internal frames and iconified versions of those internal frames. |
||
A rotating/rotatable valuator |
||
A top level window with title bar and a border |
||
A pane that allows the user to navigate through and select the contents of a directory. |
||
An object used for drawing custom user interface elements |
||
A specialized dialog that displays the files in the directory and lets the user select a file, browse a different directory, or specify a filename. |
||
A object that fills up space in a user interface |
||
Allows selection of a display font |
||
A top level window with a title bar, border, menubar, etc. |
||
A pane that is guaranteed to be painted on top of all panes beneath it |
||
A document container for HTML, whose children represent the document content. |
||
A small fixed size picture, typically used to decorate components. |
||
An image, typically static |
||
A frame-like object that is clipped by a desktop pane. |
||
An object used to present an icon or short string in an interface |
||
A specialized pane that allows its children to be drawn in layers providing a form of stacking order. |
||
An object that presents a list of objects to the user and allows the user to select one or more of them. |
||
An object that represents an element of a list. |
||
An object usually found inside a menu bar that contains a list of actions the user can choose from. |
||
An object usually drawn at the top of the primary dialog box of an application that contains a list of menus the user can choose from. |
||
An object usually contained in a menu that presents an action the user can choose. |
||
A specialized pane whose primary use is inside a DIALOG |
||
An object that is a child of a page tab list |
||
An object that presents a series of panels (or page tabs), one at a time, through some mechanism provided by the object. |
||
A generic container that is often used to group objects. |
||
A text object uses for passwords, or other places where the text content is not shown visibly to the user. |
||
A temporary window that is usually used to offer the user a list of choices, and then hides when the user selects one of those choices. |
||
An object used to indicate how much of a task has been completed. |
||
A specialized object which the user can interact with to tell the application to do something. |
||
A specialized check box that will cause other radio buttons in the same group to become uncghecked when this one is checked. |
||
A specialized menu item that behaves like a radio button. |
||
A specialized pane that has a glass pane and a layered pane as its children. |
||
The header for a row of data |
||
An object usually used to allow a user to incrementally view a large amount of data. |
||
An object that allows a user to incrementally view a large amount of information. |
||
An object usually contained in a menu to provide a visible and logical separation of the contents in a menu. |
||
An object that allows the user to select from a bounded range. |
||
An object which allows selection from a set of choices and displays the current choice. |
||
A specialized panel that presents two other panels at the same time. |
||
An object the display qualitative status information. c.f. PROGRESS_BAR |
||
An object used to rpesent information in terms of rows and columns. |
||
An object which is a descendant of a table, with a row/column location. A cell may span multiple rows and columns. |
||
An object which serves to describe a column in a table. |
||
An object which serves to label or describe a row in a table. |
||
A menu item which allows the menu to be removed from a menubar and placed in its own window |
||
An object that emulates a teletype or terminal |
||
An object that presents text to the user |
||
A specialized push button that can be checked or unchecked, but does not provide a separate indicator for the current state. |
||
A bar or palette usually composed of push buttons or toggle buttons |
||
An object that provides information about another object |
||
An object used to represent hierarchical information to the user |
||
An object which represents both hierarchical and tabular information |
||
The object contains some SpiAccessible information, but its role is not known. |
||
An object usually used in a scroll pane, which restricts the visual area into which its contents are presented. |
||
A top level window with no title or border. |
||
This object's role is not included in the standard role list and should be queried by name. |
||
An object that serves as a document header. |
||
An object that serves as a document footer. |
||
An object which is contains a paragraph of text content. |
||
An object which describes margins and tab stops, etc. for text objects which it controls (should have CONTROLLER_FOR relation to such). |
||
An object which corresponds to a desktop application,
which may have children of |
||
The object is a dialog or list containing items for insertion into an entry widget, for instance a list of words for completion of a text entry. |
||
The object is an editable text object in a toolbar |
||
The object is an embedded component container. This role is a "grouping" hint that the contained objects share a context which is different from the container in which this accessible is embedded. Uses: document embedding, "panel applets", etc. |
||
The object is a component whose textual content may be entered or modified by the user, provided |
||
The object is a graphical depiction of quantitative data. It may contain multiple subelements whose attributes and/or description may be queried to obtain both the quantitative data and information about how the data is being presented. The LABELLED_BY relation is particularly important in interpreting objects of this type, as is the accessible-description property. |
||
The object contains descriptive information, usually textual, about another user interface element such as a table, chart, or image. |
||
The object is a visual frame or container which contains a view of document content. Document frames may occur within another Document instance, in which case the second document may be said to be embedded in the containing instance. HTML frames are often ROLE_DOCUMENT_FRAME. Either this object, or a singleton descendant, should implement the Document interface. |
||
The object serves as a heading for content which follows it in a document. The 'heading level' of the heading, if availabe, may be obtained by querying the object's attributes. |
||
The object is a containing instance which encapsulates a page of information. |
||
The object is a containing instance of document content which constitutes a particular 'logical' section of the document. The type of content within a section, and the nature of the section division itself, may be obtained by querying the object's attributes. Sections may be nested. |
||
The object is a container for form controls, for instance as part of a web form or user-input form within a document. This role is primarily a tag/convenience for clients when navigating complex documents, it is not expected that ordinary GUI containers will always have ATK_ROLE_FORM. |
||
The object is redundant with another object in the hierarchy, and is exposed for purely technical reasons. Objects of this role should normally be ignored by clients. |
||
The object is a hypertext anchor. |
||
The object is an input method window used to input or compose a text character (typically a "complex text" character). |
||
Used to determine the end of the role enumeration. |