summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_animation_view_eo.legacy.c
blob: e213ebb6e9069dcff5187d66459976737d6249c3 (plain) (blame)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166

EAPI void
elm_animation_view_auto_play_set(Efl_Ui_Animation_View *obj, Eina_Bool auto_play)
{
   efl_ui_animation_view_autoplay_set(obj, auto_play);
}

EAPI Eina_Bool
elm_animation_view_auto_play_get(const Efl_Ui_Animation_View *obj)
{
   return efl_ui_animation_view_autoplay_get(obj);
}

EAPI void
elm_animation_view_auto_repeat_set(Efl_Ui_Animation_View *obj, Eina_Bool autorepeat)
{
   efl_ui_animation_view_autorepeat_set(obj, autorepeat);
}

EAPI Eina_Bool
elm_animation_view_auto_repeat_get(const Efl_Ui_Animation_View *obj)
{
   return efl_ui_animation_view_autorepeat_get(obj);
}

EAPI Eina_Bool
elm_animation_view_speed_set(Efl_Ui_Animation_View *obj, double speed)
{
   if (!obj) return EINA_FALSE;
   efl_player_playback_speed_set(obj, speed);
   return EINA_TRUE;
}

EAPI double
elm_animation_view_speed_get(const Efl_Ui_Animation_View *obj)
{
   return efl_player_playback_speed_get(obj);
}

EAPI double
elm_animation_view_duration_time_get(const Efl_Ui_Animation_View *obj)
{
   return efl_ui_animation_view_duration_time_get(obj);
}

EAPI void
elm_animation_view_progress_set(Efl_Ui_Animation_View *obj, double progress)
{
   efl_ui_animation_view_progress_set(obj, progress);
}

EAPI double
elm_animation_view_progress_get(const Efl_Ui_Animation_View *obj)
{
   return efl_player_playback_progress_get(obj);
}

EAPI void
elm_animation_view_frame_set(Efl_Ui_Animation_View *obj, int frame_num)
{
   efl_ui_animation_view_frame_set(obj, frame_num);
}

EAPI int
elm_animation_view_frame_get(const Efl_Ui_Animation_View *obj)
{
   return efl_ui_animation_view_frame_get(obj);
}

EAPI Eina_Bool
elm_animation_view_play(Efl_Ui_Animation_View *obj)
{
   return efl_player_playing_set(obj, EINA_TRUE);
}

EAPI Eina_Bool
elm_animation_view_play_back(Efl_Ui_Animation_View *obj)
{
   double speed = efl_player_playback_speed_get(obj);
   efl_player_playback_speed_set(obj, speed < 0 ? speed * -1 : speed);
   return efl_player_playing_set(obj, EINA_TRUE);
}

EAPI Eina_Bool
elm_animation_view_pause(Efl_Ui_Animation_View *obj)
{
   return efl_player_paused_set(obj, EINA_TRUE);
}

EAPI Eina_Bool
elm_animation_view_resume(Efl_Ui_Animation_View *obj)
{
   return efl_player_paused_set(obj, EINA_FALSE);
}

EAPI Eina_Bool
elm_animation_view_stop(Efl_Ui_Animation_View *obj)
{
   return efl_player_playing_set(obj, EINA_FALSE);
}

EAPI Eina_Size2D
elm_animation_view_default_size_get(const Efl_Ui_Animation_View *obj)
{
   return efl_ui_animation_view_default_view_size_get(obj);
}

EAPI Eina_Bool
elm_animation_view_is_playing_back(Efl_Ui_Animation_View *obj)
{
   return (efl_ui_animation_view_state_get(obj) == EFL_UI_ANIMATION_VIEW_STATE_PLAYING_BACKWARDS);
}

EAPI int
elm_animation_view_frame_count_get(const Efl_Ui_Animation_View *obj)
{
   return efl_ui_animation_view_frame_count_get(obj);
}

EAPI void
elm_animation_view_min_progress_set(Efl_Ui_Animation_View *obj, double min_progress)
{
   efl_ui_animation_view_min_progress_set(obj, min_progress);
}

EAPI double
elm_animation_view_min_progress_get(const Efl_Ui_Animation_View *obj)
{
   return efl_ui_animation_view_min_progress_get(obj);
}

EAPI void
elm_animation_view_max_progress_set(Efl_Ui_Animation_View *obj, double max_progress)
{
   efl_ui_animation_view_max_progress_set(obj, max_progress);
}

EAPI double
elm_animation_view_max_progress_get(const Efl_Ui_Animation_View *obj)
{
   return efl_ui_animation_view_max_progress_get(obj);
}

EAPI void
elm_animation_view_min_frame_set(Efl_Ui_Animation_View *obj, int min_frame)
{
   efl_ui_animation_view_min_frame_set(obj, min_frame);
}

EAPI int
elm_animation_view_min_frame_get(const Efl_Ui_Animation_View *obj)
{
   return efl_ui_animation_view_min_frame_get(obj);
}

EAPI void
elm_animation_view_max_frame_set(Efl_Ui_Animation_View *obj, int max_frame)
{
   efl_ui_animation_view_max_frame_set(obj, max_frame);
}

EAPI int
elm_animation_view_max_frame_get(const Efl_Ui_Animation_View *obj)
{
   return efl_ui_animation_view_max_frame_get(obj);
}