Companion

object Companion

Functions

Link copied to clipboard
fun foreachRange(begin: SequenceIter, end: SequenceIter, func: Func)

Calls @func for each item in the range (@begin, @end) passing

Link copied to clipboard
fun get(iter: SequenceIter): <Error class: unknown class>?

Returns the data that @iter points to.

Link copied to clipboard
fun insertBefore(iter: SequenceIter, data: <Error class: unknown class>? = null): SequenceIter

Inserts a new item just before the item pointed to by @iter.

Link copied to clipboard
fun move(src: SequenceIter, dest: SequenceIter)

Moves the item pointed to by @src to the position indicated by @dest. After calling this function @dest will point to the position immediately after @src. It is allowed for @src and @dest to point into different sequences.

Link copied to clipboard

Inserts the (@begin, @end) range at the destination pointed to by @dest. The @begin and @end iters must point into the same sequence. It is allowed for @dest to point to a different sequence than the one pointed into by @begin and @end.

Link copied to clipboard

Finds an iterator somewhere in the range (@begin, @end). This iterator will be close to the middle of the range, but is not guaranteed to be exactly in the middle.

Link copied to clipboard
fun remove(iter: SequenceIter)

Removes the item pointed to by @iter. It is an error to pass the end iterator to this function.

Link copied to clipboard

Removes all items in the (@begin, @end) range.

Link copied to clipboard
fun set(iter: SequenceIter, data: <Error class: unknown class>? = null)

Changes the data for the item pointed to by @iter to be @data. If the sequence has a data destroy function associated with it, that function is called on the existing data that @iter pointed to.

Link copied to clipboard

Moves the data pointed to by @iter to a new position as indicated by

Link copied to clipboard

Like g_sequence_sort_changed(), but uses a #GSequenceIterCompareFunc instead of a #GCompareDataFunc as the compare function.

Link copied to clipboard

Swaps the items pointed to by @a and @b. It is allowed for @a and @b to point into difference sequences.