Constraint.this

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

  1. this(GtkConstraint* gtkConstraint, bool ownedRef)
  2. this(ConstraintTargetIF target, GtkConstraintAttribute targetAttribute, GtkConstraintRelation relation, ConstraintTargetIF source, GtkConstraintAttribute sourceAttribute, double multiplier, double constant, int strength)
  3. this(ConstraintTargetIF target, GtkConstraintAttribute targetAttribute, GtkConstraintRelation relation, double constant, int strength)

Parameters

target ConstraintTargetIF

the target of the constraint

targetAttribute GtkConstraintAttribute

the attribute of target to be set

relation GtkConstraintRelation

the relation equivalence between target_attribute and source_attribute

source ConstraintTargetIF

the source of the constraint

sourceAttribute GtkConstraintAttribute

the attribute of source to be read

multiplier double

a multiplication factor to be applied to source_attribute

constant double

a constant factor to be added to source_attribute

strength int

the strength of the constraint

Return Value

the newly created constraint

Throws

ConstructionException GTK+ fails to create the object.

Meta