atk.RelationSet.RelationSet Class Reference

Inheritance diagram for atk.RelationSet.RelationSet:

gobject.ObjectG.ObjectG List of all members.

Public Member Functions

AtkRelationSetgetRelationSetStruct ()
 this (AtkRelationSet *atkRelationSet)
 Sets our main struct and passes it to the parent class.
int atkRelationSetContains (AtkRelationType relationship)
 Determines whether the relation set contains a relation that matches the specified type.
void atkRelationSetRemove (AtkRelation *relation)
 Removes a relation from the relation set.
void atkRelationSetAdd (AtkRelation *relation)
 Add a new relation to the current relation set if it is not already present.
int atkRelationSetGetNRelations ()
 Determines the number of relations in a relation set.
AtkRelationatkRelationSetGetRelation (int i)
 Determines the relation at the specified position in the relation set.
AtkRelationatkRelationSetGetRelationByType (AtkRelationType relationship)
 Finds a relation that matches the specified type.
void atkRelationSetAddRelationByType (AtkRelationType relationship, AtkObject *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.

Static Public Member Functions

static AtkRelationSetatkRelationSetNew ()
 Creates a new empty relation set.

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

AtkRelationSetatkRelationSet
 the main Gtk struct

Constructor & Destructor Documentation

atk.RelationSet.RelationSet.this ( AtkRelationSet atkRelationSet  ) 

Sets our main struct and passes it to the parent class.


Member Function Documentation

void atk.RelationSet.RelationSet.atkRelationSetAdd ( AtkRelation 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 AtkRelationSet relation: an AtkRelation

void atk.RelationSet.RelationSet.atkRelationSetAddRelationByType ( AtkRelationType  relationship,
AtkObject 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.

If it is does contain a relation of that typea the target is added to the relation. set: an AtkRelationSet relationship: an AtkRelationType target: an AtkObject Since ATK 1.9

int atk.RelationSet.RelationSet.atkRelationSetContains ( AtkRelationType  relationship  ) 

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

set: an AtkRelationSet relationship: an AtkRelationType Returns: TRUE if relationship is the relationship type of a relation in set, FALSE otherwise

int atk.RelationSet.RelationSet.atkRelationSetGetNRelations (  ) 

Determines the number of relations in a relation set.

set: an AtkRelationSet Returns: an integer representing the number of relations in the set.

AtkRelation* atk.RelationSet.RelationSet.atkRelationSetGetRelation ( int  i  ) 

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

set: an AtkRelationSet i: a gint representing a position in the set, starting from 0. Returns: a AtkRelation, which is the relation at position i in the set.

AtkRelation* atk.RelationSet.RelationSet.atkRelationSetGetRelationByType ( AtkRelationType  relationship  ) 

Finds a relation that matches the specified type.

set: an AtkRelationSet relationship: an AtkRelationType Returns: an AtkRelation, which is a relation matching the specified type.

static AtkRelationSet* atk.RelationSet.RelationSet.atkRelationSetNew (  )  [static]

Creates a new empty relation set.

Returns: a new AtkRelationSet

void atk.RelationSet.RelationSet.atkRelationSetRemove ( AtkRelation relation  ) 

Removes a relation from the relation set.

This function unref's the AtkRelation so it will be deleted unless there is another reference to it. set: an AtkRelationSet relation: an AtkRelation

AtkRelationSet* atk.RelationSet.RelationSet.getRelationSetStruct (  ) 

void* atk.RelationSet.RelationSet.getStruct (  )  [protected]

the main Gtk struct as a void*

Reimplemented from gobject.ObjectG.ObjectG.


Member Data Documentation

AtkRelationSet* atk.RelationSet.RelationSet.atkRelationSet [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo