Size
src
@Js
@Serializable { simple=true }
const class Size : Obj
Size models the width and height of a shape.
src
const static Size defVal := Size.<ctor>(0.0, 0.0)
Default instance is 0,0
.
src
virtual override Bool equals(Obj? obj)
Return if obj is same Size value.
src
static new fromStr(Str s, Bool checked := true)
Parse from comma or space separated string. If invalid then throw ParseErr or return null based on checked flag.
src
virtual override Int hash()
Return hash of w and h.
src
new makeInt(Int w, Int h)
Construct with w, h as integers.
src
virtual override Str toStr()
Return "w h"