class
UIng::Table::Value
- UIng::Table::Value
- Reference
- Object
Defined in:
uing/crimage.cruing/table/table/value.cr
uing/table/table/value/type.cr
Constructors
- .new(r : Number, g : Number, b : Number, a : Number)
-
.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 : Number, g : Number, b : Number, a : Number) : Value
- .new_color(color : CrImage::Color::Color) : Value
Instance Method Summary
- #borrowed? : Bool
- #color : Tuple(Float64, Float64, Float64, Float64)
- #free : Nil
-
#image_pointer : Pointer(LibUI::Image)
Returns the image's borrowed native pointer, or a null pointer for an empty image cell.
- #int : Int32
- #string : String | Nil
- #to_unsafe
- #type : Value::Type
-
#value
Returns the typed value.
Constructor Detail
def self.new(str : String)
#
Public constructors for creating new TableValue objects These MUST be freed after use
Instance Method Detail
def image_pointer : Pointer(LibUI::Image)
#
Returns the image's borrowed native pointer, or a null pointer for an empty image cell. The image is owned by its creator, not this Value; do not free the pointer or use it after the source image is freed.
def value
#
Returns the typed value. For image values, this returns the same
borrowed native pointer as #image_pointer.