VariantDict

constructor(fromAsv: Variant? = null)(source)

Allocates and initialises a new #GVariantDict.

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

In some cases it may be easier to place a #GVariantDict directly on the stack of the calling function and initialise it with g_variant_dict_init(). This is particularly useful when you are using #GVariantDict to construct a #GVariant.

Return

a #GVariantDict

Since

2.40

Parameters

fromAsv

the #GVariant with which to initialise the dictionary


constructor()(source)

Allocate a new VariantDict.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.


constructor(scope: <Error class: unknown class>)(source)

Allocate a new VariantDict using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

scope

The AutofreeScope to allocate this structure in.


constructor(asv: Variant?, partialMagic: <Error class: unknown class>)(source)

Allocate a new VariantDict.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.

Parameters

asv
partialMagic

constructor(asv: Variant?, partialMagic: <Error class: unknown class>, scope: <Error class: unknown class>)(source)

Allocate a new VariantDict using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

asv
partialMagic
scope

The AutofreeScope to allocate this structure in.


constructor(glibVariantDictPointer: <Error class: unknown class><<Error class: unknown class>>)(source)