Tizen Native API
4.0
|
The constraint function that updates the target property with the value of the first source multiplied by scale parameter (for float properties). More...
Public Member Functions | |
RelativeToConstraintFloat (float scale) | |
Constructor. | |
void | operator() (float ¤t, const PropertyInputContainer &inputs) |
Functor. | |
Public Attributes | |
float | mScale |
Scale factor. |
The constraint function that updates the target property with the value of the first source multiplied by scale parameter (for float properties).
current = input[0] * scale. current, input[0], and scale indicates the target property, the first constraint source, and the scale parameter, respectively.
Dali::RelativeToConstraintFloat::RelativeToConstraintFloat | ( | float | scale | ) |
Constructor.
[in] | scale | Scale factor |
void Dali::RelativeToConstraintFloat::operator() | ( | float & | current, |
const PropertyInputContainer & | inputs | ||
) |
Functor.
[in,out] | current | The current property value (float property * scale factor) |
[in] | inputs | Property container for current property calculation |