@Js
@Serializable {
simple=true
collection=false
}
Size represents the width and height of a rectangle.
Slots
- defValSource
-
const static Size defVal := Size(0, 0)
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
-
Construct with w, h.
- toStrSource
-
override Str toStr()
Overrides sys::Obj.toStr
Return
"w,h"
- wSource
-
const Int w
Width