summaryrefslogtreecommitdiff
path: root/gtk/gtkconstraintexpression.c
Commit message (Collapse)AuthorAgeFilesLines
* gtk: Clean up docs syntaxMatthias Clasen2021-05-221-112/+112
| | | | Replace leftover gtk-doc syntax (#Type) with backquotes.
* *: Fix spelling mistakes found by codespellBjörn Daase2020-08-211-1/+1
|
* constraints: Add some internal apisMatthias Clasen2019-07-011-0/+12
| | | | | Checking if a set is empty or a singleton can be done more efficiently than determining its size.
* constraints: Use better data structuresMatthias Clasen2019-07-011-33/+28
| | | | | Use a GSequence for GtkVariableSet, to avoid quadratic behavior.
* Remove GtkConstraintVariable.set_prefix()Emmanuele Bassi2019-06-301-24/+11
| | | | The prefix and name are set at construction time.
* Do not release reference on the subject of an expressionEmmanuele Bassi2019-06-301-3/+0
| | | | We don't own the reference in the first place.
* Add constraint solverEmmanuele Bassi2019-06-301-0/+1842
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.