Name
AtkStateSet -- determines an object's state set
Synopsis
AtkStateSet* atk_state_set_new (void);
gboolean atk_state_set_is_empty (AtkStateSet *set);
gboolean atk_state_set_add_state (AtkStateSet *set,
AtkStateType type);
void atk_state_set_add_states (AtkStateSet *set,
AtkStateType *types,
gint n_types);
void atk_state_set_clear_states (AtkStateSet *set);
gboolean atk_state_set_contains_state (AtkStateSet *set,
AtkStateType type);
gboolean atk_state_set_contains_states (AtkStateSet *set,
AtkStateType *types,
gint n_types);
gboolean atk_state_set_remove_state (AtkStateSet *set,
AtkStateType type);
AtkStateSet* atk_state_set_and_sets (AtkStateSet *set,
AtkStateSet *compare_set);
AtkStateSet* atk_state_set_or_sets (AtkStateSet *set,
AtkStateSet *compare_set);
AtkStateSet* atk_state_set_xor_sets (AtkStateSet *set,
AtkStateSet *compare_set);
|
Description
AtkStateSet determines an object's state set. The state set of an object
is a set of AtkState objects and describes the current
overall state of the object, such as whether it is active, has focus, etc.
Details
atk_state_set_new ()
Creates a new empty state set.
atk_state_set_is_empty ()
Checks whether the state set is empty, i.e. has no states set.
atk_state_set_add_state ()
Add a new state for the specified type to the current state set if
it is not already present
atk_state_set_add_states ()
Add the states for the specified types to the current state set
atk_state_set_clear_states ()
Removes all states from the state set.
atk_state_set_contains_state ()
Checks whether the state for the specified type is in the specified set.
atk_state_set_contains_states ()
Checks whether the states for all the specified types are in the
specified set.
atk_state_set_remove_state ()
Removes the state for the specified type from the state set.
atk_state_set_and_sets ()
Constructs the intersection of the two sets, returning NULL if the
intersection is empty.
atk_state_set_or_sets ()
Constructs the union of the two sets.
atk_state_set_xor_sets ()
Constructs the xor of the two sets, returing NULL is empty. The set
returned by this operation contains the4 sattes in exactly one of
the two sets.