add_constraint
Description:
Adds a constraint to the layout manager.
The [property@Gtk.Constraint:source] and [property@Gtk.Constraint:target] properties of `constraint` can be:
- set to `NULL` to indicate that the constraint refers to the widget using `layout`
- set to the [class@Gtk.Widget] using `layout`
- set to a child of the [class@Gtk.Widget] using `layout`
- set to a [class@Gtk.ConstraintGuide] that is part of `layout`
The this acquires the ownership of constraint
after calling this function.
Parameters:
this |
a `GtkConstraintLayout` |
constraint |
a [class@Gtk.Constraint] |