wResizer is the class for wResizable layout constraint solver. It is based on yglukhov's constraint solving library - kiwi.
| Consts: | The strength of the constraint.| Consts | Description |
| REQUIRED | REQUIRED |
| STRONGEST | 20000000.0 |
| STRONGER | 10000000.0 |
| STRONG9 | 9000000.0 |
| STRONG8 | 8000000.0 |
| STRONG7 | 7000000.0 |
| STRONG6 | 6000000.0 |
| STRONG5 | 1000000.0 |
| STRONG4 | 400000.0 |
| STRONG3 | 300000.0 |
| STRONG2 | 200000.0 |
| STRONG1 | 100000.0 |
| MEDIUM9 | 9000.0 |
| MEDIUM8 | 7000.0 |
| MEDIUM7 | 5000.0 |
| MEDIUM6 | 3000.0 |
| MEDIUM5 | 1000.0 |
| MEDIUM4 | 400.0 |
| MEDIUM3 | 300.0 |
| MEDIUM2 | 200.0 |
| MEDIUM1 | 100.0 |
| WEAK9 | 90.0 |
| WEAK8 | 80.0 |
| WEAK7 | 70.0 |
| WEAK6 | 60.0 |
| WEAK5 | 1.0 |
| WEAK4 | 0.4 |
| WEAK3 | 0.3 |
| WEAK2 | 0.2 |
| WEAK1 | 0.1 |
| WEAKER | 0.05 |
| WEAKEST | 0.01 |
| STRONG | STRONG5 |
| MEDIUM | MEDIUM5 |
| WEAK | WEAK5 |
|
proc `|`(constraint: Constraint; strength: float): Constraint {...}{.inline, raises: [],
tags: [].}
-
Modify a constraint by specified strength
proc `|`(strength: float; constraint: Constraint): Constraint {...}{.inline, raises: [],
tags: [].}
-
Modify a constraint by specified strength
proc addConstraint(self: wResizer; constraint: Constraint) {...}{.inline, raises: [
DuplicateConstraintException, Exception, UnsatisfiableConstraintException,
KeyError], tags: [RootEffect].}
-
Add a constraint to the solver.
proc addObject(self: wResizer; obj: wResizable) {...}{.inline,
raises: [DuplicateEditVariableException, RequiredFailureException],
tags: [RootEffect].}
-
Add an associated resizable object to the solver.
proc resolve(self: wResizer) {...}{.raises: [Exception, UnknownEditVariableException,
KeyError], tags: [RootEffect].}
-
Count the layout of the associated object.
proc rearrange(self: wResizer) {...}{.raises: [Exception], tags: [RootEffect].}
-
Rearrange the layout of the associated window.
proc init(self: wResizer; parent: wResizable) {...}{.inline, raises: [wNilAccess,
DuplicateEditVariableException, RequiredFailureException], tags: [RootEffect].}
-
Initializer.
proc Resizer(parent: wResizable): wResizer {...}{.inline, discardable, raises: [wNilAccess,
DuplicateEditVariableException, RequiredFailureException], tags: [RootEffect].}
-
Constructor.