Atk.StateSet¶
- Subclasses:
- None 
Methods¶
- Inherited:
- Structs:
| class | 
 | 
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | 
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
| Name | Type | Access | Description | 
|---|---|---|---|
| parent | r | 
Class Details¶
- class Atk.StateSet(**kwargs)¶
- Bases:
- Abstract:
- No 
- Structure:
 - An - Atk.StateSetcontains the states of an object.- An - Atk.StateSetis a read-only representation of the full set of #AtkStates that apply to an object at a given time. This set is not meant to be modified, but rather created when- Atk.Object.ref_state_set() is called.- classmethod new()[source]¶
- Returns:
- a new - Atk.StateSet
- Return type:
 - Creates a new empty state set. 
 - add_state(type)[source]¶
- Parameters:
- type ( - Atk.StateType) – an- Atk.StateType
- Returns:
- Trueif the state for type is not already in self.
- Return type:
 - Adds the state of the specified type to the state set if it is not already present. - Note that because an - Atk.StateSetis a read-only object, this method should be used to add a state to a newly-created set which will then be returned by- Atk.Object.ref_state_set. It should not be used to modify the existing state of an object. See also- Atk.Object.notify_state_change.
 - add_states(types)[source]¶
- Parameters:
- types ([ - Atk.StateType]) – an array of- Atk.StateType
 - Adds the states of the specified types to the state set. - Note that because an - Atk.StateSetis a read-only object, this method should be used to add states to a newly-created set which will then be returned by- Atk.Object.ref_state_set. It should not be used to modify the existing state of an object. See also- Atk.Object.notify_state_change.
 - and_sets(compare_set)[source]¶
- Parameters:
- compare_set ( - Atk.StateSet) – another- Atk.StateSet
- Returns:
- a new - Atk.StateSetwhich is the intersection of the two sets.
- Return type:
 - Constructs the intersection of the two sets, returning - Noneif the intersection is empty.
 - contains_state(type)[source]¶
- Parameters:
- type ( - Atk.StateType) – an- Atk.StateType
- Returns:
- Trueif type is the state type is in self.
- Return type:
 - Checks whether the state for the specified type is in the specified set. 
 - contains_states(types)[source]¶
- Parameters:
- types ([ - Atk.StateType]) – an array of- Atk.StateType
- Returns:
- Trueif all the states for type are in self.
- Return type:
 - Checks whether the states for all the specified types are in the specified set. 
 - or_sets(compare_set)[source]¶
- Parameters:
- compare_set ( - Atk.StateSet) – another- Atk.StateSet
- Returns:
- a new - Atk.StateSetwhich is the union of the two sets, returning- Noneis empty.
- Return type:
- Atk.StateSetor- None
 - Constructs the union of the two sets. 
 - remove_state(type)[source]¶
- Parameters:
- type ( - Atk.StateType) – an #AtkType
- Returns:
- Trueif type was the state type is in self.
- Return type:
 - Removes the state for the specified type from the state set. - Note that because an - Atk.StateSetis a read-only object, this method should be used to remove a state to a newly-created set which will then be returned by- Atk.Object.ref_state_set. It should not be used to modify the existing state of an object. See also- Atk.Object.notify_state_change.
 - xor_sets(compare_set)[source]¶
- Parameters:
- compare_set ( - Atk.StateSet) – another- Atk.StateSet
- Returns:
- a new - Atk.StateSetwhich contains the states which are in exactly one of the two sets.
- Return type:
 - Constructs the exclusive-or of the two sets, returning - Noneis empty. The set returned by this operation contains the states in exactly one of the two sets.