atk.relation
Module for [Relation] class
Types 3
An object used to describe a relation between a object and one or more other objects.
An AtkRelation 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 AtkRelationSet, which is a set of AtkRelations.
Methods
RelationGidBuilder builder()Get builder for [atk.relation.Relation] Returns: New builder objectatk.types.RelationType relationType() @propertyvoid relationType(atk.types.RelationType propval) @propertygobject.value_array.ValueArray target() @propertyvoid target(gobject.value_array.ValueArray propval) @propertyvoid addTarget(atk.object.ObjectWrap target)Adds the specified AtkObject to the target for the relation, if it is not already present. See also [atk.object.ObjectWrap.addRelationship].atk.types.RelationType getRelationType()Gets the type of relation Returns: the type of relationatk.object.ObjectWrap[] getTarget()Gets the target list of relation Returns: the target list of relationbool removeTarget(atk.object.ObjectWrap target)Remove the specified AtkObject from the target for the relation.Constructors
this(atk.object.ObjectWrap[] targets, atk.types.RelationType relationship)Create a new relation for the specified key and the specified list of targets. See also [atk.object.ObjectWrap.addRelationship].Methods
T relationType(atk.types.RelationType propval)T target(gobject.value_array.ValueArray propval)