struct Espresso::Size

Overview

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

Defined in:

espresso/size.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(width, height) #

Creates the size with initial values.


[View source]

Instance Method Detail

def height : Int32 #

Vertical size.


[View source]
def to_s(io) #

Creates a string representation of the size.


[View source]
def width : Int32 #

Horizontal size.


[View source]