Atspi.StateSet¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
accessible |
r |
||
parent |
r |
||
states |
r |
Class Details¶
- class Atspi.StateSet(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The atspi-stateset objects implement wrappers around a bitmap of accessible states.
- classmethod new(states)¶
- Parameters:
states ([
Atspi.StateType]) – An array of states with which the method initializes the state set.- Returns:
A new
Atspi.StateSetwith the given states.- Return type:
Generates an
Atspi.StateSetwith the given states.
- add(state)¶
- Parameters:
state (
Atspi.StateType) – anAtspi.StateTypeto be added to the specifiedAtspi.StateSet.
Adds a particular #AtspiState to an
Atspi.StateSet(i.e. sets the given state toTruein the stateset).
- compare(set2)¶
- Parameters:
set2 (
Atspi.StateSet) – a pointer to the secondAtspi.StateSetobject on which to operate.- Returns:
an
Atspi.StateSetobject containing all states contained on one of the two sets but not the other.- Return type:
Determines the differences between two instances of
Atspi.StateSet.
- contains(state)¶
- Parameters:
state (
Atspi.StateType) – anAtspi.StateTypefor which the specifiedAtspi.StateSetwill be queried.- Returns:
Trueif state is true/included in the givenAtspi.StateSet, otherwiseFalse.- Return type:
Determines whether a given
Atspi.StateSetincludes a given state; that is, whether state is true for the self in question.
- equals(set2)¶
- Parameters:
set2 (
Atspi.StateSet) – a pointer to the secondAtspi.StateSetobject on which to operate.- Returns:
Trueif the twoAtspi.StateSetsare equivalent, otherwiseFalse.- Return type:
Determines whether two instances of
Atspi.StateSetare equivalent (i.e. consist of the same #AtspiStates). Useful for checking multiple state variables at once.
- get_states()¶
- Returns:
A
GLib.Arrayof state types representing the current state.- Return type:
Returns the states in an
Atspi.StateSetas an array.
- remove(state)¶
- Parameters:
state (
Atspi.StateType) – anAtspi.StateTypeto remove from the specified self.
Removes a particular #AtspiState to an
Atspi.StateSet(i.e. sets the given state toFalsein the stateset.)
- set_by_name(name, enabled)¶
- Parameters:
Enables/disables a state in an
Atspi.StateSetaccording to its name.