class GLib::VariantBuilder


A utility type for constructing container-type #GVariant instances.

This is an opaque structure and may only be accessed using the following functions.

#GVariantBuilder is not threadsafe in any way. Do not attempt to access it from more than one thread.

Defined in:



Class Method Summary

Instance Method Summary

Constructor Detail

def : Pointer(Void), transfer : GICrystal::Transfer) #

def : GLib::VariantType) : self #

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.

Instance Method Detail

def add_value(value : _) : Nil #

def close : Nil #

def end : GLib::Variant #

def finalize #

def open(type : GLib::VariantType) : Nil #

def to_unsafe : Pointer(Void) #

def unref : Nil #