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.
<atk-relation-set>
)Creates a new empty relation set.
- ret
- a new
<atk-relation-set>
<atk-relation-set>
) (relationship <atk-relation-type>
) ⇒ (ret bool
)Determines whether the relation set contains a relation that matches the specified type.
- set
- an
<atk-relation-set>
- relationship
- an
<atk-relation-type>
- ret
- ‘
#t
’ if relationship is the relationship type of a relation in set, ‘#f
’ otherwise
<atk-relation-set>
) (relation <atk-relation>
)Removes a relation from the relation set. This function unref's the
<atk-relation>
so it will be deleted unless there is another reference to it.
- set
- an
<atk-relation-set>
- relation
- an
<atk-relation>
<atk-relation-set>
) (relation <atk-relation>
)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
<atk-relation-set>
- relation
- an
<atk-relation>
<atk-relation-set>
) ⇒ (ret int
)Determines the number of relations in a relation set.
- set
- an
<atk-relation-set>
- ret
- an integer representing the number of relations in the set.
<atk-relation-set>
) (i int
) ⇒ (ret <atk-relation>
)Determines the relation at the specified position in the relation set.
- set
- an
<atk-relation-set>
- i
- a gint representing a position in the set, starting from 0.
- ret
- a
<atk-relation>
, which is the relation at position i in the set.