2019-02-14 08:37:02 -08:00
|
|
|
class @beta Efl.Decelerate_Interpolator extends Efl.Object implements Efl.Interpolator
|
2017-09-12 01:49:40 -07:00
|
|
|
{
|
2019-11-05 11:26:14 -08:00
|
|
|
[[Decelerated interpolator. It starts fast and decelerates, stopping smoothly when
|
|
|
|
it reaches $[1.0].
|
2017-09-12 01:49:40 -07:00
|
|
|
|
2019-11-05 11:26:14 -08:00
|
|
|
Internally it uses the second half of a sinus rise (from 0.5 to 1.0) and the steepness
|
2019-12-04 06:58:04 -08:00
|
|
|
can be customized through the @.slope property.
|
2017-09-12 01:49:40 -07:00
|
|
|
]]
|
2018-11-23 04:26:00 -08:00
|
|
|
data: Efl_Decelerate_Interpolator_Data;
|
2017-09-12 01:49:40 -07:00
|
|
|
methods {
|
2019-11-05 11:26:14 -08:00
|
|
|
@property slope {
|
|
|
|
[[Customize the deceleration effect.]]
|
2017-09-12 01:49:40 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2019-11-05 11:26:14 -08:00
|
|
|
slope: double; [[How steep is the effect. $[0] performs a linear interpolation,
|
|
|
|
$[1] corresponds to a sinus function and higher numbers produce
|
|
|
|
an increasingly steep effect.]]
|
2017-09-12 01:49:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
|
|
|
Efl.Object.constructor;
|
|
|
|
Efl.Interpolator.interpolate;
|
|
|
|
}
|
|
|
|
}
|