class GObject::Value
- GObject::Value
- Reference
- Object
Defined in:
lib/gi-crystal/src/bindings/g_object/value.crConstructors
-
.new(value)
Creates a GValue and initializes it with
value
. -
.new
Creates an unitialized GValue.
Class Method Summary
-
.g_type_for(value)
Returns the GType for the Crystal variable, if the value can be wrap in a
Value
. - .raw(g_type : UInt64, ptr : Pointer(Void))
Instance Method Summary
-
#==(other : Value) : Bool
Compare two GObject::Value objects
- #as_bool : Bool
- #as_bool? : Bool?
- #as_f : Float64
- #as_f32 : Float32
- #as_f32? : Float32?
- #as_f64 : Float64
- #as_f64? : Float64?
- #as_f? : Float64?
- #as_gobject : GObject::Object
- #as_gobject? : GObject::Object?
- #as_i : Int32
- #as_i32 : Int32
- #as_i32? : Int32?
- #as_i64 : Int64
- #as_i64? : Int64?
- #as_i8 : Int8
- #as_i8? : Int8?
- #as_i? : Int32?
- #as_param_spec : GObject::ParamSpec
- #as_param_spec? : GObject::ParamSpec?
- #as_s : String
- #as_s? : String?
- #as_u : UInt32
- #as_u32 : UInt32
- #as_u32? : UInt32?
- #as_u64 : UInt64
- #as_u64? : UInt64?
- #as_u8 : UInt8
- #as_u8? : UInt8?
- #as_u? : UInt32?
- #as_variant : GLib::Variant
- #as_variant? : GLib::Variant?
- #finalize
-
#g_type : UInt64
Returns the GValue GType
- #raw
- #to_unsafe
Constructor Detail
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
.