BitsetIter

An opaque, stack-allocated struct for iterating over the elements of a GtkBitset.

Before a GtkBitsetIter can be used, it needs to be initialized with [func@Gtk.BitsetIter.init_first], [func@Gtk.BitsetIter.init_last] or [func@Gtk.BitsetIter.init_at].

Constructors

this
this(GtkBitsetIter* gtkBitsetIter, bool ownedRef)

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

Members

Functions

getBitsetIterStruct
GtkBitsetIter* getBitsetIterStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getValue
uint getValue()

Gets the current value that @iter points to.

isValid
bool isValid()

Checks if @iter points to a valid value.

next
bool next(uint value)

Moves @iter to the next value in the set.

previous
bool previous(uint value)

Moves @iter to the previous value in the set.

Static functions

initAt
bool initAt(BitsetIter iter, Bitset set, uint target, uint value)

Initializes @iter to point to @target.

initFirst
bool initFirst(BitsetIter iter, Bitset set, uint value)

Initializes an iterator for @set and points it to the first value in @set.

initLast
bool initLast(BitsetIter iter, Bitset set, uint value)

Initializes an iterator for @set and points it to the last value in @set.

Variables

gtkBitsetIter
GtkBitsetIter* gtkBitsetIter;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta