From 55880a386ba491b64e6e2211dea20f40d65d40e4 Mon Sep 17 00:00:00 2001 From: raster Date: Mon, 18 Jan 2010 09:46:45 +0000 Subject: [PATCH] map source api - nothing implemented. for future expansion. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@45281 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/Evas.h | 2 ++ src/lib/canvas/evas_map.c | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/src/lib/Evas.h b/src/lib/Evas.h index cc70676..07f67dc 100644 --- a/src/lib/Evas.h +++ b/src/lib/Evas.h @@ -1098,6 +1098,8 @@ extern "C" { EAPI void evas_object_map_enable_set (Evas_Object *obj, Eina_Bool enabled); EAPI Eina_Bool evas_object_map_enable_get (const Evas_Object *obj); + EAPI void evas_object_map_source_set (Evas_Object *obj, Evas_Object *src); + EAPI Evas_Object *evas_object_map_source_get (const Evas_Object *obj); EAPI void evas_object_map_set (Evas_Object *obj, const Evas_Map *map); EAPI const Evas_Map *evas_object_map_get (const Evas_Object *obj); diff --git a/src/lib/canvas/evas_map.c b/src/lib/canvas/evas_map.c index 2c92663..fc556b3 100644 --- a/src/lib/canvas/evas_map.c +++ b/src/lib/canvas/evas_map.c @@ -313,6 +313,42 @@ evas_object_map_enable_get(const Evas_Object *obj) return obj->cur.usemap; } + +/** + * Set the map sourc eobject + * + * This sets the object from which the map is taken - can be any object that + * has map enabled on it. + * + * Currently not implemented. for future use. + * + * @param obj object to set the map source of + * @param src the source object from which the map is taken + */ +EAPI void +evas_object_map_source_set(Evas_Object *obj, Evas_Object *src) +{ + MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ); + return; + MAGIC_CHECK_END(); +} + +/** + * get the map source object + * + * See evas_object_map_source_set() + * + * @param obj object to set the map source of + * @return the object set as the source + */ +EAPI Evas_Object * +evas_object_map_source_get(const Evas_Object *obj) +{ + MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ); + return NULL; + MAGIC_CHECK_END(); +} + /** * Set current object transformation map. * -- 2.7.4