blob: 1cd84d2a5982f1d7935318683141cccef8709973 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#define EFL_ANIMATION_PROTECTED
#include "evas_common_private.h"
#define MY_CLASS EFL_ANIMATION_CLASS
#define MY_CLASS_NAME efl_class_name_get(MY_CLASS)
typedef struct _Efl_Animation_Data
{
Efl_Canvas_Object *target;
double duration;
double total_duration;
double start_delay_time;
Efl_Animation_Repeat_Mode repeat_mode;
int repeat_count;
Eina_Bool is_deleted : 1;
Eina_Bool keep_final_state : 1;
} Efl_Animation_Data;
#define EFL_ANIMATION_CHECK_OR_RETURN(anim, ...) \
do { \
if (!anim) { \
CRI("Efl_Animation " # anim " is NULL!"); \
return __VA_ARGS__; \
} \
if (efl_animation_is_deleted(anim)) { \
ERR("Efl_Animation " # anim " has already been deleted!"); \
return __VA_ARGS__; \
} \
} while (0)
#define EFL_ANIMATION_DATA_GET(o, pd) \
Efl_Animation_Data *pd = efl_data_scope_get(o, EFL_ANIMATION_CLASS)
|