class GObject::Value

Defined in:

lib/gi-crystal/src/bindings/g_object/value.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(value) #

Creates a GValue and initializes it with value.


[View source]
def self.new #

Creates an unitialized GValue.


[View source]

Class Method Detail

def self.g_type_for(value) #

Returns the GType for the Crystal variable, if the value can be wrap in a Value.


[View source]
def self.raw(g_type : UInt64, ptr : Pointer(Void)) #

[View source]

Instance Method Detail

def ==(other : Value) : Bool #

Compare two GObject::Value objects


[View source]
def as_bool : Bool #

[View source]
def as_bool? : Bool | Nil #

[View source]
def as_f : Float64 #

[View source]
def as_f32 : Float32 #

[View source]
def as_f32? : Float32 | Nil #

[View source]
def as_f64 : Float64 #

[View source]
def as_f64? : Float64 | Nil #

[View source]
def as_f? : Float64 | Nil #

[View source]
def as_gobject : GObject::Object #

[View source]
def as_gobject? : GObject::Object | Nil #

[View source]
def as_i : Int32 #

[View source]
def as_i32 : Int32 #

[View source]
def as_i32? : Int32 | Nil #

[View source]
def as_i64 : Int64 #

[View source]
def as_i64? : Int64 | Nil #

[View source]
def as_i8 : Int8 #

[View source]
def as_i8? : Int8 | Nil #

[View source]
def as_i? : Int32 | Nil #

[View source]
def as_param_spec : GObject::ParamSpec #

[View source]
def as_param_spec? : GObject::ParamSpec | Nil #

[View source]
def as_s : String #

[View source]
def as_s? : String | Nil #

[View source]
def as_u : UInt32 #

[View source]
def as_u32 : UInt32 #

[View source]
def as_u32? : UInt32 | Nil #

[View source]
def as_u64 : UInt64 #

[View source]
def as_u64? : UInt64 | Nil #

[View source]
def as_u8 : UInt8 #

[View source]
def as_u8? : UInt8 | Nil #

[View source]
def as_u? : UInt32 | Nil #

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

[View source]
def as_variant? : GLib::Variant | Nil #

[View source]
def finalize #

[View source]
def g_type : UInt64 #

Returns the GValue GType


[View source]
def raw #

[View source]
def to_unsafe #

[View source]