Size represents the width and height of a rectangle.
Slots
- defSource
-
static Size def := Size.
() Default instance is 0, 0.
- equalsSource
-
override Bool equals(Obj? obj)
Overrides sys::Obj.equals
Return if obj is same Size value.
- fromStrSource
-
static Size? fromStr(Str s, Bool checked := true)
Parse from string. If invalid and checked is true then throw ParseErr otherwise return null.
- hSource
-
const Int h
Height
- hashSource
-
override Int hash()
Overrides sys::Obj.hash
Return hash of w and h.
- makeSource
-
new make(Int w := 0, Int h := 0)
Construct with optional w, h.
- toStrSource
-
override Str toStr()
Overrides sys::Obj.toStr
Return
"w,h"
- wSource
-
const Int w
Width