const class gfx::Hints
sys::Obj gfx::Hints
@Js
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)
Default instance is null, null.
- equals
-
virtual override Bool equals(Obj? obj)
Return if obj is same Hints value.
- h
-
const Int? h
Suggested height or null if no contraints
- hash
-
virtual override Int hash()
Return hash of w and h.
- make
-
Construct with w, h.
- minus
-
@Operator
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.
- plus
-
@Operator
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.
- toStr
-
virtual override Str toStr()
Return
"w,h"
- w
-
const Int? w
Suggested width or null if no contraints