Method
GtkConstraintLayoutadd_constraint
Declaration [src]
void
gtk_constraint_layout_add_constraint (
GtkConstraintLayout* layout,
GtkConstraint* constraint
)
Description [src]
Adds a constraint to the layout manager.
The GtkConstraint:source
and GtkConstraint:target
properties of constraint
can be:
- set to
NULL
to indicate that the constraint refers to the widget usinglayout
- set to the
GtkWidget
usinglayout
- set to a child of the
GtkWidget
usinglayout
- set to a
GtkConstraintGuide
that is part oflayout
The layout
acquires the ownership of constraint
after calling
this function.
Parameters
constraint
-
Type:
GtkConstraint
The instance takes ownership of the data, and is responsible for freeing it.