efl_ui_animation_view: introduce a new widget for controlling vector animation.
Summary:
This is a new convenient ui control that designed to load vector resources
-svg, json-, and control animations if it supports.
Please turn on evas-loaders-json in meson options,
if you'd like to use Lottie Animation.
Co-authored-by: JunsuChoi <jsuya.choi@samsung.com>
@feature
Reviewers: #committers, jsuya, zmike, bu5hm4n
Reviewed By: #committers, bu5hm4n
Subscribers: zmike, bu5hm4n, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9451
2019-08-21 01:39:43 -07:00
|
|
|
#ifndef EFL_UI_ANIMATION_VIEW_PRIVATE_H
|
|
|
|
#define EFL_UI_ANIMATION_VIEW_PRIVATE_H
|
|
|
|
|
|
|
|
#include "Elementary.h"
|
|
|
|
#include "efl_ui_animation_view.eo.h"
|
|
|
|
|
|
|
|
typedef struct _Efl_Ui_Animation_View_Data Efl_Ui_Animation_View_Data;
|
|
|
|
|
|
|
|
struct _Efl_Ui_Animation_View_Data
|
|
|
|
{
|
|
|
|
Eo* vg; //Evas_Object_Vg
|
|
|
|
Efl_Ui_Animation_View_State state;
|
|
|
|
Elm_Transit *transit;
|
|
|
|
Eina_Stringshare *file;
|
|
|
|
double speed;
|
|
|
|
double progress;
|
|
|
|
double frame_cnt;
|
|
|
|
int repeat_times;
|
|
|
|
double frame_duration;
|
|
|
|
double min_progress;
|
|
|
|
double max_progress;
|
2019-10-01 21:21:35 -07:00
|
|
|
Eina_List *vp_list;
|
efl_ui_animation_view: introduce a new widget for controlling vector animation.
Summary:
This is a new convenient ui control that designed to load vector resources
-svg, json-, and control animations if it supports.
Please turn on evas-loaders-json in meson options,
if you'd like to use Lottie Animation.
Co-authored-by: JunsuChoi <jsuya.choi@samsung.com>
@feature
Reviewers: #committers, jsuya, zmike, bu5hm4n
Reviewed By: #committers, bu5hm4n
Subscribers: zmike, bu5hm4n, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9451
2019-08-21 01:39:43 -07:00
|
|
|
|
|
|
|
Eina_Bool play_back : 1;
|
|
|
|
Eina_Bool auto_play : 1;
|
|
|
|
Eina_Bool auto_play_pause: 1;
|
|
|
|
Eina_Bool auto_repeat : 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define EFL_UI_ANIMATION_VIEW_DATA_GET(o, sd) \
|
|
|
|
Efl_Ui_Animation_View_Data * sd = efl_data_scope_safe_get(o, EFL_UI_ANIMATION_VIEW_CLASS)
|
|
|
|
|
|
|
|
#define EFL_UI_ANIMATION_VIEW_DATA_GET_OR_RETURN(o, ptr) \
|
|
|
|
EFL_UI_ANIMATION_VIEW_DATA_GET(o, ptr); \
|
|
|
|
if (EINA_UNLIKELY(!ptr)) \
|
|
|
|
{ \
|
|
|
|
ERR("No widget data for object %p (%s)", \
|
|
|
|
o, evas_object_type_get(o)); \
|
|
|
|
return; \
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|