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 [[email protected]_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 [[email protected]]s

error

return location for a `GError`

first_view

the name of a view in the VFL description, followed by the [[email protected]] to which it maps

n_lines

the number of lines

Returns:

the list of [[email protected]]s that were added to the layout




2022 vala-language.org