forked from enlightenment/efl
33 lines
889 B
C
33 lines
889 B
C
|
#define EFL_ANIMATION_PROTECTED
|
||
|
|
||
|
#include "evas_common_private.h"
|
||
|
|
||
|
#define MY_CLASS EFL_ANIMATION_ALPHA_CLASS
|
||
|
#define MY_CLASS_NAME efl_class_name_get(MY_CLASS)
|
||
|
|
||
|
#define EFL_ANIMATION_ALPHA_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_ALPHA_DATA_GET(o, pd) \
|
||
|
Efl_Animation_Alpha_Data *pd = efl_data_scope_get(o, EFL_ANIMATION_ALPHA_CLASS)
|
||
|
|
||
|
typedef struct _Efl_Animation_Alpha_Property
|
||
|
{
|
||
|
double alpha;
|
||
|
} Efl_Animation_Alpha_Property;
|
||
|
|
||
|
typedef struct _Efl_Animation_Alpha_Data
|
||
|
{
|
||
|
Efl_Animation_Alpha_Property from;
|
||
|
Efl_Animation_Alpha_Property to;
|
||
|
} Efl_Animation_Alpha_Data;
|