jsuya pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=f1275e86f49b7a798550f57a13495ec0c3d2805b
commit f1275e86f49b7a798550f57a13495ec0c3d2805b Author: JunsuChoi <jsuya.c...@samsung.com> Date: Tue Nov 26 10:54:37 2019 +0900 Efl.Canvas.Image: Add skeleton code Efl.Gfx.Frame_Controller.sector Summary: Sector is a property with start, end frame and sector name information that can be used when playing a specific section. Sector play is not supported for Efl.Canvas.Image yet. So we add skeleton code with comments. This is also for full implements of the Efl.Gfx.Frame_Controller interface. Test Plan: N/A Reviewers: Hermet, bu5hm4n Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10718 --- src/lib/evas/canvas/efl_canvas_image.c | 22 ++++++++++++++++++++++ src/lib/evas/canvas/efl_canvas_image.eo | 1 + 2 files changed, 23 insertions(+) diff --git a/src/lib/evas/canvas/efl_canvas_image.c b/src/lib/evas/canvas/efl_canvas_image.c index 9b19be0775..1bdd5329ec 100644 --- a/src/lib/evas/canvas/efl_canvas_image.c +++ b/src/lib/evas/canvas/efl_canvas_image.c @@ -517,6 +517,28 @@ _efl_canvas_image_efl_gfx_frame_controller_frame_duration_get(const Eo *eo_obj, return _evas_image_animated_frame_duration_get(eo_obj, start_frame, frame_num); } +Eina_Bool _efl_canvas_image_efl_gfx_frame_controller_sector_set(Eo *obj EINA_UNUSED, + void *_pd EINA_UNUSED, + const char *name EINA_UNUSED, + int startframe EINA_UNUSED, + int endframe EINA_UNUSED) +{ + // TODO: We need to implement the feature to section playback of image animation. + ERR("efl_gfx_frame_controller_sector_set not implemented for efl_canvas_image yet."); + return EINA_FALSE; +} + +Eina_Bool _efl_canvas_image_efl_gfx_frame_controller_sector_get(const Eo *obj EINA_UNUSED, + void *_pd EINA_UNUSED, + const char *name EINA_UNUSED, + int *startframe EINA_UNUSED, + int *endframe EINA_UNUSED) +{ + // TODO: We need to implement the feature to section playback of image animation. + ERR("efl_gfx_frame_controller_sector_get not implemented for efl_canvas_image yet."); + return EINA_FALSE; +} + Eina_Bool _evas_image_animated_frame_set(Eo *eo_obj, int frame_index) { diff --git a/src/lib/evas/canvas/efl_canvas_image.eo b/src/lib/evas/canvas/efl_canvas_image.eo index 428a1f900a..72e1894f61 100644 --- a/src/lib/evas/canvas/efl_canvas_image.eo +++ b/src/lib/evas/canvas/efl_canvas_image.eo @@ -24,6 +24,7 @@ class @beta Efl.Canvas.Image extends Efl.Canvas.Image_Internal implements Efl.Gfx.Frame_Controller.loop_type { get; } Efl.Gfx.Frame_Controller.loop_count { get; } Efl.Gfx.Frame_Controller.frame_duration { get; } + Efl.Gfx.Frame_Controller.sector { set; get; } Efl.Gfx.Image_Load_Controller.load_async_start; Efl.Gfx.Image_Load_Controller.load_async_cancel; Efl.Gfx.Image_Load_Controller.load_dpi { get; set; } --