efl: add Efl.Core.Animator interface.

This commit is contained in:
Cedric BAIL 2016-01-28 16:12:39 -08:00
parent 08212c3c4b
commit e405afb2f9
4 changed files with 16 additions and 0 deletions

View File

@ -19,6 +19,7 @@ efl_eolian_files = \
lib/efl/interfaces/efl_gfx_gradient_radial.eo \
lib/efl/interfaces/efl_gfx_filter.eo \
lib/efl/interfaces/efl_model_base.eo \
lib/efl/interfaces/efl_core_animator.eo \
$(efl_eolian_legacy_files) \
$(NULL)

View File

@ -175,6 +175,9 @@ struct _Efl_Gfx_Shape_Public
#include "interfaces/efl_text.eo.h"
#include "interfaces/efl_text_properties.eo.h"
/* Core interface */
#include "interfaces/efl_core_animator.eo.h"
EAPI extern const Eo_Event_Description _EFL_GFX_CHANGED;
EAPI extern const Eo_Event_Description _EFL_GFX_PATH_CHANGED;

View File

@ -0,0 +1,11 @@
struct Efl.Core.Event.Animator_Tick {
update_area: Eina.Rectangle; [[Area of the canvas that will be pushed to screen.]]
}
interface Efl.Core.Animator {
legacy_prefix: null;
eo_prefix: efl_animator;
events {
animator,tick: Efl.Core.Event.Animator_Tick; [[Animator tick synchronized with screen vsync if possible.]]
}
}

View File

@ -29,3 +29,4 @@ EAPI const Eo_Event_Description _EFL_GFX_PATH_CHANGED =
EO_EVENT_DESCRIPTION("Graphics path changed");
#include "interfaces/efl_model_base.eo.c"
#include "interfaces/efl_core_animator.eo.c"