![]() |
![]() |
![]() |
Gcr Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
struct GcrSimpleCollection; struct GcrSimpleCollectionClass; GcrCollection * gcr_simple_collection_new (void
); void gcr_simple_collection_add (GcrSimpleCollection *self
,GObject *object
); void gcr_simple_collection_remove (GcrSimpleCollection *self
,GObject *object
);
A simple implementation of GcrCollection, which you can add and remove
objects from. Use gcr_simple_collection_add()
to do this
gcr_simple_collection_remove()
.
struct GcrSimpleCollectionClass { GObjectClass parent_class; };
The class for GcrSimpleCollection.
GObjectClass |
The parent class |
GcrCollection * gcr_simple_collection_new (void
);
Create a new GcrSimpleCollection.
Returns : |
a newly allocated
collection, which should be freed with g_object_unref() . [transfer full][type Gcr.SimpleCollection]
|
void gcr_simple_collection_add (GcrSimpleCollection *self
,GObject *object
);
Add an object to this collection
|
The collection |
|
The object to add |
void gcr_simple_collection_remove (GcrSimpleCollection *self
,GObject *object
);
Remove an object from the collection.
|
The collection |
|
The object to remove from the collection |