2019-04-28 03:28:55 -07:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "elementary_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <Efl_Ui.h>
|
|
|
|
#include "elm_priv.h"
|
|
|
|
|
|
|
|
typedef struct {
|
2019-12-03 03:00:20 -08:00
|
|
|
|
2020-02-14 10:02:14 -08:00
|
|
|
} Efl_Ui_Spotlight_Fade_Manager_Data;
|
2019-04-28 03:28:55 -07:00
|
|
|
|
2020-02-14 10:02:14 -08:00
|
|
|
EOLIAN static Efl_Object*
|
|
|
|
_efl_ui_spotlight_fade_manager_efl_object_constructor(Eo *obj, Efl_Ui_Spotlight_Fade_Manager_Data *pd EINA_UNUSED)
|
2019-04-28 03:28:55 -07:00
|
|
|
{
|
2020-02-14 10:02:14 -08:00
|
|
|
Efl_Canvas_Animation *animation;
|
2019-04-28 03:28:55 -07:00
|
|
|
|
2020-02-14 10:02:14 -08:00
|
|
|
obj = efl_constructor(efl_super(obj, EFL_UI_SPOTLIGHT_FADE_MANAGER_CLASS));
|
2019-04-28 03:28:55 -07:00
|
|
|
|
2020-02-14 10:02:14 -08:00
|
|
|
animation = efl_add(EFL_CANVAS_ALPHA_ANIMATION_CLASS, obj);
|
|
|
|
efl_animation_alpha_set(animation, 0.0, 1.0);
|
|
|
|
efl_animation_duration_set(animation, 0.5);
|
2020-01-21 02:32:34 -08:00
|
|
|
|
2020-02-14 10:02:14 -08:00
|
|
|
efl_ui_spotlight_manager_animation_jump_setup_set(obj, animation, animation);
|
|
|
|
efl_unref(animation);
|
2020-01-21 02:32:34 -08:00
|
|
|
|
2020-02-14 10:02:14 -08:00
|
|
|
return obj;
|
2019-04-28 03:28:55 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-01-22 19:55:16 -08:00
|
|
|
#include "efl_ui_spotlight_fade_manager.eo.c"
|