Constraint.newConstant

gtk.constraint.Constraint newConstant(gtk.constraint_target.ConstraintTarget target, gtk.types.ConstraintAttribute targetAttribute, gtk.types.ConstraintRelation relation, double constant, int strength)

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

Parameters

targeta the target of the constraint
targetAttributethe attribute of target to be set
relationthe relation equivalence between target_attribute and constant
constanta constant factor to be set on target_attribute
strengththe strength of the constraint

Returns

the newly created constraint