Aqt.Cassowary
Public Types | Static Public Member Functions | List of all members
aqt::cassowary::Strength Class Reference

Enum categorising the priority of constraints. More...

#include <aqt/cassowary/Strength.hpp>

Inheritance diagram for aqt::cassowary::Strength:

Public Types

enum  Types { Required, Strong, Medium, Weak }
 

Static Public Member Functions

static rhea::strength impl (Types t)
 

Detailed Description

Enum categorising the priority of constraints.

Constraints with higher strengths have higher priority, and thus the system will try harder to satisfy them iff not all constraints can be satisfied at the same time – i.e. when the system is overconstrained.

Note
The Required strength is special. The solver will log errors when required constraints can not be satisfied.
See also
ConstraintBase
Constraint
Import in QML
import Aqt.Cassowary 1.0
Since
1.0

The documentation for this class was generated from the following file: