Functions that deal with animations. More...
Typedefs | |
typedef enum _Edje_Tween_Mode | Edje_Tween_Mode |
Available tween mode for edje animations. | |
typedef enum _Edje_Action_Type | Edje_Action_Type |
All actions available in Edje programs. | |
Functions | |
void | edje_frametime_set (double t) |
Sets edje transitions' frame time. More... | |
double | edje_frametime_get (void) |
Gets edje transitions' frame time. More... | |
void | edje_freeze (void) |
Freezes Edje objects. More... | |
void | edje_thaw (void) |
Thaws Edje objects. More... | |
void | edje_language_set (const char *locale) |
Sets Edje language. More... | |
void | edje_transition_duration_factor_set (double scale) |
Sets edje transition duration factor. More... | |
double | edje_transition_duration_factor_get (void) |
Retrieves transitions duration factor. More... | |
Functions that deal with animations.
Edje has the ability to animate objects. One can start, stop, play, pause, freeze, and thaw edje animations using the functions of this section.
enum _Edje_Tween_Mode |
enum _Edje_Action_Type |
void edje_frametime_set | ( | double | t | ) |
Sets edje transitions' frame time.
t | The frame time, in seconds. Default value is 1/30. |
This function sets the edje built-in animations' frame time (thus, affecting their resolution) by calling ecore_animator_frametime_set(). This frame time can be retrieved with edje_frametime_get().
References ecore_animator_frametime_set().
double edje_frametime_get | ( | void | ) |
Gets edje transitions' frame time.
This function returns the edje frame time set by edje_frametime_set() or the default value 1/30.
References ecore_animator_frametime_get().
void edje_freeze | ( | void | ) |
Freezes Edje objects.
This function freezes all Edje animations in the current process.
References alloca(), EDJE_PART_TYPE_GROUP, EDJE_PART_TYPE_TEXT, EDJE_PART_TYPE_TEXTBLOCK, EINA_INLIST_FOREACH, eina_stringshare_replace_length(), and EINA_UNUSED.
void edje_thaw | ( | void | ) |
Thaws Edje objects.
This function thaws all Edje animations in the current process.
References EINA_FALSE, EINA_INLIST_FOREACH, and EINA_LIST_FREE.
void edje_language_set | ( | const char * | locale | ) |
Sets Edje language.
locale | The locale specifier. |
This function sets the given language.
References alloca(), EINA_INLIST_FOREACH, and eina_stringshare_replace().
Referenced by elm_language_set().
void edje_transition_duration_factor_set | ( | double | scale | ) |
Sets edje transition duration factor.
scale | The edje transition's duration factor (the default value is 1.0 ) |
This function sets the edje transition duration factor It will affect the speed of transitions which had the use_duration_factor
property set to @1. The default value of use_duration_factor
property is zero
, but can be changed by "USE_DURATION_FACTOR 1"
or "USE_DURATION_FACTOR 0"
as parameter of "TRANSITION"
property at EDC level. If the parameter is "USE_DURATION_FACTOR 0"
or not mentioned about "USE_DURATION_FACTOR"
, the duration of transition keeps original duration
References alloca(), _Eina_List::data, DBG, ecore_animator_add(), ecore_animator_del(), ecore_loop_time_get(), ecore_timer_add(), ecore_timer_del(), EDJE_ACTION_TYPE_ACTION_STOP, EDJE_ACTION_TYPE_DRAG_VAL_PAGE, EDJE_ACTION_TYPE_DRAG_VAL_SET, EDJE_ACTION_TYPE_DRAG_VAL_STEP, EDJE_ACTION_TYPE_FOCUS_OBJECT, EDJE_ACTION_TYPE_FOCUS_SET, EDJE_ACTION_TYPE_PARAM_COPY, EDJE_ACTION_TYPE_PARAM_SET, EDJE_ACTION_TYPE_PHYSICS_ANG_VEL_SET, EDJE_ACTION_TYPE_PHYSICS_FORCE, EDJE_ACTION_TYPE_PHYSICS_FORCES_CLEAR, EDJE_ACTION_TYPE_PHYSICS_IMPULSE, EDJE_ACTION_TYPE_PHYSICS_ROT_SET, EDJE_ACTION_TYPE_PHYSICS_STOP, EDJE_ACTION_TYPE_PHYSICS_TORQUE, EDJE_ACTION_TYPE_PHYSICS_TORQUE_IMPULSE, EDJE_ACTION_TYPE_PHYSICS_VEL_SET, EDJE_ACTION_TYPE_SCRIPT, EDJE_ACTION_TYPE_SIGNAL_EMIT, EDJE_ACTION_TYPE_SOUND_SAMPLE, EDJE_ACTION_TYPE_SOUND_TONE, EDJE_ACTION_TYPE_STATE_SET, EDJE_ACTION_TYPE_VIBRATION_SAMPLE, edje_object_animation_set(), EDJE_PART_TYPE_GROUP, EDJE_TWEEN_MODE_OPT_FROM_CURRENT, efl_event_callback_add, efl_event_callback_del(), EINA_FALSE, eina_hash_add(), eina_hash_find(), eina_hash_string_superfast_new(), EINA_INARRAY_FOREACH, eina_list_append(), eina_list_data_get(), EINA_LIST_FOREACH, eina_list_free(), EINA_LIST_FREE, eina_list_remove(), EINA_SAFETY_ON_NULL_RETURN, eina_stringshare_add(), eina_stringshare_del(), eina_stringshare_ref(), EINA_TRUE, EINA_UNUSED, ephysics_body_angular_velocity_set(), ephysics_body_central_force_apply(), ephysics_body_central_impulse_apply(), ephysics_body_forces_clear(), ephysics_body_linear_velocity_set(), ephysics_body_rotation_set(), ephysics_body_stop(), ephysics_body_torque_apply(), ephysics_body_torque_impulse_apply(), ephysics_quaternion_normalize(), ephysics_quaternion_set(), ERR, evas_object_hide(), evas_object_show(), _Eina_List::next, and _EPhysics_Quaternion::x.
Referenced by elm_config_transition_duration_factor_set().
double edje_transition_duration_factor_get | ( | void | ) |
Retrieves transitions duration factor.
This function returns the edje transition duration factor.