StateSet
Object Hierarchy:
Description:
[ CCode ( type_id = "atk_state_set_get_type ()" ) ]
public class StateSet : 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.e. has no states set.
- 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
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref