Constraint
Object Hierarchy:
Gtk.Constraint
Gtk.Constraint
Gtk.Constraint
GLib.Object
GLib.Object
GLib.Object->Gtk.Constraint
Description:
[
CCode ( type_id =
"gtk_constraint_get_type ()" ) ]
public sealed class Constraint :
Object
`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 [class@Gtk.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.
Content:
Properties:
Creation methods:
public Constraint (ConstraintTarget ? target, ConstraintAttribute target_attribute, ConstraintRelation relation, ConstraintTarget ? source, ConstraintAttribute source_attribute, double multiplier, double constant, int strength)
Creates a new constraint representing a relation between a layout attribute
on a source and a layout attribute on a target.
public Constraint.const (ConstraintTarget ? target, ConstraintAttribute target_attribute, ConstraintRelation relation, double constant, int strength)
Creates a new constraint representing a relation between a layout attribute
on a target and a constant value.
Methods:
Inherited Members:
All known members inherited from class GLib.Object