struct Gloop::Rect
- Gloop::Rect
- Struct
- Value
- Object
Overview
Two-dimensional, rectangular region.
Defined in:
gloop/rect.crConstructors
-
.new(x : Int32, y : Int32, width : Int32, height : Int32)
Creates a rectangular region.
Instance Method Summary
-
#height : Int32
Height of the rectangular region.
-
#width : Int32
Width of the rectangular region.
-
#x : Int32
X-coordinate of a corner of the rectangular region.
-
#y : Int32
Y-coordinate of a corner of the rectangular region.