Constraint package:gi-gtk
GtkConstraint describes a constraint between attributes of
two widgets, expressed as a linear equation.
The typical equation for a constraint is:
target.target_attr = source.source_attr × multiplier + constant
Each
GtkConstraint is part of a system that will be solved by
a
ConstraintLayout in order to allocate and position each child
widget or guide.
The source and target, as well as their attributes, of a
GtkConstraint instance are immutable after creation.
Memory-managed wrapper type.
The widget attributes that can be used when creating a
[classconstraint].
The bottom edge of a widget
The center of a widget, on the horizontal axis
The center of a widget, on the vertical axis
The left edge of a widget, regardless of text direction
No attribute, used for constant relations
The right edge of a widget, regardless of text direction
The relation between two terms of a constraint.
The strength of a constraint, expressed as a symbolic constant.
The strength of a [classconstraint] can be expressed
with any positive integer; the values of this enumeration can be used
for readability.
The constraint is required towards solving the layout