Variant.newTuple

Variant newTuple(T...)(T vals) if (isTypeTuple!T)

Template to create a new tuple Variant from one or more values.

Parameters

TThe D types to create the tuple variant from
valsThe values to assign

Creates a new tuple #GVariant out of the items in children. The type is determined from the types of children. No entry in the children array may be null.

If n_children is 0 then the unit tuple is constructed.

If the children are floating references (see [glib.variant.Variant.refSink]), the new instance takes ownership of them as if via [glib.variant.Variant.refSink].

Parameters

childrenthe items to make the tuple out of

Returns

a floating reference to a new #GVariant tuple