void *completion_arg;
Elm_Animator_Curve_Style curve_style;
Eina_Bool auto_reverse:1;
- Eina_Bool on_animating:1;
+ Eina_Bool walking:1;
};
static double _animator_curve_linear(double frame);
//Repeat and reverse and time done!
if (!animator->cur_repeat_cnt)
{
- animator->on_animating = EINA_FALSE;
+ animator->walking = EINA_FALSE;
_delete_animator(animator);
if (animator->completion_op)
animator->completion_op(animator->completion_arg);
elm_animator_duration_set(Elm_Animator *animator, double duration)
{
ELM_ANIMATOR_CHECK_OR_RETURN(animator);
- if (animator->on_animating) return;
+ if (animator->walking) return;
animator->duration = duration;
}
void *data)
{
ELM_ANIMATOR_CHECK_OR_RETURN(animator);
- if (animator->on_animating) return;
+ if (animator->walking) return;
animator->animator_op = func;
animator->animator_arg = data;
}
elm_animator_operating_get(const Elm_Animator *animator)
{
ELM_ANIMATOR_CHECK_OR_RETURN(animator, EINA_FALSE);
- return animator->on_animating;
+ return animator->walking;
}
/**
void *data)
{
ELM_ANIMATOR_CHECK_OR_RETURN(animator);
- if (animator->on_animating) return;
+ if (animator->walking) return;
animator->completion_op = func;
animator->completion_arg = data;
}
elm_animator_pause(Elm_Animator *animator)
{
ELM_ANIMATOR_CHECK_OR_RETURN(animator);
- if (!animator->on_animating) return;
+ if (!animator->walking) return;
ecore_animator_freeze(animator->animator);
}
elm_animator_resume(Elm_Animator *animator)
{
ELM_ANIMATOR_CHECK_OR_RETURN(animator);
- if (!animator->on_animating) return;
+ if (!animator->walking) return;
ecore_animator_thaw(animator->animator);
}
elm_animator_stop(Elm_Animator *animator)
{
ELM_ANIMATOR_CHECK_OR_RETURN(animator);
- animator->on_animating = EINA_FALSE;
+ animator->walking = EINA_FALSE;
_delete_animator(animator);
}
animator->cur_repeat_cnt = animator->repeat_cnt;
if (!animator->animator)
animator->animator = ecore_animator_add(_animator_animate_cb, animator);
- if (animator->animator) animator->on_animating = EINA_TRUE;
+ if (animator->animator) animator->walking = EINA_TRUE;
}