atk.Relationan object used to describe a relation between a object and
one or more other objects. Synopsisatk.Relationgobject.GObjectatk.Relationtargetsrelationshipget_relation_typeget_targetFunctionsatk.relation_type_registernameatk.relation_type_get_namerelationshipatk.relation_type_for_namenameAncestry+-- gobject.GObject
+-- atk.Relation
atk.Relation Properties
"relation-type"Read-WriteThe type of the relation - one of the . Default
value: atk.RELATION_NULL."target"Read-WriteAn array of the targets for the relation. Default value:
None.
atk.Relation Signal Prototypesgobject.GObject Signal PrototypesDescriptionAn atk.Relation
describes a relation between an object and one or more other
objects. The actual relations that an object has with other objects are
defined as an atk.RelationSet,
which contains a set of atk.Relation
objects.
Constructoratk.Relationatk.Relationtargetsrelationshiptargets :a sequence of atk.Object
objectsrelationship :one of the with which to
create the new atk.RelationReturns :a new atk.RelationCreate a new relation for the specified
relationship type and the specified sequence of
targets.Methodsatk.Relation.get_relation_typeget_relation_typeReturns :the relation type - one of the .Gets the relationship type.atk.Relation.get_targetget_targetReturns :the target list of relationGets the target list of atk.Object
objects.Functionsatk.relation_type_registeratk.relation_type_registernamename :a name stringReturns :a new one of the that is
associated with nameAssociate name with a new one of the .atk.relation_type_get_nameatk.relation_type_get_nametypetype :one of the .Returns :the string associated with
relationship.Gets the description string describing the relation type
specified by type.atk.relation_type_for_nameatk.relation_type_for_namenamename :a string which is the (non-localized) name of
an ATK relation type.Returns :the matching type of the corresponding
to the specified name, or
atk.RELATION_NULL if no matching relation type
is found.Get the relation type corresponding to the specified
name.