Eina_Bool deleted : 1;
};
-struct _Elm_Effect
+struct _Elm_Transit_Effect
{
void (*animation_op) (void *data, Elm_Transit *transit, double progress);
void (*user_data_free) (void *data, Elm_Transit *transit);
Elm_Transit *transit;
};
-typedef struct _Elm_Effect Elm_Effect;
+typedef struct _Elm_Transit_Effect Elm_Transit_Effect;
typedef struct _Elm_Obj_Data Elm_Obj_Data;
static void
}
static void
-_elm_transit_effect_del(Elm_Transit *transit, Elm_Effect *effect, Eina_List *elist)
+_elm_transit_effect_del(Elm_Transit *transit, Elm_Transit_Effect *effect, Eina_List *elist)
{
if (effect->user_data_free)
effect->user_data_free(effect->user_data, transit);
_remove_dead_effects(Elm_Transit *transit)
{
Eina_List *elist, *elist_next;
- Elm_Effect *effect;
+ Elm_Transit_Effect *effect;
EINA_LIST_FOREACH_SAFE(transit->effect_list, elist, elist_next, effect)
{
_elm_transit_del(Elm_Transit *transit)
{
Eina_List *elist, *elist_next;
- Elm_Effect *effect;
+ Elm_Transit_Effect *effect;
if (transit->del_data.func)
transit->del_data.func(transit->del_data.arg, transit);
_transit_animate_op(Elm_Transit *transit, double progress)
{
Eina_List *elist;
- Elm_Effect *effect;
+ Elm_Transit_Effect *effect;
transit->walking++;
EINA_LIST_FOREACH(transit->effect_list, elist, effect)
{
ELM_TRANSIT_CHECK_OR_RETURN(transit);
EINA_SAFETY_ON_NULL_RETURN(cb);
- Elm_Effect *effect;
+ Elm_Transit_Effect *effect;
Eina_List *elist;
EINA_LIST_FOREACH(transit->effect_list, elist, effect)
if ((effect->animation_op == cb) && (effect->user_data == data)) return;
}
- effect = ELM_NEW(Elm_Effect);
+ effect = ELM_NEW(Elm_Transit_Effect);
if (!effect) return;
effect->user_data_free = data_free_cb;
ELM_TRANSIT_CHECK_OR_RETURN(transit);
EINA_SAFETY_ON_NULL_RETURN(cb);
Eina_List *elist, *elist_next;
- Elm_Effect *effect;
+ Elm_Transit_Effect *effect;
EINA_LIST_FOREACH_SAFE(transit->effect_list, elist, elist_next, effect)
{
///////////////////////////////////////////////////////////////////////////////
//Resizing FX
///////////////////////////////////////////////////////////////////////////////
-typedef struct _Elm_Fx_Resizing Elm_Fx_Resizing;
+typedef struct _Elm_Transit_Effect_Resizing Elm_Transit_Effect_Resizing;
-struct _Elm_Fx_Resizing
+struct _Elm_Transit_Effect_Resizing
{
struct _size {
Evas_Coord w, h;
Evas_Coord w, h;
Evas_Object *obj;
Eina_List *elist;
- Elm_Fx_Resizing *resizing = data;
+ Elm_Transit_Effect_Resizing *resizing = data;
w = resizing->from.w + (resizing->to.w * progress);
h = resizing->from.h + (resizing->to.h * progress);
static void *
_transit_effect_resizing_context_new(Evas_Coord from_w, Evas_Coord from_h, Evas_Coord to_w, Evas_Coord to_h)
{
- Elm_Fx_Resizing *resizing;
+ Elm_Transit_Effect_Resizing *resizing;
- resizing = ELM_NEW(Elm_Fx_Resizing);
+ resizing = ELM_NEW(Elm_Transit_Effect_Resizing);
if (!resizing) return NULL;
resizing->from.w = from_w;
///////////////////////////////////////////////////////////////////////////////
//Translation FX
///////////////////////////////////////////////////////////////////////////////
-typedef struct _Elm_Fx_Translation Elm_Fx_Translation;
-typedef struct _Elm_Fx_Translation_Node Elm_Fx_Translation_Node;
+typedef struct _Elm_Transit_Effect_Translation Elm_Transit_Effect_Translation;
+typedef struct _Elm_Transit_Effect_Translation_Node Elm_Transit_Effect_Translation_Node;
-struct _Elm_Fx_Translation_Node
+struct _Elm_Transit_Effect_Translation_Node
{
Evas_Object *obj;
Evas_Coord x, y;
};
-struct _Elm_Fx_Translation
+struct _Elm_Transit_Effect_Translation
{
struct _position_variation {
Evas_Coord dx, dy;
static void
_translation_object_del_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
- Elm_Fx_Translation *translation = data;
+ Elm_Transit_Effect_Translation *translation = data;
Eina_List *elist;
- Elm_Fx_Translation_Node *translation_node;
+ Elm_Transit_Effect_Translation_Node *translation_node;
EINA_LIST_FOREACH(translation->nodes, elist, translation_node)
{
}
static Eina_List *
-_translation_nodes_build(Elm_Transit *transit, Elm_Fx_Translation *translation)
+_translation_nodes_build(Elm_Transit *transit, Elm_Transit_Effect_Translation *translation)
{
- Elm_Fx_Translation_Node *translation_node;
+ Elm_Transit_Effect_Translation_Node *translation_node;
const Eina_List *elist;
Evas_Object *obj;
Eina_List *data_list = NULL;
EINA_LIST_FOREACH(objs, elist, obj)
{
- translation_node = ELM_NEW(Elm_Fx_Translation_Node);
+ translation_node = ELM_NEW(Elm_Transit_Effect_Translation_Node);
if (!translation_node)
{
eina_list_free(data_list);
_transit_effect_translation_context_free(void *data, Elm_Transit *transit __UNUSED__)
{
EINA_SAFETY_ON_NULL_RETURN(data);
- Elm_Fx_Translation *translation = data;
+ Elm_Transit_Effect_Translation *translation = data;
Eina_List *elist, *elist_next;
- Elm_Fx_Translation_Node *translation_node;
+ Elm_Transit_Effect_Translation_Node *translation_node;
EINA_LIST_FOREACH_SAFE(translation->nodes,
elist, elist_next, translation_node)
EINA_SAFETY_ON_NULL_RETURN(data);
EINA_SAFETY_ON_NULL_RETURN(transit);
Evas_Coord x, y;
- Elm_Fx_Translation *translation = data;
- Elm_Fx_Translation_Node *translation_node;
+ Elm_Transit_Effect_Translation *translation = data;
+ Elm_Transit_Effect_Translation_Node *translation_node;
Eina_List *elist;
if (!translation->nodes)
static void *
_transit_effect_translation_context_new(Evas_Coord from_dx, Evas_Coord from_dy, Evas_Coord to_dx, Evas_Coord to_dy)
{
- Elm_Fx_Translation *translation;
+ Elm_Transit_Effect_Translation *translation;
- translation = ELM_NEW(Elm_Fx_Translation);
+ translation = ELM_NEW(Elm_Transit_Effect_Translation);
if (!translation) return NULL;
translation->from.dx = from_dx;
///////////////////////////////////////////////////////////////////////////////
//Zoom FX
///////////////////////////////////////////////////////////////////////////////
-typedef struct _Elm_Fx_Zoom Elm_Fx_Zoom;
+typedef struct _Elm_Transit_Effect_Zoom Elm_Transit_Effect_Zoom;
-struct _Elm_Fx_Zoom
+struct _Elm_Transit_Effect_Zoom
{
float from, to;
};
EINA_SAFETY_ON_NULL_RETURN(transit);
Evas_Object *obj;
Eina_List *elist;
- Elm_Fx_Zoom *zoom = data;
+ Elm_Transit_Effect_Zoom *zoom = data;
Evas_Map *map;
Evas_Coord x, y, w, h;
static void *
_transit_effect_zoom_context_new(float from_rate, float to_rate)
{
- Elm_Fx_Zoom *zoom;
+ Elm_Transit_Effect_Zoom *zoom;
- zoom = ELM_NEW(Elm_Fx_Zoom);
+ zoom = ELM_NEW(Elm_Transit_Effect_Zoom);
if (!zoom) return NULL;
zoom->from = (FOCAL - (from_rate * FOCAL)) * (1 / from_rate);
///////////////////////////////////////////////////////////////////////////////
//Flip FX
///////////////////////////////////////////////////////////////////////////////
-typedef struct _Elm_Fx_Flip Elm_Fx_Flip;
+typedef struct _Elm_Transit_Effect_Flip Elm_Transit_Effect_Flip;
-struct _Elm_Fx_Flip
+struct _Elm_Transit_Effect_Flip
{
- Elm_Fx_Flip_Axis axis;
+ Elm_Transit_Effect_Flip_Axis axis;
Eina_Bool cw : 1;
};
EINA_SAFETY_ON_NULL_RETURN(transit);
Evas_Object *obj, *front, *back;
int count, i;
- Elm_Fx_Flip *flip = data;
+ Elm_Transit_Effect_Flip *flip = data;
Evas_Map *map;
float degree;
Evas_Coord x, y, w, h;
}
static void *
-_transit_effect_flip_context_new(Elm_Fx_Flip_Axis axis, Eina_Bool cw)
+_transit_effect_flip_context_new(Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw)
{
- Elm_Fx_Flip *flip;
+ Elm_Transit_Effect_Flip *flip;
- flip = ELM_NEW(Elm_Fx_Flip);
+ flip = ELM_NEW(Elm_Transit_Effect_Flip);
if (!flip) return NULL;
flip->cw = cw;
* to run, because the order of the objects will be affected.
*/
EAPI void *
-elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Fx_Flip_Axis axis, Eina_Bool cw)
+elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw)
{
ELM_TRANSIT_CHECK_OR_RETURN(transit, NULL);
void *effect_context = _transit_effect_flip_context_new(axis, cw);
///////////////////////////////////////////////////////////////////////////////
//ResizableFlip FX
///////////////////////////////////////////////////////////////////////////////
-typedef struct _Elm_Fx_Resizable_Flip Elm_Fx_ResizableFlip;
-typedef struct _Elm_Fx_Resizable_Flip_Node Elm_Fx_ResizableFlip_Node;
+typedef struct _Elm_Transit_Effect_Resizable_Flip Elm_Transit_Effect_ResizableFlip;
+typedef struct _Elm_Transit_Effect_Resizable_Flip_Node Elm_Transit_Effect_ResizableFlip_Node;
-struct _Elm_Fx_Resizable_Flip_Node
+struct _Elm_Transit_Effect_Resizable_Flip_Node
{
Evas_Object *front;
Evas_Object *back;
} from_pos, from_size, to_pos, to_size;
};
-struct _Elm_Fx_Resizable_Flip
+struct _Elm_Transit_Effect_Resizable_Flip
{
Eina_List *nodes;
Eina_Bool cw : 1;
- Elm_Fx_Flip_Axis axis;
+ Elm_Transit_Effect_Flip_Axis axis;
};
static void
_resizable_flip_object_del_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
- Elm_Fx_ResizableFlip *resizable_flip = data;
+ Elm_Transit_Effect_ResizableFlip *resizable_flip = data;
Eina_List *elist;
- Elm_Fx_ResizableFlip_Node *resizable_flip_node;
+ Elm_Transit_Effect_ResizableFlip_Node *resizable_flip_node;
EINA_LIST_FOREACH(resizable_flip->nodes, elist, resizable_flip_node)
{
}
static Eina_List *
-_resizable_flip_nodes_build(Elm_Transit *transit, Elm_Fx_ResizableFlip *resizable_flip)
+_resizable_flip_nodes_build(Elm_Transit *transit, Elm_Transit_Effect_ResizableFlip *resizable_flip)
{
- Elm_Fx_ResizableFlip_Node *resizable_flip_node;
+ Elm_Transit_Effect_ResizableFlip_Node *resizable_flip_node;
Eina_List *data_list = NULL;
Evas_Coord front_x, front_y, front_w, front_h;
Evas_Coord back_x, back_y, back_w, back_h;
count = eina_list_count(transit->objs);
for (i = 0; i < (count - 1); i += 2)
{
- resizable_flip_node = ELM_NEW(Elm_Fx_ResizableFlip_Node);
+ resizable_flip_node = ELM_NEW(Elm_Transit_Effect_ResizableFlip_Node);
if (!resizable_flip_node)
{
eina_list_free(data_list);
}
static void
-_set_image_uv_by_axis_y(Evas_Map *map, Elm_Fx_ResizableFlip_Node *flip, float degree)
+_set_image_uv_by_axis_y(Evas_Map *map, Elm_Transit_Effect_ResizableFlip_Node *flip, float degree)
{
if ((degree >= 90) || (degree <= -90))
{
}
static void
-_set_image_uv_by_axis_x(Evas_Map *map, Elm_Fx_ResizableFlip_Node *flip, float degree)
+_set_image_uv_by_axis_x(Evas_Map *map, Elm_Transit_Effect_ResizableFlip_Node *flip, float degree)
{
if ((degree >= 90) || (degree <= -90))
{
{
EINA_SAFETY_ON_NULL_RETURN(data);
- Elm_Fx_ResizableFlip *resizable_flip = data;
+ Elm_Transit_Effect_ResizableFlip *resizable_flip = data;
Eina_List *elist, *elist_next;
- Elm_Fx_ResizableFlip_Node *resizable_flip_node;
+ Elm_Transit_Effect_ResizableFlip_Node *resizable_flip_node;
EINA_LIST_FOREACH_SAFE(resizable_flip->nodes,
elist, elist_next, resizable_flip_node)
float x, y, w, h;
float degree;
Evas_Coord half_w, half_h;
- Elm_Fx_ResizableFlip *resizable_flip = data;
- Elm_Fx_ResizableFlip_Node *resizable_flip_node;
+ Elm_Transit_Effect_ResizableFlip *resizable_flip = data;
+ Elm_Transit_Effect_ResizableFlip_Node *resizable_flip_node;
Eina_List *elist;
map = evas_map_new(4);
}
static void *
-_transit_effect_resizable_flip_context_new(Elm_Fx_Flip_Axis axis, Eina_Bool cw)
+_transit_effect_resizable_flip_context_new(Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw)
{
- Elm_Fx_ResizableFlip *resizable_flip;
+ Elm_Transit_Effect_ResizableFlip *resizable_flip;
- resizable_flip = ELM_NEW(Elm_Fx_ResizableFlip);
+ resizable_flip = ELM_NEW(Elm_Transit_Effect_ResizableFlip);
if (!resizable_flip) return NULL;
resizable_flip->cw = cw;
* to run, because the order of the objects will be affected.
*/
EAPI void *
-elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Fx_Flip_Axis axis, Eina_Bool cw)
+elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw)
{
ELM_TRANSIT_CHECK_OR_RETURN(transit, NULL);
void *effect_context = _transit_effect_resizable_flip_context_new(axis, cw);
///////////////////////////////////////////////////////////////////////////////
//Wipe FX
///////////////////////////////////////////////////////////////////////////////
-typedef struct _Elm_Fx_Wipe Elm_Fx_Wipe;
+typedef struct _Elm_Transit_Effect_Wipe Elm_Transit_Effect_Wipe;
-struct _Elm_Fx_Wipe
+struct _Elm_Transit_Effect_Wipe
{
- Elm_Fx_Wipe_Type type;
- Elm_Fx_Wipe_Dir dir;
+ Elm_Transit_Effect_Wipe_Type type;
+ Elm_Transit_Effect_Wipe_Dir dir;
};
static void
-_elm_fx_wipe_hide(Evas_Map * map, Elm_Fx_Wipe_Dir dir, float x, float y, float w, float h, float progress)
+_elm_fx_wipe_hide(Evas_Map * map, Elm_Transit_Effect_Wipe_Dir dir, float x, float y, float w, float h, float progress)
{
float w2, h2;
}
static void
-_elm_fx_wipe_show(Evas_Map *map, Elm_Fx_Wipe_Dir dir, float x, float y, float w, float h, float progress)
+_elm_fx_wipe_show(Evas_Map *map, Elm_Transit_Effect_Wipe_Dir dir, float x, float y, float w, float h, float progress)
{
float w2, h2;
EINA_SAFETY_ON_NULL_RETURN(transit);
Eina_List *elist;
Evas_Object *obj;
- Elm_Fx_Wipe *wipe = data;
+ Elm_Transit_Effect_Wipe *wipe = data;
Eina_Bool reverse = elm_transit_auto_reverse_get(transit);
EINA_LIST_FOREACH(transit->objs, elist, obj)
{
EINA_SAFETY_ON_NULL_RETURN(data);
EINA_SAFETY_ON_NULL_RETURN(transit);
- Elm_Fx_Wipe *wipe = data;
+ Elm_Transit_Effect_Wipe *wipe = data;
Evas_Map *map;
Evas_Coord _x, _y, _w, _h;
Eina_List *elist;
}
static void *
-_transit_effect_wipe_context_new(Elm_Fx_Wipe_Type type, Elm_Fx_Wipe_Dir dir)
+_transit_effect_wipe_context_new(Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir)
{
- Elm_Fx_Wipe *wipe;
+ Elm_Transit_Effect_Wipe *wipe;
- wipe = ELM_NEW(Elm_Fx_Wipe);
+ wipe = ELM_NEW(Elm_Transit_Effect_Wipe);
if (!wipe) return NULL;
wipe->type = type;
* to run, because the order of the objects will be affected.
*/
EAPI void *
-elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Fx_Wipe_Type type, Elm_Fx_Wipe_Dir dir)
+elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir)
{
ELM_TRANSIT_CHECK_OR_RETURN(transit, NULL);
void *effect_context = _transit_effect_wipe_context_new(type, dir);
///////////////////////////////////////////////////////////////////////////////
//Color FX
///////////////////////////////////////////////////////////////////////////////
-typedef struct _Elm_Fx_Color Elm_Fx_Color;
+typedef struct _Elm_Transit_Effect_Color Elm_Transit_Effect_Color;
-struct _Elm_Fx_Color
+struct _Elm_Transit_Effect_Color
{
struct _unsigned_color {
unsigned int r, g, b, a;
{
EINA_SAFETY_ON_NULL_RETURN(data);
EINA_SAFETY_ON_NULL_RETURN(transit);
- Elm_Fx_Color *color = data;
+ Elm_Transit_Effect_Color *color = data;
Evas_Object *obj;
Eina_List *elist;
unsigned int r, g, b, a;
static void *
_transit_effect_color_context_new(unsigned int from_r, unsigned int from_g, unsigned int from_b, unsigned int from_a, unsigned int to_r, unsigned int to_g, unsigned int to_b, unsigned int to_a)
{
- Elm_Fx_Color *color;
+ Elm_Transit_Effect_Color *color;
- color = ELM_NEW(Elm_Fx_Color);
+ color = ELM_NEW(Elm_Transit_Effect_Color);
if (!color) return NULL;
color->from.r = from_r;
///////////////////////////////////////////////////////////////////////////////
//Fade FX
///////////////////////////////////////////////////////////////////////////////
-typedef struct _Elm_Fx_Fade Elm_Fx_Fade;
-typedef struct _Elm_Fx_Fade_Node Elm_Fx_Fade_Node;
+typedef struct _Elm_Transit_Effect_Fade Elm_Transit_Effect_Fade;
+typedef struct _Elm_Transit_Effect_Fade_Node Elm_Transit_Effect_Fade_Node;
-struct _Elm_Fx_Fade_Node
+struct _Elm_Transit_Effect_Fade_Node
{
Evas_Object *before;
Evas_Object *after;
Eina_Bool inversed : 1;
};
-struct _Elm_Fx_Fade
+struct _Elm_Transit_Effect_Fade
{
Eina_List *nodes;
};
static void
_fade_object_del_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
- Elm_Fx_Fade *fade = data;
+ Elm_Transit_Effect_Fade *fade = data;
Eina_List *elist;
- Elm_Fx_Fade_Node *fade_node;
+ Elm_Transit_Effect_Fade_Node *fade_node;
EINA_LIST_FOREACH(fade->nodes, elist, fade_node)
{
}
static Eina_List *
-_fade_nodes_build(Elm_Transit *transit, Elm_Fx_Fade *fade_data)
+_fade_nodes_build(Elm_Transit *transit, Elm_Transit_Effect_Fade *fade_data)
{
- Elm_Fx_Fade_Node *fade;
+ Elm_Transit_Effect_Fade_Node *fade;
Eina_List *data_list = NULL;
int i, count;
count = eina_list_count(transit->objs);
for (i = 0; i < (count - 1); i += 2)
{
- fade = ELM_NEW(Elm_Fx_Fade_Node);
+ fade = ELM_NEW(Elm_Transit_Effect_Fade_Node);
if (!fade)
{
eina_list_free(data_list);
_transit_effect_fade_context_free(void *data, Elm_Transit *transit __UNUSED__)
{
EINA_SAFETY_ON_NULL_RETURN(data);
- Elm_Fx_Fade *fade = data;
- Elm_Fx_Fade_Node *fade_node;
+ Elm_Transit_Effect_Fade *fade = data;
+ Elm_Transit_Effect_Fade_Node *fade_node;
Eina_List *elist, *elist_next;
EINA_LIST_FOREACH_SAFE(fade->nodes, elist, elist_next, fade_node)
_transit_effect_fade_op(void *data, Elm_Transit *transit __UNUSED__, double progress)
{
EINA_SAFETY_ON_NULL_RETURN(data);
- Elm_Fx_Fade *fade = data;
+ Elm_Transit_Effect_Fade *fade = data;
Eina_List *elist;
- Elm_Fx_Fade_Node *fade_node;
+ Elm_Transit_Effect_Fade_Node *fade_node;
float _progress;
if (!fade->nodes)
static void *
_transit_effect_fade_context_new(void)
{
- Elm_Fx_Fade *fade;
- fade = ELM_NEW(Elm_Fx_Fade);
+ Elm_Transit_Effect_Fade *fade;
+ fade = ELM_NEW(Elm_Transit_Effect_Fade);
if (!fade) return NULL;
return fade;
}
///////////////////////////////////////////////////////////////////////////////
//Blend FX
///////////////////////////////////////////////////////////////////////////////
-typedef struct _Elm_Fx_Blend Elm_Fx_Blend;
-typedef struct _Elm_Fx_Blend_Node Elm_Fx_Blend_Node;
+typedef struct _Elm_Transit_Effect_Blend Elm_Transit_Effect_Blend;
+typedef struct _Elm_Transit_Effect_Blend_Node Elm_Transit_Effect_Blend_Node;
-struct _Elm_Fx_Blend_Node
+struct _Elm_Transit_Effect_Blend_Node
{
Evas_Object *before;
Evas_Object *after;
struct _signed_color from, to;
};
-struct _Elm_Fx_Blend
+struct _Elm_Transit_Effect_Blend
{
Eina_List *nodes;
};
static void
_blend_object_del_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
- Elm_Fx_Blend *blend = data;
+ Elm_Transit_Effect_Blend *blend = data;
Eina_List *elist;
- Elm_Fx_Blend_Node *blend_node;
+ Elm_Transit_Effect_Blend_Node *blend_node;
EINA_LIST_FOREACH(blend->nodes, elist, blend_node)
{
}
static Eina_List *
-_blend_nodes_build(Elm_Transit *transit, Elm_Fx_Blend *blend)
+_blend_nodes_build(Elm_Transit *transit, Elm_Transit_Effect_Blend *blend)
{
- Elm_Fx_Blend_Node *blend_node;
+ Elm_Transit_Effect_Blend_Node *blend_node;
Eina_List *data_list = NULL;
int i, count;
count = eina_list_count(transit->objs);
for (i = 0; i < (count - 1); i += 2)
{
- blend_node = ELM_NEW(Elm_Fx_Blend_Node);
+ blend_node = ELM_NEW(Elm_Transit_Effect_Blend_Node);
if (!blend_node)
{
eina_list_free(data_list);
_transit_effect_blend_context_free(void *data, Elm_Transit *transit __UNUSED__)
{
EINA_SAFETY_ON_NULL_RETURN(data);
- Elm_Fx_Blend *blend = data;
- Elm_Fx_Blend_Node *blend_node;
+ Elm_Transit_Effect_Blend *blend = data;
+ Elm_Transit_Effect_Blend_Node *blend_node;
Eina_List *elist, *elist_next;
EINA_LIST_FOREACH_SAFE(blend->nodes, elist, elist_next, blend_node)
{
EINA_SAFETY_ON_NULL_RETURN(data);
EINA_SAFETY_ON_NULL_RETURN(transit);
- Elm_Fx_Blend *blend = data;
- Elm_Fx_Blend_Node *blend_node;
+ Elm_Transit_Effect_Blend *blend = data;
+ Elm_Transit_Effect_Blend_Node *blend_node;
Eina_List *elist;
if (!blend->nodes) blend->nodes = _blend_nodes_build(transit, blend);
static void *
_transit_effect_blend_context_new(void)
{
- Elm_Fx_Blend *blend;
+ Elm_Transit_Effect_Blend *blend;
- blend = ELM_NEW(Elm_Fx_Blend);
+ blend = ELM_NEW(Elm_Transit_Effect_Blend);
if (!blend) return NULL;
return blend;
}
///////////////////////////////////////////////////////////////////////////////
//Rotation FX
///////////////////////////////////////////////////////////////////////////////
-typedef struct _Elm_Fx_Rotation Elm_Fx_Rotation;
+typedef struct _Elm_Transit_Effect_Rotation Elm_Transit_Effect_Rotation;
-struct _Elm_Fx_Rotation
+struct _Elm_Transit_Effect_Rotation
{
Eina_Bool cw;
float from, to;
{
EINA_SAFETY_ON_NULL_RETURN(data);
EINA_SAFETY_ON_NULL_RETURN(transit);
- Elm_Fx_Rotation *rotation = data;
+ Elm_Transit_Effect_Rotation *rotation = data;
Evas_Map *map;
Evas_Coord x, y, w, h;
float degree;
static void *
_transit_effect_rotation_context_new(float from_degree, float to_degree, Eina_Bool cw)
{
- Elm_Fx_Rotation *rotation;
+ Elm_Transit_Effect_Rotation *rotation;
- rotation = ELM_NEW(Elm_Fx_Rotation);
+ rotation = ELM_NEW(Elm_Transit_Effect_Rotation);
if (!rotation) return NULL;
rotation->from = from_degree;
///////////////////////////////////////////////////////////////////////////////
// ImageAnimation FX
///////////////////////////////////////////////////////////////////////////////
-typedef struct _Elm_Fx_Image_Animation Elm_Fx_Image_Animation;
+typedef struct _Elm_Transit_Effect_Image_Animation Elm_Transit_Effect_Image_Animation;
-struct _Elm_Fx_Image_Animation
+struct _Elm_Transit_Effect_Image_Animation
{
Eina_List *images;
};
_transit_effect_image_animation_context_free(void *data, Elm_Transit *transit __UNUSED__)
{
EINA_SAFETY_ON_NULL_RETURN(data);
- Elm_Fx_Image_Animation *image_animation = data;
+ Elm_Transit_Effect_Image_Animation *image_animation = data;
const char *image;
Eina_List *elist, *elist_next;
Eina_List *elist;
Evas_Object *obj;
const char *type;
- Elm_Fx_Image_Animation *image_animation = data;
+ Elm_Transit_Effect_Image_Animation *image_animation = data;
unsigned int count = 0;
int len;
static void *
_transit_effect_image_animation_context_new(Eina_List *images)
{
- Elm_Fx_Image_Animation *image_animation;
- image_animation = ELM_NEW(Elm_Fx_Image_Animation);
+ Elm_Transit_Effect_Image_Animation *image_animation;
+ image_animation = ELM_NEW(Elm_Transit_Effect_Image_Animation);
if (!image_animation) return NULL;
image_animation->images = images;