@Js
Hints model heights/weight contraints. Hint differs from Size in that w
or h
can be null.
Slots
- defValSource
-
const static Hints defVal := 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
-
Construct with 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