atk.StateSetan atk.StateSet
determines a component's state set.Synopsisatk.StateSetgobject.GObjectatk.StateSetis_emptyadd_statetypeadd_statestypesclear_statescontains_statetypecontains_statestypesremove_statetypeand_setscompare_setor_setscompare_setxor_setscompare_setFunctionsatk.state_type_registernameatk.state_type_get_nametypeatk.state_type_for_namenameAncestry+-- gobject.GObject
+-- atk.StateSet
atk.StateSet Signal Prototypesgobject.GObject Signal PrototypesDescriptionAn atk.StateSet
determines a component's state set. It is composed of a set of ATK
states specified using the .Constructoratk.StateSetatk.StateSetReturns :a new atk.StateSetCreates a new empty state set.Methodsatk.StateSet.is_emptyis_emptyReturns :True if the set has no
states set, otherwise
FalseChecks whether the state set is empty, i.e. has no states
set.atk.StateSet.add_stateadd_statetypetype :one of the Returns :True if the state for
type is not already in the
set.Add a new state for the specified type to the current state set
if it is not already present.atk.StateSet.add_statesadd_statestypestypes :a sequence of .Add the states for the specified types to the current state
set.atk.StateSet.clear_statesclear_statesRemoves all states from the state set.atk.StateSet.contains_statecontains_statetypetype :one of the .Returns :True if
type is the state type is in the
set.Checks whether the state for the specified type is in the
specified set.atk.StateSet.contains_statescontains_statestypestypes :a sequence of Returns :True if all the states in
types are in the set.Checks whether the states for all the specified types are in the
specified set.atk.StateSet.remove_stateremove_statetypetype :one of the Returns :True if
type was in the set.Removes the state for the specified type from the state
set.atk.StateSet.and_setsand_setscompare_setcompare_set :another atk.StateSetReturns :a new atk.StateSet
which is the intersection of the two sets.Constructs the intersection of the two sets, returning
None if the intersection is empty.atk.StateSet.or_setsor_setscompare_setcompare_set :another atk.StateSetReturns :a new atk.StateSet
which is the union of the two sets, returning
None is empty.Constructs the union of the two sets.atk.StateSet.xor_setsxor_setscompare_setcompare_set :another atk.StateSetReturns :a new atk.StateSet
which contains the states which are in exactly one of the two
sets.Constructs the exclusive-or of the two sets, returning
None is empty. The set returned by this operation
contains the states in exactly one of the two sets.Functionsatk.state_type_registeratk.state_type_registernamename :a character string describing the new
state.Returns :a new state type value for the new
state.Registers a new object state and adds it to the .atk.state_type_get_nameatk.state_type_get_nametypetype :one of the .Returns :the string describing the state
typeGets the description string describing the state type specified
bytype.atk.state_type_for_nameatk.state_type_for_namenamename :a character string state
nameReturns :one of the .Gets the state type corresponding to the description string
name.