type
Size
@Js
@Serializable { simple=true }
const class Size : Obj
Size models the width and height of a shape.
constructors
fromStr |
Parse from comma or space separated string. |
---|---|
make |
Construct with w, h. |
makeInt |
Construct with w, h as integers. |
fields
methods
Slot Details
defVal
const static Size defVal := Size.<ctor>(0.0, 0.0)
Default instance is 0,0
.
equals
fromStr
h
const Float h
Height
hash
virtual override Int hash()
Return hash of w and h.
make
makeInt
toStr
virtual override Str toStr()
Return "w h"
w
const Float w
Width