class GLib::VariantBuilder

Overview

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:

lib/gi-crystal/src/auto/g_lib-2.0/variant_builder.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

[View source]
def self.new(type : GLib::VariantType) : self #

[View source]

Class Method Detail

def self.g_type : UInt64 #

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


[View source]

Instance Method Detail

def add_value(value : _) : Nil #

[View source]
def close : Nil #

[View source]
def end : GLib::Variant #

[View source]
def finalize #

[View source]
def open(type : GLib::VariantType) : Nil #

[View source]

[View source]
def to_unsafe : Pointer(Void) #

[View source]
def unref : Nil #

[View source]