logo

const class

fwt::Hints

sys::Obj
  fwt::Hints

Hints are used to pass contraints into Widget.prefSize.

Slots

def

static Hints def := Hints.?(null, null)

Default instance is null, null.

Source

equals

override Bool equals(Obj obj)

Return if obj is same Hints value.

Source

h

const Int h

Suggested height or null if no contraints

Source

hash

override Int hash()

Return hash of w and h.

Source

make

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

Construct with optional w, h.

Source

minus

Hints minus(Size size)

Subtract the given w and h from this hint's dimensions. If a hint dimension is null, then the resulting dimension is null too.

Source

plus

Hints plus(Size size)

Add the given w and h to this hint's dimensions. If a hint dimension is null, then the resulting dimension is null too.

Source

toStr

override Str toStr()

Return "w,h"

Source

w

const Int w

Suggested width or null if no contraints

Source