Constraint


Object Hierarchy:

Object hierarchy for Constraint

Description:

[ CCode ( type_id = "gtk_constraint_get_type ()" ) ]
public class Constraint : Object

Constraint describes a constraint between an attribute on a widget and another attribute on another widget, expressed as a linear equation like:

  target.attr1 = source.attr2 × multiplier + constant
Each Constraint is part of a system that will be solved by a ConstraintLayout in order to allocate and position each child widget.

The source and target widgets, as well as their attributes, of a Constraint instance are immutable after creation.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members: