From f0d1212c1fa119627eb9175dd05a4dd8ac425bae Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 27 Sep 2018 18:35:19 +0900 Subject: [PATCH] evas/vg: add legacy api - evas_object_vg_mmap_set() Change-Id: Iaacf5db82da7332e3717cb9eaf08b8a76d61d5b1 --- src/lib/evas/Evas_Legacy.h | 17 +++++++++++++++++ src/lib/evas/canvas/efl_canvas_vg.c | 6 ++++++ 2 files changed, 23 insertions(+) diff --git a/src/lib/evas/Evas_Legacy.h b/src/lib/evas/Evas_Legacy.h index 8a64694..0882175 100755 --- a/src/lib/evas/Evas_Legacy.h +++ b/src/lib/evas/Evas_Legacy.h @@ -3648,6 +3648,23 @@ EAPI Evas_Object *evas_object_vg_add(Evas *e) EINA_WARN_UNUSED_RESULT EINA_ARG_N EAPI int evas_object_vg_animated_frame_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); /** + * + * Set the source mmaped file from where an vector object must fetch the real + * vector data (it must be an Eina_File). + * + * If the file supports multiple data stored in it (as Eet files do), + * you can specify the key to be used as the index of the image in + * this file. + * + * @since 1.22 + * + * @param[in] f The mmaped file + * @param[in] key The vg key in @p file (if its an Eet one), or @c +NULL, otherwise. + */ +EAPI Eina_Bool evas_object_vg_mmap_set(Evas_Object *obj, const Eina_File *f, char *key); + +/** * Set the frame to current frame of an animated vector. * * @param[in] frame_index The index of current frame. diff --git a/src/lib/evas/canvas/efl_canvas_vg.c b/src/lib/evas/canvas/efl_canvas_vg.c index 94de192..a3401ba 100644 --- a/src/lib/evas/canvas/efl_canvas_vg.c +++ b/src/lib/evas/canvas/efl_canvas_vg.c @@ -990,4 +990,10 @@ evas_object_vg_animated_frame_set(Evas_Object *obj, int frame_index) return efl_gfx_image_animated_frame_set(obj, frame_index); } +EAPI Eina_Bool +evas_object_vg_mmap_set(Evas_Object *obj, const Eina_File *f, char *key) +{ + return efl_file_mmap_set(obj, f, key); +} + #include "efl_canvas_vg.eo.c" -- 2.7.4