summaryrefslogtreecommitdiff
path: root/src/lib/evas/Evas_Legacy.h
diff options
context:
space:
mode:
authorRafael Antognolli <rafael.antognolli@intel.com>2013-05-03 15:43:31 -0300
committerRafael Antognolli <rafael.antognolli@intel.com>2013-05-03 16:45:33 -0300
commitf09e493bc2bb9fed67b2d6e2faa4f19142394191 (patch)
treebf3b142295382a422727c28b15940b27e7d0022e /src/lib/evas/Evas_Legacy.h
parentf769128dcad91da002529ee9e2a27f82c828461d (diff)
evas/events: Add evas_event_input_mouse_move().
This function should be used internally by the input system (Ecore_Evas_Input) to feed Evas with move events. The x,y event info is relative to the base of the window/surface, instead of the 0,0 of the canvas. This case only happens for now under Wayland, where the 0,0 of the canvas is translated due to the window decorations that are drawn by the client.
Diffstat (limited to '')
-rw-r--r--src/lib/evas/Evas_Legacy.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/evas/Evas_Legacy.h b/src/lib/evas/Evas_Legacy.h
index 7c282bcb12..8e59c9c820 100644
--- a/src/lib/evas/Evas_Legacy.h
+++ b/src/lib/evas/Evas_Legacy.h
@@ -1105,6 +1105,27 @@ EAPI void evas_event_feed_mouse_down(Evas *e, int b, Evas_Button_Flags flags, un
1105EAPI void evas_event_feed_mouse_up(Evas *e, int b, Evas_Button_Flags flags, unsigned int timestamp, const void *data) EINA_ARG_NONNULL(1); 1105EAPI void evas_event_feed_mouse_up(Evas *e, int b, Evas_Button_Flags flags, unsigned int timestamp, const void *data) EINA_ARG_NONNULL(1);
1106 1106
1107/** 1107/**
1108 * Mouse move event feed from input.
1109 *
1110 * @param e The given canvas pointer.
1111 * @param x The horizontal position of the mouse pointer relative to the 0,0 of
1112 * the window/surface.
1113 * @param y The vertical position of the mouse pointer relative to the 0,0 of
1114 * the window/surface.
1115 * @param timestamp The timestamp of the mouse move event.
1116 * @param data The data for canvas.
1117 *
1118 * Similar to the evas_event_feed_mouse_move(), this function will inform Evas
1119 * about mouse move events which were received by the input system, relative to
1120 * the 0,0 of the window, not to the canvas 0,0. It will take care of doing any
1121 * special transformation like adding the framespace offset to the mouse event.
1122 *
1123 * @since 1.8
1124 * @see evas_event_feed_mouse_move
1125 */
1126EAPI void evas_event_input_mouse_move(Evas *e, int x, int y, unsigned int timestamp, const void *data) EINA_ARG_NONNULL(1);
1127
1128/**
1108 * Mouse move event feed. 1129 * Mouse move event feed.
1109 * 1130 *
1110 * @param e The given canvas pointer. 1131 * @param e The given canvas pointer.