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() static nothrowGet builder for [atk.relation.Relation] Returns: New builder objectvoid addTarget(atk.object.ObjectWrap target) nothrowAdds 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() nothrowGets the type of relation Returns: the type of relationatk.object.ObjectWrap[] getTarget() nothrowGets the target list of relation Returns: the target list of relationbool removeTarget(atk.object.ObjectWrap target) nothrowRemove 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].Fluent builder implementation template for atk.relation.Relation
Methods
T relationType(atk.types.RelationType propval) nothrowT target(gobject.value_array.ValueArray propval) nothrowFluent builder for atk.relation.Relation