atk Constants — the built-in constants of the atk module
Atk Coord Type Constants Atk Layer Constants Atk Relation Type Constants Atk Role Constants Atk State Type Constants Atk Text Attribute Constants Atk Text Boundary Constants Atk Text Clip Type Constants
The Atk Coord Type constants specify how xy coordinates are to
be interpreted. Used by methods such as atk.Component.get_position
()
and atk.Text.get_character_extents
()
| specifies xy coordinates relative to the screen |
| specifies xy coordinates relative to the widget's top-level window |
The Atk Layer constants specify 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.
| The object does not have a layer |
| This layer is reserved for the desktop background |
| This layer is used for Canvas components |
| This layer is normally used for components |
| This layer is used for layered components |
| This layer is used for popup components, such as menus |
| This layer is reserved for future use. |
| This layer is used for toplevel windows. |
The Atk Relation Type constants specify the type of the relation.
| Not used, represents "no relationship" or an error condition. |
| Indicates an object controlled by one or more target objects. |
| Indicates an object is an controller for one or more target objects. |
| Indicates an object is a label for one or more target objects. |
| Indicates an object is labelled by one or more target objects. |
| Indicates an object is a member of a group of one or more target objects. |
| Indicates an object is a cell in a treetable which is displayed because a cell in the same column is expanded and identifies that cell. |
| Indicates that the object has content that flows
logically to another atk.Object
in a sequential way, (for instance text-flow). |
| Indicates that the object has content that flows
logically from another atk.Object
in a sequential way, (for instance text-flow). |
| Indicates a subwindow attached to a component but otherwise has no connection in the UI hierarchy to that component. |
| Indicates that the object visually embeds another object's content, i.e. this object's content flows around another's content. |
| Inverse of atk.RELATION_EMBEDS ,
indicates that this object's content is visualy embedded in
another object. |
| Indicates that an object is a popup for another object. |
| Indicates that an object is a parent window of another object. |
| Not used, this value indicates the end of the enumeration. |
The Atk Role constants describes the role of an object. These
are the built-in enumerated roles that UI components can have in
ATK. Other roles may be added at runtime, so an AtkRole >=
atk.ROLE_LAST_DEFINED
is not necessarily an
error.
| Invalid role |
| A label which represents an accelerator |
| An object which is an alert to the user |
| An object which is an animated image |
| An arrow in one of the four cardinal directions |
| An object that displays a calendar and allows the user to select a date |
| An object that can be drawn into and is used to trap events |
| A choice that can be checked or unchecked and provides a separate indicator for the current state |
| A menu item with 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 |
| An object whose purpose is to allow a user to edit a date |
| An inconifed internal frame within a DESKTOP_PANE |
| A pane that supports internal frames and iconified versions of those internal frames |
| An object whose purpose is to allow a user to set a value |
| 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 lets the user choose a file |
| A object that fills up space in a user interface |
| A specialized dialog that lets the user choose a 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 object whose primary purpose is to display an image |
| 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 |
| An object the user can manipulate to tell the application to do something |
| A specialized check box that will cause other radio buttons in the same group to become unchecked when this one is checked |
| A check menu item which belongs to a group. At each instant exactly one of the radio menu items from a group is selected |
| 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 |
| A specialized panel that presents two other panels at the same time |
| An object used to get an integer or floating point number from the user |
| An object which reports messages of minor importance to the user |
| An object used to represent information in terms of rows and columns |
| A cell in a table |
| The header for a column of a table |
| The header for a row of a table |
| A menu item used to tear off and reattach its menu |
| An object that represents an accessible 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 capable of expanding and collapsing rows as well as showing multiple columns of data |
| The object contains some Accessible information, but its role is not known |
| An object usually used in a scroll pane |
| A top level window with no title or border. |
| 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). |
| The object is an application object, which may contain atk.ROLE_FRAME objects or other types of accessibles. |
| 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 container within a document or panel. This role is a grouping "hint" indicating that the contained objects share a context. |
| The object is a component whose textual content may be entered or modified by the user, provided atk.STATE_EDITABLE is present. |
| 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. atk.ROLE_PAGE is used in documents and content which support a paginated navigation model. |
| 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 redundant with another object in the hierarchy, and is exposed for purely technical reasons. Objects of this role should normally be ignored by clients. |
| not a valid role, used for finding end of the enumeration |
The Atk State Type constants specify a particular state of a
component. The actual state of an component is described by its atk.StateSet
,
which is a set of states.
| Indicates an invalid state |
| Indicates a window is currently the active window |
| Indicates that the object is armed. |
| Indicates the current object is busy. This state may be used by implementors of Document to indicate that content loading is in process. |
| Indicates this object is currently checked |
| Indicates the user interface object corresponding to this object no longer exists |
| Indicates the user can change the contents of this object |
| Indicates that this object is enabled. An inconsistent
gtk.ToggleButton
is an example of an object which is sensitive but not
enabled. |
| Indicates this object allows progressive disclosure of its children |
| Indicates this object its expanded |
| Indicates this object can accept keyboard focus, which means all events resulting from typing on the keyboard will normally be passed to it when it has focus |
| Indicates this object currently has the keyboard focus |
| Indicates the orientation of this object is horizontal |
| Indicates this object is minimized and is represented only by an icon |
| Indicates something must be done with this object before the user can interact with an object in a different window |
| Indicates this (text) object can contain multiple lines of text |
| Indicates this object allows more than one of its children to be selected at the same time |
| Indicates this object paints every pixel within its rectangular region. |
| Indicates this object is currently pressed |
| Indicates the size of this object is not fixed |
| Indicates this object is the child of an object that allows its children to be selected and that this child is one of those children that can be selected |
| Indicates this object is the child of an object that allows its children to be selected and that this child is one of those children that has been selected |
| Indicates this object is sensitive |
| Indicates this object, the object's parent, the object's parent's parent, and so on, are all visible |
| Indicates this (text) object can contain only a single line of text |
| Indicates that the index associated with this object has changed since the user accessed the object. |
| Indicates this object is transient |
| Indicates the orientation of this object is vertical |
| Indicates this object is visible |
| Indicates that "active-descendant-changed" event is sent when children become 'active' (i.e. are selected or navigated to onscreen). Used to prevent need to enumerate all children in very large containers, like tables. |
| Indicates that a check box is in a state other than checked or not checked. |
| Indicates that an object is truncated, e.g. a text value in a speradsheet cell. |
| Indicates that explicit user interaction with an object is required by the user interface, e.g. a required field in a "web-form" interface. |
| Indicates that the object has encountered an error condition due to failure of input validation. For instance, a form control may acquire this state in response to invalid or malformed user input. |
| Indicates that the object may exhibit "typeahead"
behavior in response to user keystrokes, e.g. one keystroke may
result in the insertion of several characters into an entry, or
result in the auto-selection of an item in a list. This state
supplants atk.ROLE_AUTOCOMPLETE . |
| Indicates that the object in question supports text
selection. It should only be exposed on objects which implement
the Text interface, in order to distinguish this state from
atk.STATE_SELECTABLE , which infers that the
object in question is a selectable child of an object which
implements Selection. While similar, text selection and
subelement selection are distinct operations. |
| Not a valid state, used for finding end of enumeration |
The Atk Text Attribute constants specify the built-in text
attributes supported. Other text attributes may be set by an
application using the atk.text_attribute_register
()
function.
| nvalid attribute |
| The pixel width of the left margin |
| The pixel width of the right margin |
| The number of pixels that the text is indented |
| Either "true" or "false" indicating whether text is visible or not |
| Pixels of blank space to leave above each newline-terminated line. |
| Pixels of blank space to leave below each newline-terminated line. |
| Pixels of blank space to leave between wrapped lines inside the same newline-terminated line (paragraph). |
| "true" or "false" whether to make the background color for each character the height of the highest font used on the current line, or the height of the font used for the current character. |
| Number of pixels that the characters are risen above the baseline |
| "none", "single", "double" or "low" |
| "true" or "false" whether the text is strikethrough |
| The size of the characters. |
| The scale of the characters. The value is a string representation of a double |
| The weight of the characters. |
| The language used |
| The font family name |
| The background color. The value is an RGB value of the format "u,u,u" |
| The foreground color. The value is an RGB value of the format "u,u,u" |
| "true" if a gtk.gdk.Pixmap
is set for stippling the background color. |
| "true" if a gtk.gdk.Pixmap
is set for stippling the foreground color. |
| The wrap mode of the text, if any. Values are "none", "char" or "word" |
| The direction of the text, if set. Values are "none", "ltr" or "rtl" |
| The justification of the text, if set. Values are "left", "right", "center" or "fill" |
| The stretch of the text, if set. Values are "ultra_condensed", "extra_condensed", "condensed", "semi_condensed", "normal", "semi_expanded", "expanded", "extra_expanded" or "ultra_expanded" |
| The capitalization variant of the text, if set. Values are "normal" or "small_caps" |
| The slant style of the text, if set. Values are "normal", "oblique" or "italic" |
| not a valid text attribute, used for finding end of enumeration |
The Atk Text Boundary constants specify oundaries for regions of text.
| Boundary is the boundary between characters (including non-printing characters) |
| Boundary is the start (i.e. first character) of a word. |
| Boundary is the end (i.e. last character) of a word. |
| Boundary is the first character in a sentence. |
| Boundary is the last (terminal) character in a sentence; in languages which use "sentence stop" punctuation such as English, the boundary is thus the '.', '?', or similar terminal punctuation character. |
| Boundary is the initial character of the content or a character immediately following a newline, linefeed, or return character. |
| Boundary is the linefeed, or return character. |
The Atk Text Clip Type constants specify the type of clipping required.
| No clipping to be done |
| Text clipped by min coordinate is omitted |
| Text clipped by max coordinate is omitted |
| Only text fully within mix/max bound is retained |