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