Constraint.newConstant

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

Parameters

target gtk.constraint_target.ConstraintTarget

a the target of the constraint

targetAttribute gtk.types.ConstraintAttribute

the attribute of target to be set

relation gtk.types.ConstraintRelation

the relation equivalence between target_attribute and constant

constant double

a constant factor to be set on target_attribute

strength int

the strength of the constraint

Return Value

Type: gtk.constraint.Constraint

the newly created constraint