Class
GcrUnionCollection
Description [src]
class Gcr.UnionCollection : GObject.Object {
parent: GObject
}
An implementation of GcrCollection
, which combines the objects in
other GcrCollection
s. Use gcr_union_collection_add()
to add and
gcr_union_collection_remove()
to remove them.
Constructors
gcr_union_collection_new
Create a new GcrUnionCollection
.
Instance methods
gcr_union_collection_add
Add objects from this collection to the union.
gcr_union_collection_elements
Get the collections that have been added to this union.
gcr_union_collection_have
Check whether the collection is present in the union.
gcr_union_collection_remove
Remove an object from the collection.
gcr_union_collection_size
Return the number of collections in this union. This does not reflect the number of objects in the combined collection.
gcr_union_collection_take
Add objects from this collection to the union. Do not add an additional reference to the collection.
Methods inherited from GcrCollection (5)
gcr_collection_contains
Check whether the collection contains an object or not.
gcr_collection_emit_added
Emit the GcrCollection::added
signal for the given object. This function
is used by implementors of this interface.
gcr_collection_emit_removed
Emit the GcrCollection::removed
signal for the given object. This function
is used by implementors of this interface.
gcr_collection_get_length
Get the number of objects in this collection.
gcr_collection_get_objects
Get a list of the objects in this collection.
Signals
Signals inherited from GObject (1)
GObject.Object::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Signals inherited from GcrCollection (2)
Gcr.Collection::added
This signal is emitted when an object is added to the collection.
Gcr.Collection::removed
This signal is emitted when an object is removed from the collection.