VariantIter

glib.VariantIter is an opaque data structure and can only be accessed using the following functions.

Constructors

this
this(GVariantIter* gVariantIter, bool ownedRef)

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

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

copy
VariantIter copy()

Creates a new heap-allocated glib.VariantIter to iterate over the container that was being iterated over by iter. Iteration begins on the new iterator from the current position of the old iterator but the two copies are independent past that point.

free
void free()

Frees a heap-allocated glib.VariantIter Only call this function on iterators that were returned by Variant.iterNew or Variant.iterCopy.

getStruct
void* getStruct()

the main Gtk struct as a void*

getVariantIterStruct
GVariantIter* getVariantIterStruct(bool transferOwnership)

Get the main Gtk struct

init
size_t init(Variant value)

Initialises (without allocating) a glib.VariantIter iter may be completely uninitialised prior to this call; its old value is ignored.

nChildren
size_t nChildren()

Queries the number of child items in the container that we are iterating over. This is the total number of items -- not the number of items remaining.

nextValue
Variant nextValue()

Gets the next item in the container. If no more items remain then NULL is returned.

Variables

gVariantIter
GVariantIter* gVariantIter;

the main Gtk struct