glib.sequence_iter

Module for [SequenceIter] class

Types 1

The #GSequenceIter struct is an opaque data type representing an iterator pointing into a #GSequence.

Fields
GSequenceIter * _cInstancePtr
bool owned
Methods
void * _cPtr()
int compare(glib.sequence_iter.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`.
int getPosition()Returns the position of iter Returns: the position of iter
glib.sequence.Sequence getSequence()Returns the #GSequence that iter points into. Returns: the #GSequence that iter points into
bool isBegin()Returns whether iter is the begin iterator Returns: whether iter is the begin iterator
bool isEnd()Returns whether iter is the end iterator Returns: Whether iter is the end iterator
glib.sequence_iter.SequenceIter move(int delta)Returns the #GSequenceIter 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 ...
glib.sequence_iter.SequenceIter next()Returns an iterator pointing to the next position after iter. If iter is the end iterator, the end iterator is returned. Returns: a #GSequenceIter pointing to the next position after iter
glib.sequence_iter.SequenceIter prev()Returns an iterator pointing to the previous position before iter. If iter is the begin iterator, the begin iterator is returned. Returns: a #GSequenceIter pointing to the previous position before ...
Constructors
this(void * ptr, Flag!"Take" take)