diff options
author | Xavi Artigas <xavierartigas@yahoo.es> | 2019-11-05 20:26:14 +0100 |
---|---|---|
committer | Xavi Artigas <xavierartigas@yahoo.es> | 2019-11-06 15:50:11 +0100 |
commit | 9ca84821fc91d3e5661edb9d2393788b28c56f7c (patch) | |
tree | 58aa2e3812cad7d41a3243915ed785e63d28754b /src/bin | |
parent | 17a81bee4a53891e44a165a14ca20027f9aa0824 (diff) | |
download | efl-9ca84821fc91d3e5661edb9d2393788b28c56f7c.tar.gz |
Efl.Interpolator*: More sensible API names and docs
Summary:
OK, so, ALL interpolator parameters were called "factor" and the docs
literally said "First factor, Second factor, ..."
After diving into the actual implementation, proper names (and types) for the
parameters were found and proper docs written.
I am afraid I could not make any sense of the Divisor interpolator code. Those
docs still need writing.
Test Plan: Everything still builds and passes tests. No functional changes.
Reviewers: zmike, cedric, bu5hm4n, Jaehyun_Cho
Reviewed By: bu5hm4n
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10603
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/elementary/test_efl_anim_interpolator.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/bin/elementary/test_efl_anim_interpolator.c b/src/bin/elementary/test_efl_anim_interpolator.c index 9a6522f6d7..96c7649373 100644 --- a/src/bin/elementary/test_efl_anim_interpolator.c +++ b/src/bin/elementary/test_efl_anim_interpolator.c @@ -33,32 +33,35 @@ _interpolator_create(int index, Evas_Object *win) else if (index == 1) { interp = efl_add(EFL_SINUSOIDAL_INTERPOLATOR_CLASS, win); - efl_sinusoidal_interpolator_factor_set(interp, 1.0); + efl_sinusoidal_interpolator_slope_set(interp, 1.0); } else if (index == 2) { interp = efl_add(EFL_DECELERATE_INTERPOLATOR_CLASS, win); - efl_decelerate_interpolator_factor_set(interp, 1.0); + efl_decelerate_interpolator_slope_set(interp, 1.0); } else if (index == 3) { interp = efl_add(EFL_ACCELERATE_INTERPOLATOR_CLASS, win); - efl_accelerate_interpolator_factor_set(interp, 1.0); + efl_accelerate_interpolator_slope_set(interp, 1.0); } else if (index == 4) { interp = efl_add(EFL_DIVISOR_INTERPOLATOR_CLASS, win); - efl_divisor_interpolator_factors_set(interp, 1.0, 1.0); + efl_divisor_interpolator_divisor_set(interp, 1.0); + efl_divisor_interpolator_power_set(interp, 1); } else if (index == 5) { interp = efl_add(EFL_BOUNCE_INTERPOLATOR_CLASS, win); - efl_bounce_interpolator_factors_set(interp, 1.0, 1.0); + efl_bounce_interpolator_rigidness_set(interp, 1.0); + efl_bounce_interpolator_bounces_set(interp, 1); } else if (index == 6) { interp = efl_add(EFL_SPRING_INTERPOLATOR_CLASS, win); - efl_spring_interpolator_factors_set(interp, 1.0, 1.0); + efl_spring_interpolator_decay_set(interp, 1.0); + efl_spring_interpolator_oscillations_set(interp, 1); } return interp; |