summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_callbacks.c
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2013-05-06 13:08:39 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2013-05-06 13:18:50 +0300
commitf30370fe521b1d3ef4829207e0fbc5b8b122ebeb (patch)
treed3fb7b2979f042fe54bdc73addd0d496c237fb06 /src/lib/evas/canvas/evas_callbacks.c
parent753978e65dd71cd02e1a7a15c8d4c100914b4750 (diff)
efl: rename the Eo events for Evas objects and evas canvas.
Diffstat (limited to 'src/lib/evas/canvas/evas_callbacks.c')
-rw-r--r--src/lib/evas/canvas/evas_callbacks.c139
1 files changed, 70 insertions, 69 deletions
diff --git a/src/lib/evas/canvas/evas_callbacks.c b/src/lib/evas/canvas/evas_callbacks.c
index b482913b3e..321dca1bfa 100644
--- a/src/lib/evas/canvas/evas_callbacks.c
+++ b/src/lib/evas/canvas/evas_callbacks.c
@@ -7,111 +7,112 @@ EVAS_MEMPOOL(_mp_pc);
7 7
8extern Eina_Hash* signals_hash_table; 8extern Eina_Hash* signals_hash_table;
9 9
10EAPI const Eo_Event_Description _EVAS_EVENT_MOUSE_IN = 10EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MOUSE_IN =
11 EO_EVENT_DESCRIPTION("Mouse In", "Mouse In Event"); 11 EO_EVENT_DESCRIPTION("Mouse In", "Mouse In Event");
12EAPI const Eo_Event_Description _EVAS_EVENT_MOUSE_OUT = 12EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MOUSE_OUT =
13 EO_EVENT_DESCRIPTION("Mouse Out", "Mouse Out Event"); 13 EO_EVENT_DESCRIPTION("Mouse Out", "Mouse Out Event");
14EAPI const Eo_Event_Description _EVAS_EVENT_MOUSE_DOWN = 14EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MOUSE_DOWN =
15 EO_EVENT_DESCRIPTION("Mouse Down", "Mouse Button Down Event"); 15 EO_EVENT_DESCRIPTION("Mouse Down", "Mouse Button Down Event");
16EAPI const Eo_Event_Description _EVAS_EVENT_MOUSE_UP = 16EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MOUSE_UP =
17 EO_EVENT_DESCRIPTION("Mouse Up", "Mouse Button Up Event"); 17 EO_EVENT_DESCRIPTION("Mouse Up", "Mouse Button Up Event");
18EAPI const Eo_Event_Description _EVAS_EVENT_MOUSE_MOVE = 18EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MOUSE_MOVE =
19 EO_EVENT_DESCRIPTION("Mouse Move", "Mouse Move Event"); 19 EO_EVENT_DESCRIPTION("Mouse Move", "Mouse Move Event");
20EAPI const Eo_Event_Description _EVAS_EVENT_MOUSE_WHEEL = 20EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MOUSE_WHEEL =
21 EO_EVENT_DESCRIPTION("Mouse Wheel", "Mouse Wheel Event"); 21 EO_EVENT_DESCRIPTION("Mouse Wheel", "Mouse Wheel Event");
22EAPI const Eo_Event_Description _EVAS_EVENT_MULTI_DOWN = 22EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MULTI_DOWN =
23 EO_EVENT_DESCRIPTION("Multi Down", "Mouse-touch Down Event"); 23 EO_EVENT_DESCRIPTION("Multi Down", "Mouse-touch Down Event");
24EAPI const Eo_Event_Description _EVAS_EVENT_MULTI_UP = 24EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MULTI_UP =
25 EO_EVENT_DESCRIPTION("Multi Up", "Mouse-touch Up Event"); 25 EO_EVENT_DESCRIPTION("Multi Up", "Mouse-touch Up Event");
26EAPI const Eo_Event_Description _EVAS_EVENT_MULTI_MOVE = 26EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MULTI_MOVE =
27 EO_EVENT_DESCRIPTION("Multi Move", "Multi-touch Move Event"); 27 EO_EVENT_DESCRIPTION("Multi Move", "Multi-touch Move Event");
28EAPI const Eo_Event_Description _EVAS_EVENT_FREE = 28EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_FREE =
29 EO_EVENT_DESCRIPTION("Free", "Object Being Freed (Called after Del)"); 29 EO_EVENT_DESCRIPTION("Free", "Object Being Freed (Called after Del)");
30EAPI const Eo_Event_Description _EVAS_EVENT_KEY_DOWN = 30EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_KEY_DOWN =
31 EO_EVENT_DESCRIPTION("Key Down", "Key Press Event"); 31 EO_EVENT_DESCRIPTION("Key Down", "Key Press Event");
32EAPI const Eo_Event_Description _EVAS_EVENT_KEY_UP = 32EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_KEY_UP =
33 EO_EVENT_DESCRIPTION("Key Up", "Key Release Event"); 33 EO_EVENT_DESCRIPTION("Key Up", "Key Release Event");
34EAPI const Eo_Event_Description _EVAS_EVENT_FOCUS_IN = 34EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_FOCUS_IN =
35 EO_EVENT_DESCRIPTION("Focus In", "Focus In Event"); 35 EO_EVENT_DESCRIPTION("Focus In", "Focus In Event");
36EAPI const Eo_Event_Description _EVAS_EVENT_FOCUS_OUT = 36EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_FOCUS_OUT =
37 EO_EVENT_DESCRIPTION("Focus Out", "Focus Out Event"); 37 EO_EVENT_DESCRIPTION("Focus Out", "Focus Out Event");
38EAPI const Eo_Event_Description _EVAS_EVENT_SHOW = 38EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_SHOW =
39 EO_EVENT_DESCRIPTION("Show", "Show Event"); 39 EO_EVENT_DESCRIPTION("Show", "Show Event");
40EAPI const Eo_Event_Description _EVAS_EVENT_HIDE = 40EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_HIDE =
41 EO_EVENT_DESCRIPTION("Hide", "Hide Event"); 41 EO_EVENT_DESCRIPTION("Hide", "Hide Event");
42EAPI const Eo_Event_Description _EVAS_EVENT_MOVE = 42EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MOVE =
43 EO_EVENT_DESCRIPTION("Move", "Move Event"); 43 EO_EVENT_DESCRIPTION("Move", "Move Event");
44EAPI const Eo_Event_Description _EVAS_EVENT_RESIZE = 44EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_RESIZE =
45 EO_EVENT_DESCRIPTION("Resize", "Resize Event"); 45 EO_EVENT_DESCRIPTION("Resize", "Resize Event");
46EAPI const Eo_Event_Description _EVAS_EVENT_RESTACK = 46EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_RESTACK =
47 EO_EVENT_DESCRIPTION("Restack", "Restack Event"); 47 EO_EVENT_DESCRIPTION("Restack", "Restack Event");
48EAPI const Eo_Event_Description _EVAS_EVENT_DEL = 48EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_DEL =
49 EO_EVENT_DESCRIPTION("Del", "Object Being Deleted (called before Free)"); 49 EO_EVENT_DESCRIPTION("Del", "Object Being Deleted (called before Free)");
50EAPI const Eo_Event_Description _EVAS_EVENT_HOLD = 50EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_HOLD =
51 EO_EVENT_DESCRIPTION("Hold", "Events go on/off hold"); 51 EO_EVENT_DESCRIPTION("Hold", "Events go on/off hold");
52EAPI const Eo_Event_Description _EVAS_EVENT_CHANGED_SIZE_HINTS = 52EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_CHANGED_SIZE_HINTS =
53 EO_EVENT_DESCRIPTION("Changed Size Hints", "Size hints changed event"); 53 EO_EVENT_DESCRIPTION("Changed Size Hints", "Size hints changed event");
54EAPI const Eo_Event_Description _EVAS_EVENT_IMAGE_PRELOADED = 54EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_IMAGE_PRELOADED =
55 EO_EVENT_DESCRIPTION("Image Preloaded", "Image has been preloaded"); 55 EO_EVENT_DESCRIPTION("Image Preloaded", "Image has been preloaded");
56EAPI const Eo_Event_Description _EVAS_EVENT_IMAGE_RESIZE= 56EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_IMAGE_RESIZE=
57 EO_EVENT_DESCRIPTION("Image Resize", "Image resize"); 57 EO_EVENT_DESCRIPTION("Image Resize", "Image resize");
58EAPI const Eo_Event_Description _EVAS_EVENT_CANVAS_FOCUS_IN = 58EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_IMAGE_UNLOADED =
59 EO_EVENT_DESCRIPTION("Image Unloaded", "Image data has been unloaded (by some mechanism in Evas that throw out original image data)");
60EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_RENDER_PRE =
61 EO_EVENT_DESCRIPTION("Render Pre", "Called just before rendering starts on the canvas target @since 1.2");
62EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_RENDER_POST =
63 EO_EVENT_DESCRIPTION("Render Post", "Called just after rendering stops on the canvas target @since 1.2");
64
65EAPI const Eo_Event_Description _EVAS_CANVAS_EVENT_FOCUS_IN =
59 EO_EVENT_DESCRIPTION("Canvas Focus In", "Canvas got focus as a whole"); 66 EO_EVENT_DESCRIPTION("Canvas Focus In", "Canvas got focus as a whole");
60EAPI const Eo_Event_Description _EVAS_EVENT_CANVAS_FOCUS_OUT = 67EAPI const Eo_Event_Description _EVAS_CANVAS_EVENT_FOCUS_OUT =
61 EO_EVENT_DESCRIPTION("Canvas Focus Out", "Canvas lost focus as a whole"); 68 EO_EVENT_DESCRIPTION("Canvas Focus Out", "Canvas lost focus as a whole");
62EAPI const Eo_Event_Description _EVAS_EVENT_RENDER_FLUSH_PRE = 69EAPI const Eo_Event_Description _EVAS_CANVAS_EVENT_RENDER_FLUSH_PRE =
63 EO_EVENT_DESCRIPTION("Render Flush Pre", "Called just before rendering is updated on the canvas target"); 70 EO_EVENT_DESCRIPTION("Render Flush Pre", "Called just before rendering is updated on the canvas target");
64EAPI const Eo_Event_Description _EVAS_EVENT_RENDER_FLUSH_POST = 71EAPI const Eo_Event_Description _EVAS_CANVAS_EVENT_RENDER_FLUSH_POST =
65 EO_EVENT_DESCRIPTION("Render Flush Post", "Called just after rendering is updated on the canvas target"); 72 EO_EVENT_DESCRIPTION("Render Flush Post", "Called just after rendering is updated on the canvas target");
66EAPI const Eo_Event_Description _EVAS_EVENT_CANVAS_OBJECT_FOCUS_IN = 73EAPI const Eo_Event_Description _EVAS_CANVAS_EVENT_OBJECT_FOCUS_IN =
67 EO_EVENT_DESCRIPTION("Canvas Object Focus In", "Canvas object got focus"); 74 EO_EVENT_DESCRIPTION("Canvas Object Focus In", "Canvas object got focus");
68EAPI const Eo_Event_Description _EVAS_EVENT_CANVAS_OBJECT_FOCUS_OUT = 75EAPI const Eo_Event_Description _EVAS_CANVAS_EVENT_OBJECT_FOCUS_OUT =
69 EO_EVENT_DESCRIPTION("Canvas Object Focus Out", "Canvas object lost focus"); 76 EO_EVENT_DESCRIPTION("Canvas Object Focus Out", "Canvas object lost focus");
70EAPI const Eo_Event_Description _EVAS_EVENT_IMAGE_UNLOADED =
71 EO_EVENT_DESCRIPTION("Image Unloaded", "Image data has been unloaded (by some mechanism in Evas that throw out original image data)");
72EAPI const Eo_Event_Description _EVAS_EVENT_RENDER_PRE =
73 EO_EVENT_DESCRIPTION("Render Pre", "Called just before rendering starts on the canvas target @since 1.2");
74EAPI const Eo_Event_Description _EVAS_EVENT_RENDER_POST =
75 EO_EVENT_DESCRIPTION("Render Post", "Called just after rendering stops on the canvas target @since 1.2");
76 77
77/** 78/**
78 * Evas events descriptions for Eo. 79 * Evas events descriptions for Eo.
79 */ 80 */
80static const Eo_Event_Description *_legacy_evas_callback_table[EVAS_CALLBACK_LAST] = 81static const Eo_Event_Description *_legacy_evas_callback_table[EVAS_CALLBACK_LAST] =
81{ 82{
82 EVAS_EVENT_MOUSE_IN, 83 EVAS_OBJECT_EVENT_MOUSE_IN,
83 EVAS_EVENT_MOUSE_OUT, 84 EVAS_OBJECT_EVENT_MOUSE_OUT,
84 EVAS_EVENT_MOUSE_DOWN, 85 EVAS_OBJECT_EVENT_MOUSE_DOWN,
85 EVAS_EVENT_MOUSE_UP, 86 EVAS_OBJECT_EVENT_MOUSE_UP,
86 EVAS_EVENT_MOUSE_MOVE, 87 EVAS_OBJECT_EVENT_MOUSE_MOVE,
87 EVAS_EVENT_MOUSE_WHEEL, 88 EVAS_OBJECT_EVENT_MOUSE_WHEEL,
88 EVAS_EVENT_MULTI_DOWN, 89 EVAS_OBJECT_EVENT_MULTI_DOWN,
89 EVAS_EVENT_MULTI_UP, 90 EVAS_OBJECT_EVENT_MULTI_UP,
90 EVAS_EVENT_MULTI_MOVE, 91 EVAS_OBJECT_EVENT_MULTI_MOVE,
91 EVAS_EVENT_FREE, 92 EVAS_OBJECT_EVENT_FREE,
92 EVAS_EVENT_KEY_DOWN, 93 EVAS_OBJECT_EVENT_KEY_DOWN,
93 EVAS_EVENT_KEY_UP, 94 EVAS_OBJECT_EVENT_KEY_UP,
94 EVAS_EVENT_FOCUS_IN, 95 EVAS_OBJECT_EVENT_FOCUS_IN,
95 EVAS_EVENT_FOCUS_OUT, 96 EVAS_OBJECT_EVENT_FOCUS_OUT,
96 EVAS_EVENT_SHOW, 97 EVAS_OBJECT_EVENT_SHOW,
97 EVAS_EVENT_HIDE, 98 EVAS_OBJECT_EVENT_HIDE,
98 EVAS_EVENT_MOVE, 99 EVAS_OBJECT_EVENT_MOVE,
99 EVAS_EVENT_RESIZE, 100 EVAS_OBJECT_EVENT_RESIZE,
100 EVAS_EVENT_RESTACK, 101 EVAS_OBJECT_EVENT_RESTACK,
101 EVAS_EVENT_DEL, 102 EVAS_OBJECT_EVENT_DEL,
102 EVAS_EVENT_HOLD, 103 EVAS_OBJECT_EVENT_HOLD,
103 EVAS_EVENT_CHANGED_SIZE_HINTS, 104 EVAS_OBJECT_EVENT_CHANGED_SIZE_HINTS,
104 EVAS_EVENT_IMAGE_PRELOADED, 105 EVAS_OBJECT_EVENT_IMAGE_PRELOADED,
105 EVAS_EVENT_IMAGE_RESIZE, 106 EVAS_OBJECT_EVENT_IMAGE_RESIZE,
106 EVAS_EVENT_CANVAS_FOCUS_IN, 107 EVAS_CANVAS_EVENT_FOCUS_IN,
107 EVAS_EVENT_CANVAS_FOCUS_OUT, 108 EVAS_CANVAS_EVENT_FOCUS_OUT,
108 EVAS_EVENT_RENDER_FLUSH_PRE, 109 EVAS_CANVAS_EVENT_RENDER_FLUSH_PRE,
109 EVAS_EVENT_RENDER_FLUSH_POST, 110 EVAS_CANVAS_EVENT_RENDER_FLUSH_POST,
110 EVAS_EVENT_CANVAS_OBJECT_FOCUS_IN, 111 EVAS_CANVAS_EVENT_OBJECT_FOCUS_IN,
111 EVAS_EVENT_CANVAS_OBJECT_FOCUS_OUT, 112 EVAS_CANVAS_EVENT_OBJECT_FOCUS_OUT,
112 EVAS_EVENT_IMAGE_UNLOADED, 113 EVAS_OBJECT_EVENT_IMAGE_UNLOADED,
113 EVAS_EVENT_RENDER_PRE, 114 EVAS_OBJECT_EVENT_RENDER_PRE,
114 EVAS_EVENT_RENDER_POST 115 EVAS_OBJECT_EVENT_RENDER_POST
115}; 116};
116 117
117typedef struct 118typedef struct