Class: Atk::StateSet
- Inherits:
-
Object
- Object
- Atk::StateSet
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#add_state(type) ⇒ TrueClass
Adds the state of the specified type to the state set if it is not already present.
-
#add_states(types, n_types) ⇒ nil
Adds the states of the specified types to the state set.
-
#and_sets(compare_set) ⇒ Atk::StateSet
Constructs the intersection of the two sets, returning nil if the intersection is empty.
-
#clear_states ⇒ nil
Removes all states from the state set.
-
#contains_state(type) ⇒ TrueClass
Checks whether the state for the specified type is in the specified set.
-
#contains_states(types, n_types) ⇒ TrueClass
Checks whether the states for all the specified types are in the specified set.
-
#is_empty ⇒ TrueClass
Checks whether the state set is empty, i.e.
-
#new ⇒ Atk::StateSet
Creates a new empty state set.
-
#or_sets(compare_set) ⇒ Atk::StateSet
Constructs the union of the two sets.
-
#remove_state(type) ⇒ TrueClass
Removes the state for the specified type from the state set.
-
#xor_sets(compare_set) ⇒ Atk::StateSet
Constructs the exclusive-or of the two sets, returning nil is empty.
Instance Method Details
#add_state(type) ⇒ TrueClass
Adds the state of the specified type to the state set if it is not already present.
Note that because an Atk::StateSet is 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, n_types) ⇒ nil
Adds the states of the specified types to the state set.
Note that because an Atk::StateSet is 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) ⇒ Atk::StateSet
Constructs the intersection of the two sets, returning nil if the intersection is empty. the two sets.
#clear_states ⇒ nil
Removes all states from the state set.
#contains_state(type) ⇒ TrueClass
Checks whether the state for the specified type is in the specified set.
#contains_states(types, n_types) ⇒ TrueClass
Checks whether the states for all the specified types are in the specified set.
#is_empty ⇒ TrueClass
Checks whether the state set is empty, i.e. has no states set.
#new ⇒ Atk::StateSet
Creates a new empty state set.
#or_sets(compare_set) ⇒ Atk::StateSet
Constructs the union of the two sets. the union of the two sets, returning nil is empty.
#remove_state(type) ⇒ TrueClass
Removes the state for the specified type from the state set.
Note that because an Atk::StateSet is 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) ⇒ Atk::StateSet
Constructs the exclusive-or of the two sets, returning nil is empty. The set returned by this operation contains the states in exactly one of the two sets. which are in exactly one of the two sets.