class

Vips::GValue

Inherits Reference < Object

Constructors

coerce(gtype : UInt64, value : Value) : GValue

Coerces a Crystal value into a GValue of the given GType. Values arrive as Object because they flow in from user-supplied option hashes.

Source

Class methods

coerce_boxed(gval : GValue, gtype : UInt64, value : Value) : Nil
Source

Instance methods

finalize
Source
init(gtype : UInt64) : self
Source
mark_filled

Marks the value as owning content after C code filled it in-place (e.g. vips_image_get), so that #finalize unsets it.

Source
read

Reads the GValue back into a Crystal value (Image for VipsImage properties, scalars for everything else commonly used).

Source
set_boolean(v : Bool) : Nil
Source
set_boxed(ptr : Pointer(Void)) : Nil
Source
set_double(v : Float64) : Nil
Source
set_enum(v : Int32) : Nil
Source
set_flags(v : Int32) : Nil
Source
set_float(v : Float32) : Nil
Source
set_int(v : Int32) : Nil
Source
set_int64(v : Int64) : Nil
Source
set_long(v : Int64) : Nil
Source
set_object(ptr : Pointer(Void)) : Nil
Source
set_string(v : String) : Nil
Source
set_uint(v : UInt32) : Nil
Source
set_uint64(v : UInt64) : Nil
Source
set_ulong(v : UInt64) : Nil
Source
to_unsafe
Source