
Size represents the width and height of a rectangle.
Slots
- def
-
static Size def := Size.?()
Default instance is 0, 0.
- equals
-
Return if obj is same Size value.
- fromStr
-
static Size 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 w and h.
- make
-
new make(Int w := 0, Int h := 0)
Construct with optional w, h.
- toStr
-
override Str toStr()
Return
"w,h"
- w
-
const Int w
Width