set_factor


Description:

public void set_factor (float factor)

Sets the alignment factor of the constraint

The factor depends on the align_axis property and it is a value between 0.0 (meaning left, when align_axis is set to X_AXIS; or meaning top, when align_axis is set to Y_AXIS) and 1.0 (meaning right, when align_axis is set to X_AXIS; or meaning bottom, when align_axis is set to Y_AXIS). A value of 0.5 aligns in the middle in either cases

Parameters:

this

a AlignConstraint

factor

the alignment factor, between 0.0 and 1.0




2022 vala-language.org