class GObject::ValueArray

Overview

A #GValueArray contains an array of #GValue elements.

Defined in:

lib/gi-crystal/src/auto/g_object-2.0/value_array.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

def self.new(n_prealloced : UInt32) : self #

def self.new(n_values : UInt32? = nil, values : GObject::Value? = nil, n_prealloced : UInt32? = nil) #

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 append(value : _?) : GObject::ValueArray #

def copy : GObject::ValueArray #

def insert(index_ : UInt32, value : _?) : GObject::ValueArray #

def n_prealloced : UInt32 #

def n_prealloced=(value : UInt32) #

def n_values : UInt32 #

def n_values=(value : UInt32) #

def nth(index_ : UInt32) : GObject::Value #

def prepend(value : _?) : GObject::ValueArray #

def remove(index_ : UInt32) : GObject::ValueArray #

def sort(compare_func : GLib::CompareDataFunc, user_data : Pointer(Void)?) : GObject::ValueArray #

def to_unsafe #

def values : GObject::Value? #

def values! #

def values=(value : GObject::Value?) #