const class graphics::Size
sys::Obj graphics::Size
@Js@Serializable { simple=true }
Size models the width and height of a shape.
- defVal
-
const static Size defVal := Size.<ctor>(0.0, 0.0)Default instance is
0,0. - equals
-
virtual override Bool equals(Obj? obj)Return if obj is same Size value.
- fromStr
-
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.
- h
-
const Float hHeight
- hash
-
virtual override Int hash()Return hash of w and h.
- make
-
Construct with w, h.
- makeInt
-
Construct with w, h as integers.
- toStr
-
virtual override Str toStr()Return
"w h" - w
-
const Float wWidth