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.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members: