ConstraintLayout.addConstraint

void addConstraint(gtk.constraint.Constraint constraint)

Adds a constraint to the layout manager.

The gtk.constraint.Constraint.source and gtk.constraint.Constraint.target properties of constraint can be:

The layout acquires the ownership of constraint after calling this function.

Parameters

constrainta gtk.constraint.Constraint