StateSet
Object Hierarchy:
Description:
[
CCode ( type_id =
"atk_state_set_get_type ()" ) ]
public class StateSet :
Object
An AtkStateSet contains the states of an object.
An AtkStateSet is a read-only representation of the full set of States that apply to an
object at a given time. This set is not meant to be modified, but rather created when
ref_state_set() is called.
Content:
Creation methods:
Methods:
- public bool add_state (StateType type)
Adds the state of the specified type to the state set if it is not
already present.
- public void add_states (StateType[] types)
Adds the states of the specified types to the state set.
- public StateSet and_sets (StateSet compare_set)
Constructs the intersection of the two sets, returning
null if the intersection is empty.
- public void clear_states ()
Removes all states from the state set.
- public bool contains_state (StateType type)
Checks whether the state for the specified type is in the specified
set.
- public bool contains_states (StateType[] types)
Checks whether the states for all the specified types are in the
specified set.
- public bool is_empty ()
Checks whether the state set is empty, i.
- public StateSet? or_sets (StateSet compare_set)
Constructs the union of the two sets.
- public bool remove_state (StateType type)
Removes the state for the specified type from the state set.
- public StateSet xor_sets (StateSet compare_set)
Constructs the exclusive-or of the two sets, returning
null is empty.
Inherited Members:
All known members inherited from class GLib.Object