const class gfx::Hints

sys::Obj
  gfx::Hints

@Js

Source

Hints model heights/weight contraints. Hint differs from Size in that w or h can be null.

defVal

const static Hints defVal := Hints.<ctor>(null, null)

Source

Default instance is null, null.

equals

virtual override Bool equals(Obj? obj)

Source

Return if obj is same Hints value.

h

const Int? h

Source

Suggested height or null if no contraints

hash

virtual override Int hash()

Source

Return hash of w and h.

make

new make(Int? w, Int? h)

Source

Construct with w, h.

minus

@Operator
Hints minus(Size size)

Source

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

plus

@Operator
Hints plus(Size size)

Source

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

toStr

virtual override Str toStr()

Source

Return "w,h"

w

const Int? w

Source

Suggested width or null if no contraints