VariantIter

#GVariantIter 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

~this
~this()
Undocumented in source.

Members

Functions

copy
VariantIter copy()

Creates a new heap-allocated #GVariantIter 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 #GVariantIter. Only call this function on iterators that were returned by g_variant_iter_new() or g_variant_iter_copy().

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 #GVariantIter. @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

ownedRef
bool ownedRef;
Undocumented in source.

Meta