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
GType _gType() @property
Relation self()Returns `this`, for use in `with` statements.
RelationGidBuilder builder()Get builder for [atk.relation.Relation] Returns: New builder object
void relationType(atk.types.RelationType propval) @property
void target(gobject.value_array.ValueArray propval) @property
void 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 relation
atk.object.ObjectWrap[] getTarget()Gets the target list of relation Returns: the target list of relation
bool removeTarget(atk.object.ObjectWrap target)Remove the specified AtkObject from the target for the relation.
Constructors
this(void * ptr, Flag!"Take" take)
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 for [atk.relation.Relation]

Methods