Constructor
Gtk.Constraint.new
Declaration [src]
GtkConstraint*
gtk_constraint_new (
  GtkConstraintTarget* target,
  GtkConstraintAttribute target_attribute,
  GtkConstraintRelation relation,
  GtkConstraintTarget* source,
  GtkConstraintAttribute source_attribute,
  double multiplier,
  double constant,
  int strength
)
Description [src]
Creates a new constraint representing a relation between a layout attribute on a source and a layout attribute on a target.
Parameters
| target | GtkConstraintTarget | 
| the target of the constraint | |
| Can be NULL | |
| Ownership is not transferred to the callee | |
| target_attribute | GtkConstraintAttribute | 
| the attribute of  | |
| relation | GtkConstraintRelation | 
| the relation equivalence between  | |
| source | GtkConstraintTarget | 
| the source of the constraint | |
| Can be NULL | |
| Ownership is not transferred to the callee | |
| source_attribute | GtkConstraintAttribute | 
| the attribute of  | |
| multiplier | double | 
| a multiplication factor to be applied to  | |
| constant | double | 
| a constant factor to be added to  | |
| strength | int | 
| the strength of the constraint | 
Return value
| Returns: GtkConstraint | |
| the newly created constraint | |
| Ownership of the data is transferred to the caller | |