Namespace Nalu.Cassowary
Classes
- Constraint
A constraint, consisting of an equation governed by an expression and a relational operator, and an associated strength.
- Solver
The constraint solver class.
- Strength
Contains useful constants and functions for producing strengths for use in the constraint solver. Each constraint added to the solver has an associated strength specifying the precedence the solver should impose when choosing which constraints to enforce. It will try to enforce all constraints, but if that is impossible the lowest strength constraints are the first to be violated.
- Variable
Identifies a variable for the constraint solver. Each new variable is unique in the view of the solver, but copying or cloning the variable produces a copy of the same variable.
Structs
- Expression
An expression that can be the left hand or right hand side of a constraint equation. It is a linear combination of variables, i.e. a sum of variables weighted by coefficients, plus an optional constant.
- PartialConstraint
This is an intermediate type used in the syntactic sugar for specifying constraints. You should not use it directly.
- Term
A variable and a coefficient to multiply that variable by. This is a sub-expression in a constraint equation.
- WeightedRelation
This is part of the syntactic sugar used for specifying constraints. This enum should be used as part of a constraint expression. See the module documentation for more information.
Enums
- RelationalOperator
The possible relations that a constraint can specify.