GLib.Variant.new_tuple
function new_tuple(children: Array(GLib.Variant)): GLib.Variant { // Gjs wrapper for g_variant_new_tuple() }
Creates a new tuple GLib.Variant 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.prototype.ref_sink), the new instance takes ownership of them as if via GLib.Variant.prototype.ref_sink.
Since 2.24
- children
the items to make the tuple out of
- Returns
a floating reference to a new GLib.Variant tuple