logo

const class

fwt::Size

sys::Obj
  fwt::Size

Size represents the width and height of a rectangle.

Slots

def

static Size def := Size.?()

Default instance is 0, 0.

Source

equals

override Bool equals(Obj obj)

Return if obj is same Size value.

Source

fromStr

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

Parse from string. If invalid and checked is true then throw ParseErr otherwise return null.

Source

h

const Int h

Height

Source

hash

override Int hash()

Return hash of w and h.

Source

make

new make(Int w := 0, Int h := 0)

Construct with optional w, h.

Source

toStr

override Str toStr()

Return "w,h"

Source

w

const Int w

Width

Source