Sequence

class Sequence(pointer: <Error class: unknown class><<Error class: unknown class>>) : ProxyInstance

The #GSequence struct is an opaque data type representing a glib-Sequences data type.

Skipped during bindings generation

  • method append: Return type SequenceIter is unsupported

  • method get_begin_iter: Return type SequenceIter is unsupported

  • method get_end_iter: Return type SequenceIter is unsupported

  • method get_iter_at_pos: Return type SequenceIter is unsupported

  • method insert_sorted: Return type SequenceIter is unsupported

  • method insert_sorted_iter: Return type SequenceIter is unsupported

  • method lookup: Return type SequenceIter is unsupported

  • method lookup_iter: Return type SequenceIter is unsupported

  • method prepend: Return type SequenceIter is unsupported

  • method search: Return type SequenceIter is unsupported

  • method search_iter: Return type SequenceIter is unsupported

  • parameter begin: SequenceIter

  • parameter iter: SequenceIter

  • parameter iter: SequenceIter

  • parameter src: SequenceIter

  • parameter dest: SequenceIter

  • parameter data_destroy: DestroyNotify

  • parameter begin: SequenceIter

  • parameter iter: SequenceIter

  • parameter begin: SequenceIter

  • parameter iter: SequenceIter

  • parameter iter: SequenceIter

  • parameter iter: SequenceIter

  • parameter a: SequenceIter

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Properties

Link copied to clipboard
val glibSequencePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val handle: <Error class: unknown class>?

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compare two proxy instances for equality. This will compare both the type of the instances, and their memory addresses.

Link copied to clipboard
fun foreach(func: Func)

Calls @func for each item in the sequence passing @user_data to the function. @func must not modify the sequence itself.

Link copied to clipboard
fun free()

Frees the memory allocated for @seq. If @seq has a data destroy function associated with it, that function is called on all items in @seq.

Link copied to clipboard
fun getLength(): <Error class: unknown class>

Returns the positive length (>= 0) of @seq. Note that this method is O(h) where `h' is the height of the tree. It is thus more efficient to use g_sequence_is_empty() when comparing the length to zero.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Returns true if the sequence contains zero items.

Link copied to clipboard
fun sort(cmpFunc: CompareDataFunc)

Sorts @seq using @cmp_func.

Link copied to clipboard

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