SequenceIter

The glib.SequenceIter struct is an opaque data type representing an iterator pointing into a glib.Sequence

Constructors

this
this(GSequenceIter* gSequenceIter, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

compare
int compare(SequenceIter b)

Returns a negative number if a comes before b, 0 if they are equal, and a positive number if a comes after b.

getPosition
int getPosition()

Returns the position of iter

getSequence
Sequence getSequence()

Returns the glib.Sequence that iter points into.

getSequenceIterStruct
GSequenceIter* getSequenceIterStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

isBegin
bool isBegin()

Returns whether iter is the begin iterator

isEnd
bool isEnd()

Returns whether iter is the end iterator

move
SequenceIter move(int delta)

Returns the glib.SequenceIter which is delta positions away from iter. If iter is closer than -delta positions to the beginning of the sequence, the begin iterator is returned. If iter is closer than delta positions to the end of the sequence, the end iterator is returned.

next
SequenceIter next()

Returns an iterator pointing to the next position after iter. If iter is the end iterator, the end iterator is returned.

prev
SequenceIter prev()

Returns an iterator pointing to the previous position before iter. If iter is the begin iterator, the begin iterator is returned.

Variables

gSequenceIter
GSequenceIter* gSequenceIter;

the main Gtk struct