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.StateSet
with the given states.- Return type:
Generates an
Atspi.StateSet
with the given states.
- add(state)¶
- Parameters:
state (
Atspi.StateType
) – anAtspi.StateType
to be added to the specifiedAtspi.StateSet
.
Adds a particular #AtspiState to an
Atspi.StateSet
(i.e. sets the given state toTrue
in the stateset).
- compare(set2)¶
- Parameters:
set2 (
Atspi.StateSet
) – a pointer to the secondAtspi.StateSet
object on which to operate.- Returns:
an
Atspi.StateSet
object 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.StateType
for which the specifiedAtspi.StateSet
will be queried.- Returns:
True
if state is true/included in the givenAtspi.StateSet
, otherwiseFalse
.- Return type:
Determines whether a given
Atspi.StateSet
includes 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.StateSet
object on which to operate.- Returns:
True
if the twoAtspi.StateSets
are equivalent, otherwiseFalse
.- Return type:
Determines whether two instances of
Atspi.StateSet
are equivalent (i.e. consist of the same #AtspiStates). Useful for checking multiple state variables at once.
- get_states()¶
- Returns:
A
GLib.Array
of state types representing the current state.- Return type:
Returns the states in an
Atspi.StateSet
as an array.
- remove(state)¶
- Parameters:
state (
Atspi.StateType
) – anAtspi.StateType
to remove from the specified self.
Removes a particular #AtspiState to an
Atspi.StateSet
(i.e. sets the given state toFalse
in the stateset.)
- set_by_name(name, enabled)¶
- Parameters:
Enables/disables a state in an
Atspi.StateSet
according to its name.