const virtual class vaseGraphics::Size
sys::Obj vaseGraphics::Size
@Js
@Serializable { simple=true }
Size represents the width and height of a rectangle.
- defVal
-
const static Size defVal := Size.<ctor>(0, 0)
Default instance is 0, 0.
- equals
-
virtual override Bool equals(Obj? obj)
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
-
virtual override Int hash()
Return hash of w and h.
- make
-
Construct with w, h.
- toStr
-
virtual override Str toStr()
Return
"w,h"
- w
-
const Int w
Width