diff options
author | JunsuChoi <jsuya.choi@samsung.com> | 2019-11-26 10:54:37 +0900 |
---|---|---|
committer | JunsuChoi <jsuya.choi@samsung.com> | 2019-11-26 11:01:28 +0900 |
commit | f1275e86f49b7a798550f57a13495ec0c3d2805b (patch) | |
tree | d5100d03bf209361ebd22a95ca473d434180cfd6 | |
parent | f7868fd28cfc2a941601cd11e4598abf77e17c6c (diff) | |
download | efl-f1275e86f49b7a798550f57a13495ec0c3d2805b.tar.gz |
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
-rw-r--r-- | src/lib/evas/canvas/efl_canvas_image.c | 22 | ||||
-rw-r--r-- | src/lib/evas/canvas/efl_canvas_image.eo | 1 |
2 files changed, 23 insertions, 0 deletions
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; } |