const class graphics::Size

sys::Obj
  graphics::Size

@Js
@Serializable { simple=true }

Source

Size models the width and height of a shape.

defVal

const static Size defVal := Size.<ctor>(0.0, 0.0)

Source

Default instance is 0,0.

equals

virtual override Bool equals(Obj? obj)

Source

Return if obj is same Size value.

fromStr

static new fromStr(Str s, Bool checked := true)

Source

Parse from comma or space separated string. If invalid then throw ParseErr or return null based on checked flag.

h

const Float h

Source

Height

hash

virtual override Int hash()

Source

Return hash of w and h.

make

new make(Float w, Float h)

Source

Construct with w, h.

makeInt

new makeInt(Int w, Int h)

Source

Construct with w, h as integers.

toStr

virtual override Str toStr()

Source

Return "w h"

w

const Float w

Source

Width