W Wrapl, The Programming Language

Libraries:Gtk:Atk:RelationSet

Types

T

Inherits from:

The AtkRelationSet held by an object establishes its relationships with objects beyond the normal "parent/child" hierarchical relationships that all user interface objects have. AtkRelationSets establish whether objects are labelled or controlled by other components, share group membership with other components (for instance within a radio-button group), or share content which "flows" between them, among other types of possible relationships.



Constants

Nil : T

Functions

GetType() : Gtk.GObject.Type.T



New() : Gtk.Atk.RelationSet.T

Creates a new empty relation set.

Returns a new T


Methods

:Add(self @ T, relation @ Gtk.Atk.Relation.T) : Std.Object.T

Add a new relation to the current relation set if it is not already present. This function ref's the AtkRelation so the caller of this function should unref it to ensure that it will be destroyed when the AtkRelationSet is destroyed.

set an T
relation an Gtk.Atk.Relation.T


:AddRelationByType(self @ T, relationship @ Gtk.Atk.RelationType.T, target @ Gtk.Atk.Object.T) : Std.Object.T

Add a new relation of the specified type with the specified target to the current relation set if the relation set does not contain a relation of that type. If it is does contain a relation of that typea the target is added to the relation.

set an T
relationship an Gtk.Atk.RelationType.T
target an Gtk.Atk.Object.T


:Contains(self @ T, relationship @ Gtk.Atk.RelationType.T) : Std.Symbol.T

Determines whether the relation set contains a relation that matches the specified type.

set an T
relationship an Gtk.Atk.RelationType.T
Returns TRUE if relationship is the relationship type of a relation in set, FALSE otherwise


:GetNRelations(self @ T) : Std.Integer.SmallT

Determines the number of relations in a relation set.

set an T
Returns an integer representing the number of relations in the set.


:GetRelation(self @ T, i @ Std.Integer.SmallT) : Gtk.Atk.Relation.T

Determines the relation at the specified position in the relation set.

set an T
i a gint representing a position in the set, starting from 0.
Returns a Gtk.Atk.Relation.T, which is the relation at position i in the set. [transfer none]


:GetRelationByType(self @ T, relationship @ Gtk.Atk.RelationType.T) : Gtk.Atk.Relation.T

Finds a relation that matches the specified type.

set an T
relationship an Gtk.Atk.RelationType.T
Returns an Gtk.Atk.Relation.T, which is a relation matching the specified type. [transfer none]


:Relations(self @ T) : Gtk.Glib.GPtrArray.T

:Remove(self @ T, relation @ Gtk.Atk.Relation.T) : Std.Object.T

Removes a relation from the relation set. This function unref's the Gtk.Atk.Relation.T so it will be deleted unless there is another reference to it.

set an T
relation an Gtk.Atk.Relation.T


:setRelations(self @ T, value @ Gtk.Glib.GPtrArray.T) : Gtk.Glib.GPtrArray.T