summaryrefslogtreecommitdiff
path: root/gtk/gtkconstraintexpressionprivate.h
Commit message (Collapse)AuthorAgeFilesLines
* constraints: Add some internal apisMatthias Clasen2019-07-011-0/+6
| | | | | Checking if a set is empty or a singleton can be done more efficiently than determining its size.
* Remove GtkConstraintVariable.set_prefix()Emmanuele Bassi2019-06-301-5/+2
| | | | The prefix and name are set at construction time.
* Add constraint solverEmmanuele Bassi2019-06-301-0/+276
GtkConstraintSolver is an implementation of the Cassowary constraint solving algorithm: http://constraints.cs.washington.edu/cassowary/ The Cassowary method allows to incrementally solve a tableau of linear equations, in the form of: x = y × coefficient + constant with different weights, or strengths, applied to each one. These equations can be used to describe constraints applied to a layout of UI elements, which allows layout managers using the Cassowary method to quickly, and efficiently, lay out widgets in complex relations between themselves and their parent container.