Constraint


Description:

[ CCode ( has_construct_function = false ) ]
public Constraint (ConstraintTarget? target, ConstraintAttribute target_attribute, ConstraintRelation relation, ConstraintTarget? source, ConstraintAttribute source_attribute, double multiplier, double constant, int strength)

Creates a new constraint representing a relation between a layout attribute on a source and a layout attribute on a target.

Parameters:

target

the target of the constraint

target_attribute

the attribute of `target` to be set

relation

the relation equivalence between `target_attribute` and `source_attribute`

source

the source of the constraint

source_attribute

the attribute of `source` to be read

multiplier

a multiplication factor to be applied to `source_attribute`

constant

a constant factor to be added to `source_attribute`

strength

the strength of the constraint

Returns:

the newly created constraint