Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Tui::Dimension
Inherits
Struct
/
Value
/
Object
Represents a size dimension (width or height)
Constructors
new
Source
Class methods
auto
Helper constructors
Source
fr
(value :
Int32
= 1) :
Fr
Source
percent
(value :
Float64
) :
Percent
Source
px
(value :
Int32
) :
Px
Source
Instance methods
initialize
Source
resolve
(available :
Int32
, total_fr :
Int32
= 1) :
Int32
Source
Nested types
Tui::Dimension::Auto
Tui::Dimension::Fr
Tui::Dimension::Percent
Tui::Dimension::Px