summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-06-28 14:42:28 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-06-28 14:42:28 -0700
commitc1331adbdc65788c29567009ffa60353aa1959ab (patch)
treeb8fbdb3bc19b439fb1d70142db8fab9af2656f73
parentdfd5349f0cdbfecb747a318a2718c9e5171bbcc8 (diff)
downloadefl-c1331adbdc65788c29567009ffa60353aa1959ab.tar.gz
evas: expose evas_map_coords_get.
-rw-r--r--src/lib/evas/Evas_Legacy.h14
-rw-r--r--src/lib/evas/canvas/evas_map.c2
2 files changed, 15 insertions, 1 deletions
diff --git a/src/lib/evas/Evas_Legacy.h b/src/lib/evas/Evas_Legacy.h
index c07cecd058..72eaa6adb9 100644
--- a/src/lib/evas/Evas_Legacy.h
+++ b/src/lib/evas/Evas_Legacy.h
@@ -7534,6 +7534,20 @@ EAPI void evas_map_free(Evas_Map *m);
EAPI int evas_map_count_get(const Evas_Map *m) EINA_CONST;
/**
+ * Apply a map transformation on given coordinate
+ *
+ * @param m map to use to transform x and y
+ * @param x point x source coordinate
+ * @param y point y source coordinate
+ * @param mx point x after transformation by m
+ * @param my point y after transformation by m
+ * @param grab
+ * @return #EINA_TRUE on success interpolation, @EINA_FALSE otherwise
+ */
+EAPI Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y,
+ double *mx, double *my, int grab);
+
+/**
* Change the map point's coordinate.
*
* This sets the fixed point's coordinate in the map. Note that points
diff --git a/src/lib/evas/canvas/evas_map.c b/src/lib/evas/canvas/evas_map.c
index 6e81c771eb..0283762e2d 100644
--- a/src/lib/evas/canvas/evas_map.c
+++ b/src/lib/evas/canvas/evas_map.c
@@ -239,7 +239,7 @@ _evas_map_free(Evas_Object *eo_obj, Evas_Map *m)
free(m);
}
-Eina_Bool
+EAPI Eina_Bool
evas_map_coords_get(const Evas_Map *m, double x, double y,
double *mx, double *my, int grab)
{