glib.variant_builder

Module for [VariantBuilder] class

Types 1

A utility type for constructing container-type #GVariant instances.

This is an opaque structure and may only be accessed using the following functions.

#GVariantBuilder is not threadsafe in any way. Do not attempt to access it from more than one thread.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
VariantBuilder self() nothrowReturns `this`, for use in `with` statements.
void addValue(glib.variant.Variant value) nothrowAdds value to builder.
void close() nothrowCloses the subcontainer inside the given builder that was opened by the most recent call to [glib.variant_builder.VariantBuilder.open].
glib.variant.Variant end() nothrowEnds the builder process and returns the constructed value.
void open(glib.variant_type.VariantType type) nothrowOpens a subcontainer inside the given builder. When done adding items to the subcontainer, [glib.variant_builder.VariantBuilder.close] must be called. type is the type of the container: so to buil...
Constructors
this(void * ptr, Flag!"Take" take)
this(glib.variant_type.VariantType type)Allocates and initialises a new #GVariantBuilder.