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) #

def self.new(type : 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 ==(other : self) : Bool #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


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 #