Variant.this
- this(GVariant* gVariant, bool ownedRef)
- this(VariantType childType, Variant[] children)
- this(bool value)
- this(ubyte value)
- this(Variant key, Variant value)
- this(double value)
- this(VariantType elementType, void* elements, size_t nElements, size_t elementSize)
- this(VariantType type, Bytes bytes, bool trusted)
- this(VariantType type, ubyte[] data, bool trusted, GDestroyNotify notify, void* userData)
- this(short value)
- this(int value)
- this(long value)
- this(VariantType childType, Variant child)
- this(string format, void** app)
- this(string string_)
- this(string[] strv)
- this(Variant[] children)
- this(ushort value)
- this(uint value)
- this(ulong value)
- this(string formatString, string[] endptr, void** app)
- this(Variant value)
glib Variant Variant
constructorsfunctionsstatic functionsvariables
Creates a new glib.Variant array from children.
child_type must be non-NULL if n_children is zero. Otherwise, the child type is determined by inspecting the first element of the children array. If child_type is non-NULL then it must be a definite type.
The items of the array are taken from the children array. No entry in the children array may be NULL.
All items in the array must have the same type, which must be the same as child_type, if given.
If the children are floating references (see Variant.refSink), the new instance takes ownership of them as if via Variant.refSink.