Class

GcrUnionCollection

Description [src]

class Gcr.UnionCollection : GObject.Object {
  parent: GObject
}

An implementation of GcrCollection, which combines the objects in other GcrCollections. Use gcr_union_collection_add() to add and gcr_union_collection_remove() to remove them.

Ancestors

  • GObject

Implements

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.

Class structure

struct GcrUnionCollectionClass {
  GObjectClass parent_class;
  
}
Class members
parent_class
GObjectClass
  No description available.