struct

Espresso::Size

Inherits Struct / Value / Object

Two-dimensional size of an object. Contains a width and height, represented as 32-bit integers.

Constructors

new(width : Int32, height : Int32)

Creates the size with initial values.

Source

Instance methods

height

Vertical size.

Source
to_s(io)

Creates a string representation of the size.

Source
width

Horizontal size.

Source