diff options
author | Padraig O'Briain <padraigo@src.gnome.org> | 2001-05-02 13:29:17 +0000 |
---|---|---|
committer | Padraig O'Briain <padraigo@src.gnome.org> | 2001-05-02 13:29:17 +0000 |
commit | dab5633a6f0b456f34237909db32dc89299787a9 (patch) | |
tree | 62af6777af99dc9656d88581197e2b8ab324049a | |
parent | 2f49d57220ced01105c8d5bf4c9022a5cff7283a (diff) | |
download | atk-dab5633a6f0b456f34237909db32dc89299787a9.tar.gz |
Removed comments from atkrelation.h
Added gtk-doc comments to atkrelation.c
-rwxr-xr-x | atk/atkrelationset.c | 60 | ||||
-rwxr-xr-x | atk/atkrelationset.h | 32 |
2 files changed, 61 insertions, 31 deletions
diff --git a/atk/atkrelationset.c b/atk/atkrelationset.c index 8897fe2..82d94b7 100755 --- a/atk/atkrelationset.c +++ b/atk/atkrelationset.c @@ -56,6 +56,12 @@ atk_relation_set_class_init (AtkRelationSetClass *klass) gobject_class->finalize = atk_relation_set_finalize; } +/** + * atk_relation_set_new + * return values: a new #AtkRelationSet + * + * Creates a new empty relation set. + **/ AtkRelationSet* atk_relation_set_new (void) { @@ -65,6 +71,15 @@ atk_relation_set_new (void) return relation_set; } +/** + * atk_relation_set_contains + * @set: a #AtkRelationSet + * @relationtype: a #AtkRelationType + * return values: %TRUE if @relationtype is the relationship type of a relation in @set. + * + * Determines whether the relation set contains a relation that matches the + * specified type. + **/ gboolean atk_relation_set_contains (AtkRelationSet *set, AtkRelationType relationship) @@ -88,6 +103,16 @@ atk_relation_set_contains (AtkRelationSet *set, return FALSE; } +/** + * atk_relation_set_remove + * @set: a #AtkRelationSet + * @relation: a #AtkRelation + * + * 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. + **/ void atk_relation_set_remove (AtkRelationSet *set, AtkRelation *relation) @@ -108,6 +133,18 @@ atk_relation_set_remove (AtkRelationSet *set, } } +/** + * atk_relation_set_add + * @set: a #AtkRelationSet + * @relation: a #AtkRelation + * + * 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. + **/ void atk_relation_set_add (AtkRelationSet *set, AtkRelation *relation) @@ -124,6 +161,13 @@ atk_relation_set_add (AtkRelationSet *set, g_object_ref (relation); } +/** + * atk_relation_set_get_n_relations + * @set: a #AtkRelationSet + * return values: a gint representing the number of relations in the set. + * + * Determines the number of relations in a relation set. + **/ gint atk_relation_set_get_n_relations (AtkRelationSet *set) { @@ -136,6 +180,14 @@ atk_relation_set_get_n_relations (AtkRelationSet *set) return set->relations->len; } +/** + * atk_relation_set_get_relation + * @set: a #AtkRelationSet + * @i: a gint representing a position in the set, starting from 0. + * return values: a #AtkRelation, which is the relation at position i in the set. + * + * Determines the relation at the specified position in the relation set. + **/ AtkRelation* atk_relation_set_get_relation (AtkRelationSet *set, gint i) @@ -157,6 +209,14 @@ atk_relation_set_get_relation (AtkRelationSet *set, return item; } +/** + * atk_relation_set_get_relation_type + * @set: a #AtkRelationSet + * @relationship: a #AtkRelationType + * return values: a #AtkRelation, which is a relation matching the specified type. + * + * Finds a relation that matches the specified type. + **/ AtkRelation* atk_relation_set_get_relation_by_type (AtkRelationSet *set, AtkRelationType relationship) diff --git a/atk/atkrelationset.h b/atk/atkrelationset.h index 2ae685d..d04843f 100755 --- a/atk/atkrelationset.h +++ b/atk/atkrelationset.h @@ -52,46 +52,16 @@ struct _AtkRelationSetClass GType atk_relation_set_get_type (void); -/* - * Create a new relation set. - */ -AtkRelationSet* atk_relation_set_new (void); -/* - * Returns whether the relation set contains a relation that matches the - * specified type. - */ +AtkRelationSet* atk_relation_set_new (void); gboolean atk_relation_set_contains (AtkRelationSet *set, AtkRelationType relationship); -/* - * Remove a relation from the relation set. - * - * This function unref's the AtkRelation so it will be deleted unless there - * is another reference to it. - */ void atk_relation_set_remove (AtkRelationSet *set, 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. - */ void atk_relation_set_add (AtkRelationSet *set, AtkRelation *relation); -/* - * Returns the number of relations in a relation set. - */ gint atk_relation_set_get_n_relations (AtkRelationSet *set); -/* - * Returns the relation at the specified position in the relation set. - */ AtkRelation* atk_relation_set_get_relation (AtkRelationSet *set, gint i); -/* - * Returns a relation that matches the specified type. - */ AtkRelation* atk_relation_set_get_relation_by_type (AtkRelationSet *set, AtkRelationType relationship); |