struct

Espresso::Bounds

Inherits Struct / Value / Object

Stores the two-dimensional boundaries of an object. This is a rectangular area that the object encompasses.

Constructors

new(x : Int32, y : Int32, width : Int32, height : Int32)

Creates the bounds with initial values.

Source

Instance methods

bottom

Y-coordinate of the lower bound.

Source
height

Height of the rectangle.

Source
left

X-coordinate of the left side.

Source
right

X-coordinate of the right side.

Source
top

Y-coordinate of the upper bound.

Source
width

Width of the rectangle.

Source
x

X-coordinate of the upper-left corner.

Source
y

Y-coordinate of the upper-left corner.

Source