|  |  |  | Gcr Library Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
struct GcrSimpleCollection; struct GcrSimpleCollectionClass; void gcr_simple_collection_add (GcrSimpleCollection *self,GObject *object); gboolean gcr_simple_collection_contains (GcrSimpleCollection *self,GObject *object); GcrCollection * gcr_simple_collection_new (void); 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 GcrSimpleCollection {
	GObject parent;
};
A simple implementation of GcrCollection.
| GObject  | The parent object | 
struct GcrSimpleCollectionClass {
	GObjectClass parent_class;
};
The class for GcrSimpleCollection.
| GObjectClass  | The parent class | 
void gcr_simple_collection_add (GcrSimpleCollection *self,GObject *object);
Add an object to this collection
| 
 | The collection | 
| 
 | The object to add | 
gboolean gcr_simple_collection_contains (GcrSimpleCollection *self,GObject *object);
Check if the collection contains a certain object.
| 
 | The collection | 
| 
 | The object to check | 
| Returns : | TRUEif the collection contains the object. | 
GcrCollection *     gcr_simple_collection_new           (void);
Create a new GcrSimpleCollection.
| Returns : | A newly allocated collection, which should be freed with g_object_unref(). | 
void gcr_simple_collection_remove (GcrSimpleCollection *self,GObject *object);
Remove an object from the collection.
| 
 | The collection | 
| 
 | The object to remove from the collection |