class
UIng::Table::Value
- UIng::Table::Value
- Reference
- Object
Defined in:
uing/table/table/value.cruing/table/table/value/type.cr
Constructors
- .new(r : Float64, g : Float64, b : Float64, a : Float64)
-
.new(ref_ptr : Pointer(LibUI::TableValue), borrowed : Bool = true)
Unified constructor - handles both borrowed and owned TableValue
-
.new(str : String)
Public constructors for creating new TableValue objects These MUST be freed after use
- .new(image : Image)
- .new(i : Int32)
- .new_color(r : Float64, g : Float64, b : Float64, a : Float64) : Value
Instance Method Summary
- #borrowed=(borrowed : Bool)
- #borrowed? : Bool
- #color : Tuple(Float64, Float64, Float64, Float64)
- #free : Nil
- #image : Pointer(LibUI::Image)
- #int : Int32
- #string : String | Nil
- #to_unsafe
-
#transfer_to_libui : Pointer(LibUI::TableValue)
Transfers ownership to libui.
- #type : Value::Type
- #value
Constructor Detail
def self.new(ref_ptr : Pointer(LibUI::TableValue), borrowed : Bool = true)
#
Unified constructor - handles both borrowed and owned TableValue
def self.new(str : String)
#
Public constructors for creating new TableValue objects These MUST be freed after use
Instance Method Detail
def transfer_to_libui : Pointer(LibUI::TableValue)
#
Transfers ownership to libui. After this call, this wrapper must not be used or freed.