Tizen Native API
Dali::RelativeToConstraintFloat Struct Reference

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 &current, const PropertyInputContainer &inputs)
 Functor.

Public Attributes

float mScale
 Scale factor.

Detailed Description

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 indicate the target property, the first constraint source, and the scale parameter, respectively.

Since :
2.4

Constructor & Destructor Documentation

Constructor.

Since :
2.4
Parameters:
[in]scaleScale factor

Member Function Documentation

void Dali::RelativeToConstraintFloat::operator() ( float &  current,
const PropertyInputContainer inputs 
)

Functor.

Since :
2.4
Parameters:
[in,out]currentThe current property value (float property * scale factor).
[in]inputProperty container for current property calculation