Constructor
GtkConstraintnew
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. |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
target_attribute |
GtkConstraintAttribute |
The attribute of |
|
relation |
GtkConstraintRelation |
The relation equivalence between |
|
source |
GtkConstraintTarget |
The source of the constraint. |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
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. |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |