add_constraints_from_description


Description:

public List<unowned Constraint> add_constraints_from_description (string[] lines, int hspacing, int vspacing, ...) throws Error

Creates a list of constraints from a VFL description.

This function is a convenience wrapper around [method@Gtk.ConstraintLayout.add_constraints_from_descriptionv], using variadic arguments to populate the view/target map.

Parameters:

this

a `GtkConstraintLayout`

lines

an array of Visual Format Language lines defining a set of constraints

hspacing

default horizontal spacing value, or -1 for the fallback value

vspacing

default vertical spacing value, or -1 for the fallback value

...

a `NULL`-terminated list of view names and [iface@Gtk.ConstraintTarget]s

error

return location for a `GError`

first_view

the name of a view in the VFL description, followed by the [iface@Gtk.ConstraintTarget] to which it maps

n_lines

the number of lines

Returns:

the list of [class@Gtk.Constraint]s that were added to the layout