wResizer

wResizer is the class for wResizable layout constraint solver. It is based on yglukhov's constraint solving library - kiwi.

Seealso:wResizable
Consts:The strength of the constraint.
ConstsDescription
REQUIREDREQUIRED
STRONGEST20000000.0
STRONGER10000000.0
STRONG99000000.0
STRONG88000000.0
STRONG77000000.0
STRONG66000000.0
STRONG51000000.0
STRONG4400000.0
STRONG3300000.0
STRONG2200000.0
STRONG1100000.0
MEDIUM99000.0
MEDIUM87000.0
MEDIUM75000.0
MEDIUM63000.0
MEDIUM51000.0
MEDIUM4400.0
MEDIUM3300.0
MEDIUM2200.0
MEDIUM1100.0
WEAK990.0
WEAK880.0
WEAK770.0
WEAK660.0
WEAK51.0
WEAK40.4
WEAK30.3
WEAK20.2
WEAK10.1
WEAKER0.05
WEAKEST0.01
STRONGSTRONG5
MEDIUMMEDIUM5
WEAKWEAK5

Consts

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

Procs

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.

Iterators

iterator items(self: wResizer): wResizable {...}{.raises: [], tags: [].}
Iterates over each associated object.