Atspi.MatchRule¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
attributematchtype |
r |
||
attributes |
r |
||
interfacematchtype |
r |
||
interfaces |
[ |
r |
|
invert |
r |
||
parent |
r |
||
rolematchtype |
r |
||
roles |
[ |
r |
|
statematchtype |
r |
||
states |
r |
Class Details¶
- class Atspi.MatchRule(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An interface that allows the definition of match rules for accessible objects.
- classmethod new(states, statematchtype, attributes, attributematchtype, roles, rolematchtype, interfaces, interfacematchtype, invert)¶
- Parameters:
states (
Atspi.StateSet
orNone
) – AnAtspi.StateSet
specifying the states to match orNone
if none.statematchtype (
Atspi.CollectionMatchType
) – AnAtspi.CollectionMatchType
specifying how to interpret states.attributes ({
str
:str
} orNone
) – AGLib.HashTable
specifying attributes to match. To specify multiple attribute values, separate each value with a :: If an attribute value contains a :, then it can be escaped by preceding it with a \. A backslash can likewise be escaped by inserting a double backslash.attributematchtype (
Atspi.CollectionMatchType
) – AnAtspi.CollectionMatchType
specifying how to interpret attributes.roles ([
Atspi.Role
] orNone
) – AGLib.Array
of roles to match, orNone
if not applicable.rolematchtype (
Atspi.CollectionMatchType
) – AnAtspi.CollectionMatchType
specifying how to interpret roles.interfaces ([
str
] orNone
) – An array of interfaces to match, orNone
if not applicable. Interface names should be specified by the final component of their DBus names (Accessible, Component, etc). For Action, it is possible to specify an action name by enclosing it in parenthesis after the interface name, in which case only accessibles that implement that particular action will be returned. For instance, Action(click) will return accessibles that provide an action called “click”.interfacematchtype (
Atspi.CollectionMatchType
) – AnAtspi.CollectionMatchType
specifying how to interpret interfaces.invert (
bool
) – ifTrue
, the match rule should be denied (inverted); ifFalse
, it should not. For example, if the match rule defines that a match is an object of ROLE_HEADING which has STATE_FOCUSABLE and a click action, inverting it would match all objects that are not of ROLE_HEADING, focusable and clickable at the same time.
- Returns:
A new
Atspi.MatchRule
.- Return type:
Creates a new
Atspi.MatchRule
with specified states, attributes, interfaces, and roles.