summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_canvas_animation_rotate_private.h
blob: 64c588795969eaaf3d2382366c8ff062f1cabb46 (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
#define EFL_ANIMATION_PROTECTED

#include "evas_common_private.h"
#include <Ecore.h>
#include "efl_canvas_animation_private.h"

#define EFL_ANIMATION_ROTATE_DATA_GET(o, pd) \
   Efl_Canvas_Animation_Rotate_Data *pd = efl_data_scope_get(o, EFL_CANVAS_ANIMATION_ROTATE_CLASS)

typedef struct _Efl_Canvas_Animation_Rotate_Property
{
   double degree;
} Efl_Canvas_Animation_Rotate_Property;

typedef struct _Efl_Canvas_Animation_Rotate_Relative_Pivot
{
   Efl_Canvas_Object *obj;
   Eina_Vector2       pos;
} Efl_Canvas_Animation_Rotate_Relative_Pivot;

typedef struct _Efl_Canvas_Animation_Rotate_Data
{
   Efl_Canvas_Animation_Rotate_Property       from;
   Efl_Canvas_Animation_Rotate_Property       to;

   Eina_Position2D abs_pivot;
   Efl_Canvas_Animation_Rotate_Relative_Pivot rel_pivot;

   Eina_Bool use_rel_pivot;
} Efl_Canvas_Animation_Rotate_Data;