Sequence
The #GSequence struct is an opaque data type representing a glib-Sequences data type.
Skipped during bindings generation
parameter
data_destroy
: DestroyNotify
Constructors
Functions
Registers a cleaner to be executed when this proxy object is garbage collected.
Adds a new item to the end of @seq.
Returns the begin iterator for @seq.
Returns the end iterator for @seg
Returns the iterator at position @pos. If @pos is negative or larger than the number of items in @seq, the end iterator is returned.
Inserts @data into @seq using @cmp_func to determine the new position. The sequence must already be sorted according to @cmp_func; otherwise the new position of @data is undefined.
Like g_sequence_insert_sorted(), but uses a #GSequenceIterCompareFunc instead of a #GCompareDataFunc as the compare function.
Returns an iterator pointing to the position of the first item found equal to @data according to @cmp_func and @cmp_data. If more than one item is equal, it is not guaranteed that it is the first which is returned. In that case, you can use g_sequence_iter_next() and g_sequence_iter_prev() to get others.
Like g_sequence_lookup(), but uses a #GSequenceIterCompareFunc instead of a #GCompareDataFunc as the compare function.
Adds a new item to the front of @seq
Removes a previously registered cleaner from this proxy object.
Returns an iterator pointing to the position where @data would be inserted according to @cmp_func and @cmp_data.
Like g_sequence_search(), but uses a #GSequenceIterCompareFunc instead of a #GCompareDataFunc as the compare function.
Sorts @seq using @cmp_func.
Like g_sequence_sort(), but uses a #GSequenceIterCompareFunc instead of a #GCompareDataFunc as the compare function