RelationSet
Object Hierarchy:
Description:
[
CCode ( type_id =
"atk_relation_set_get_type ()" ) ]
public class RelationSet :
Object
A set of AtkRelations, normally the set of AtkRelations which an AtkObject has.
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.
Content:
Creation methods:
Methods:
- public void add (Relation relation)
Add a new relation to the current relation set if it is not already
present.
- public void add_relation_by_type (RelationType relationship, Object target)
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.
- public bool contains (RelationType relationship)
Determines whether the relation set contains a relation that matches
the specified type.
- public bool contains_target (RelationType relationship, Object target)
Determines whether the relation set contains a relation that matches
the specified pair formed by type relationship and object target.
- public int get_n_relations ()
Determines the number of relations in a relation set.
- public unowned Relation get_relation (int i)
Determines the relation at the specified position in the relation set.
- public unowned Relation get_relation_by_type (RelationType relationship)
Finds a relation that matches the specified type.
- public void remove (Relation relation)
Removes a relation from the relation set.
Fields:
Inherited Members:
All known members inherited from class GLib.Object