Next: AtkState, Previous: AtkSelection, Up: Top
An AtkStateSet determines a component's state set.
An AtkStateSet determines a component's state set. It is composed of a set of AtkStates.
<atk-state-set>)Creates a new empty state set.
- ret
- a new
<atk-state-set>
<atk-state-set>) (ret bool)Checks whether the state set is empty, i.e. has no states set.
- set
- an
<atk-state-type>- ret
- ‘
#t’ if set has no states set, otherwise ‘#f’
<atk-state-set>) (type <atk-state-type>) (ret bool)Add a new state for the specified type to the current state set if it is not already present.
- set
- an
<atk-state-set>- type
- an
<atk-state-type>- ret
- ‘
#t’ if the state for type is not already in set.
<atk-state-set>)Removes all states from the state set.
- set
- an
<atk-state-set>
<atk-state-set>) (type <atk-state-type>) (ret bool)Checks whether the state for the specified type is in the specified set.
- set
- an
<atk-state-set>- type
- an
<atk-state-type>- ret
- ‘
#t’ if type is the state type is in set.
<atk-state-set>) (type <atk-state-type>) (ret bool)Removes the state for the specified type from the state set.
- set
- an
<atk-state-set>- type
- an
<atk-type>- ret
- ‘
#t’ if type was the state type is in set.
<atk-state-set>) (compare_set <atk-state-set>) (ret <atk-state-set>)Constructs the intersection of the two sets, returning ‘
#f’ if the intersection is empty.
- set
- an
<atk-state-set>- compare-set
- another
<atk-state-set>- ret
- a new
<atk-state-set>which is the intersection of the two sets.
<atk-state-set>) (compare_set <atk-state-set>) (ret <atk-state-set>)Constructs the union of the two sets.
- set
- an
<atk-state-set>- compare-set
- another
<atk-state-set>- ret
- a new
<atk-state-set>which is the union of the two sets, returning ‘#f’ is empty.
<atk-state-set>) (compare_set <atk-state-set>) (ret <atk-state-set>)Constructs the exclusive-or of the two sets, returning ‘
#f’ is empty. The set returned by this operation contains the states in exactly one of the two sets.
- set
- an
<atk-state-set>- compare-set
- another
<atk-state-set>- ret
- a new
<atk-state-set>which contains the states which are in exactly one of the two sets.