
Represents the x,y coordinate and w,h size of a rectangle.
Slots
- def
-
static Rect def := Rect.?()
Default instance is 0, 0, 0, 0.
- equals
-
Return if obj is same Rect value.
- fromStr
-
static Rect fromStr(Str s, Bool checked := true)
Parse from string. If invalid and checked is true then throw ParseErr otherwise return null.
- h
-
const Int h
Height
- hash
-
override Int hash()
Return hash of x, y, w, and h.
- make
-
new make(Int x := 0, Int y := 0, Int w := 0, Int h := 0)
Construct with optional x, y, w, h.
- pos
-
Point pos()
Get the x, y coordinate of this rectangle.
- size
-
Size size()
Get the w, h size of this rectangle.
- toStr
-
override Str toStr()
Return
"x,y,w,h"
- w
-
const Int w
Width
- x
-
const Int x
X coordinate
- y
-
const Int y
Y coordinate