Variant.newTuple
Variant newTuple(T...)(T vals) if (isTypeTuple!T)Template to create a new tuple Variant from one or more values.
Parameters
T | The D types to create the tuple variant from |
vals | The values to assign |
glib.variant.Variant newTuple(glib.variant.Variant[] children)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
children | the items to make the tuple out of |
Returns
a floating reference to a new #GVariant tuple