- Index
- »
- fan.graphics
- »
- Size
Size
@Js
@Serializable { simple=true }
const class Size : Obj
Size models the width and height of a shape.
Parse from comma or space separated string
Construct with w, h
Construct with w, h as integers
Default instance is 0,0
Height
Width
Return if obj is same Size value
Return hash of w and h
Return "w 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 := true)
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