aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/evas/src
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2005-11-06 09:47:28 +0000
committerCarsten Haitzler <raster@rasterman.com>2005-11-06 09:47:28 +0000
commitd1861a8d4c20c7b39076729ee971adacbfdeb129 (patch)
tree1e672a38a7e4be1375888283487b93d03a19c0c3 /legacy/evas/src
parentfix leakies (diff)
downloadefl-d1861a8d4c20c7b39076729ee971adacbfdeb129.tar.gz
add a call
SVN revision: 18336
Diffstat (limited to 'legacy/evas/src')
-rw-r--r--legacy/evas/src/lib/Evas.h3
-rw-r--r--legacy/evas/src/lib/canvas/evas_main.c30
-rw-r--r--legacy/evas/src/lib/include/evas_private.h1
3 files changed, 34 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/Evas.h b/legacy/evas/src/lib/Evas.h
index 6cb3609854..7843c33d19 100644
--- a/legacy/evas/src/lib/Evas.h
+++ b/legacy/evas/src/lib/Evas.h
@@ -340,6 +340,9 @@ extern "C" {
EAPI void evas_pointer_canvas_xy_get (Evas *e, Evas_Coord *x, Evas_Coord *y);
EAPI int evas_pointer_button_down_mask_get (Evas *e);
EAPI Evas_Bool evas_pointer_inside_get (Evas *e);
+ EAPI void evas_data_attach_set (Evas *e, void *data);
+ EAPI void *evas_data_attach_get (Evas *e);
+
/* DOC UP TO HERE */
EAPI void evas_damage_rectangle_add (Evas *e, int x, int y, int w, int h);
EAPI void evas_obscured_rectangle_add (Evas *e, int x, int y, int w, int h);
diff --git a/legacy/evas/src/lib/canvas/evas_main.c b/legacy/evas/src/lib/canvas/evas_main.c
index 4d162490b5..a73865d972 100644
--- a/legacy/evas/src/lib/canvas/evas_main.c
+++ b/legacy/evas/src/lib/canvas/evas_main.c
@@ -983,3 +983,33 @@ evas_pointer_inside_get(Evas *e)
MAGIC_CHECK_END();
return (int)e->pointer.inside;
}
+
+/**
+ * Attaches a specific pointer to the evas for fetching later
+ *
+ * @param e The canvas to attach the pointer to
+ * @param data The pointer to attach
+ */
+void
+evas_data_attach_set(Evas *e, void *data)
+{
+ MAGIC_CHECK(e, Evas, MAGIC_EVAS);
+ return;
+ MAGIC_CHECK_END();
+ e->attach_data = data;
+}
+
+/**
+ * Returns the pointer attached by evas_data_attach_set()
+ *
+ * @param e The canvas to attach the pointer to
+ * @return The pointer attached
+ */
+void *
+evas_data_attach_get(Evas *e)
+{
+ MAGIC_CHECK(e, Evas, MAGIC_EVAS);
+ return NULL;
+ MAGIC_CHECK_END();
+ return e->attach_data;
+}
diff --git a/legacy/evas/src/lib/include/evas_private.h b/legacy/evas/src/lib/include/evas_private.h
index e64fb9fe7a..c48a66a073 100644
--- a/legacy/evas/src/lib/include/evas_private.h
+++ b/legacy/evas/src/lib/include/evas_private.h
@@ -273,6 +273,7 @@ struct _Evas
Evas_Modifier modifiers;
Evas_Lock locks;
unsigned int last_timestamp;
+ void *attach_data;
};
struct _Evas_Layer