VariantBuilder.this

Allocates and initialises a new glib.VariantBuilder

You should call Variant.builderUnref on the return value when it is no longer needed. The memory will not be automatically freed by any other call.

In most cases it is easier to place a glib.VariantBuilder directly on the stack of the calling function and initialise it with Variant.builderInit.

  1. this(GVariantBuilder* gVariantBuilder, bool ownedRef)
  2. this(VariantType type)
    class VariantBuilder

Parameters

type VariantType

a container type

Return Value

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.24