struct Espresso::Size
- Espresso::Size
- Struct
- Value
- Object
Overview
Two-dimensional size of an object. Contains a width and height, represented as 32-bit integers.
Defined in:
espresso/size.crConstructors
-
.new(width : Int32, height : Int32)
Creates the size with initial values.
Instance Method Summary
-
#height : Int32
Vertical size.
-
#to_s(io)
Creates a string representation of the size.
-
#width : Int32
Horizontal size.