forked from enlightenment/efl
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
This commit is contained in:
parent
f7868fd28c
commit
f1275e86f4
|
@ -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);
|
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
|
Eina_Bool
|
||||||
_evas_image_animated_frame_set(Eo *eo_obj, int frame_index)
|
_evas_image_animated_frame_set(Eo *eo_obj, int frame_index)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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_type { get; }
|
||||||
Efl.Gfx.Frame_Controller.loop_count { get; }
|
Efl.Gfx.Frame_Controller.loop_count { get; }
|
||||||
Efl.Gfx.Frame_Controller.frame_duration { 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_start;
|
||||||
Efl.Gfx.Image_Load_Controller.load_async_cancel;
|
Efl.Gfx.Image_Load_Controller.load_async_cancel;
|
||||||
Efl.Gfx.Image_Load_Controller.load_dpi { get; set; }
|
Efl.Gfx.Image_Load_Controller.load_dpi { get; set; }
|
||||||
|
|
Loading…
Reference in New Issue