Constraint
Creates a new constraint representing a relation between a layout attribute on a source and a layout attribute on a target.
Return
the newly created constraint
Parameters
the target of the constraint
the attribute of target
to be set
the relation equivalence between target_attribute
and source_attribute
the source of the constraint
the attribute of source
to be read
a multiplication factor to be applied to source_attribute
a constant factor to be added to source_attribute
the strength of the constraint
Creates a new constraint representing a relation between a layout attribute on a target and a constant value.
Return
the newly created constraint
Parameters
a the target of the constraint
the attribute of target
to be set
the relation equivalence between target_attribute
and constant
a constant factor to be set on target_attribute
the strength of the constraint