struct Espresso::Bounds
- Espresso::Bounds
- Struct
- Value
- Object
Overview
Stores the two-dimensional boundaries of an object. This is a rectangular area that the object encompasses.
Defined in:
espresso/bounds.crConstructors
-
.new(x : Int32, y : Int32, width : Int32, height : Int32)
Creates the bounds with initial values.
Instance Method Summary
-
#bottom : Int32
Y-coordinate of the lower bound.
-
#height : Int32
Height of the rectangle.
-
#left : Int32
X-coordinate of the left side.
-
#right : Int32
X-coordinate of the right side.
-
#top : Int32
Y-coordinate of the upper bound.
-
#width : Int32
Width of the rectangle.
-
#x : Int32
X-coordinate of the upper-left corner.
-
#y : Int32
Y-coordinate of the upper-left corner.
Constructor Detail
def self.new(x : Int32, y : Int32, width : Int32, height : Int32)
#
Creates the bounds with initial values.