Hints are used to pass contraints into Widget.prefSize.
Slots
- defSource
-
static Hints def := Hints(null, null)
Default instance is null, null.
- equalsSource
-
override Bool equals(Obj? obj)
Overrides sys::Obj.equals
Return if obj is same Hints value.
- hSource
-
const Int? h
Suggested height or null if no contraints
- hashSource
-
override Int hash()
Overrides sys::Obj.hash
Return hash of w and h.
- makeSource
-
new make(Int? w := null, Int? h := null)
Construct with optional w, h.
- minusSource
-
Subtract the given w and h from this hint's dimensions. If a hint dimension is null, then the resulting dimension is null too.
- plusSource
-
Add the given w and h to this hint's dimensions. If a hint dimension is null, then the resulting dimension is null too.
- toStrSource
-
override Str toStr()
Overrides sys::Obj.toStr
Return
"w,h"
- wSource
-
const Int? w
Suggested width or null if no contraints