const class gfx::Size

sys::Obj
  gfx::Size

@Js
@Serializable { simple=true }

Source

Size represents the width and height of a rectangle.

defVal

const static Size defVal := Size.<ctor>(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 string. If invalid and checked is true then throw ParseErr otherwise return null.

h

const Int h

Source

Height

hash

virtual override Int hash()

Source

Return hash of w and h.

make

new make(Int w, Int h)

Source

Construct with w, h.

toStr

virtual override Str toStr()

Source

Return "w,h"

w

const Int w

Source

Width