glib.variant_builder
Module for [VariantBuilder] class
class VariantBuilder
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
VariantBuilder self()Returns `this`, for use in `with` statements.void addValue(glib.variant.Variant value)Adds value to builder.void close()Closes the subcontainer inside the given builder that was opened by the most recent call to [glib.variant_builder.VariantBuilder.open].glib.variant.Variant end()Ends the builder process and returns the constructed value.void open(glib.variant_type.VariantType type)Opens 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(glib.variant_type.VariantType type)Allocates and initialises a new #GVariantBuilder.