From: raster Date: Mon, 18 Jan 2010 09:46:45 +0000 (+0000) Subject: map source api - nothing implemented. for future expansion. X-Git-Tag: submit/trunk/20120815.174732~2985 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d685ec6b6c746376e7c8d6094361994ffe8c4258;p=profile%2Fivi%2Fevas.git map source api - nothing implemented. for future expansion. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@45281 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- 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. *