summaryrefslogtreecommitdiff
path: root/src/examples/elementary
diff options
context:
space:
mode:
authorWooHyun Jung <wh0705.jung@samsung.com>2019-07-29 11:42:34 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-07-29 11:43:01 +0200
commit77e268e6aba2d07b9d4b06c83515041775210c27 (patch)
treef50da1eada65a948147a62ede0cc815e66105784 /src/examples/elementary
parent9b294d6284fbda62dde20bcb31732a1c63a65962 (diff)
efl_input_clickable: rename efl_ui_clickable to efl_input_clickable
Summary: Renamed all efl_ui_clickable_XXX to efl_input_clickable_XXX based on the discussion in T7847 ref T7847 T7976 Reviewers: zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7976, T7847 Differential Revision: https://phab.enlightenment.org/D9427
Diffstat (limited to 'src/examples/elementary')
-rw-r--r--src/examples/elementary/button_cxx_example_00.cc4
-rw-r--r--src/examples/elementary/button_cxx_example_01.cc20
-rw-r--r--src/examples/elementary/efl_ui_list_example_1.c10
-rw-r--r--src/examples/elementary/efl_ui_slideshow_example.c2
-rw-r--r--src/examples/elementary/efl_ui_theme_example_01.c2
-rw-r--r--src/examples/elementary/efl_ui_theme_example_02.c2
-rw-r--r--src/examples/elementary/popup_cxx_example.cc26
7 files changed, 33 insertions, 33 deletions
diff --git a/src/examples/elementary/button_cxx_example_00.cc b/src/examples/elementary/button_cxx_example_00.cc
index 2d58c7f..ae0a0fa 100644
--- a/src/examples/elementary/button_cxx_example_00.cc
+++ b/src/examples/elementary/button_cxx_example_00.cc
@@ -29,7 +29,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
29 auto cb(std::bind([wbt]() { 29 auto cb(std::bind([wbt]() {
30 std::cout << wbt->text_get() << std::endl; 30 std::cout << wbt->text_get() << std::endl;
31 })); 31 }));
32 efl::eolian::event_add(efl::ui::Clickable::clicked_event, bt, cb); 32 efl::eolian::event_add(efl::input::Clickable::clicked_event, bt, cb);
33 33
34 efl::ui::Button bt2(instantiate, win); 34 efl::ui::Button bt2(instantiate, win);
35 bt2.text_set("Click to quit"); 35 bt2.text_set("Click to quit");
@@ -39,7 +39,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
39 auto cb2(std::bind([wwin]() { 39 auto cb2(std::bind([wwin]() {
40 ::efl_del(wwin->_eo_ptr()); // FIXME: No proper C++ API to delete win 40 ::efl_del(wwin->_eo_ptr()); // FIXME: No proper C++ API to delete win
41 })); 41 }));
42 efl::eolian::event_add(efl::ui::Clickable::clicked_event, bt2, cb2); 42 efl::eolian::event_add(efl::input::Clickable::clicked_event, bt2, cb2);
43 43
44 win.size_set({320,160}); 44 win.size_set({320,160});
45} 45}
diff --git a/src/examples/elementary/button_cxx_example_01.cc b/src/examples/elementary/button_cxx_example_01.cc
index 47b1b9d..8623dfa 100644
--- a/src/examples/elementary/button_cxx_example_01.cc
+++ b/src/examples/elementary/button_cxx_example_01.cc
@@ -67,17 +67,17 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
67 wright->autorepeat_gap_timeout_set(t); 67 wright->autorepeat_gap_timeout_set(t);
68 } 68 }
69 }, std::placeholders::_1); 69 }, std::placeholders::_1);
70 efl::eolian::event_add(efl::ui::Clickable::clicked_event, btn, btn_options); 70 efl::eolian::event_add(efl::input::Clickable::clicked_event, btn, btn_options);
71 71
72 efl::ui::Button btn2(instantiate, win); 72 efl::ui::Button btn2(instantiate, win);
73 btn2.text_set("Initial: 1.0"); 73 btn2.text_set("Initial: 1.0");
74 box_initial.pack_end(btn2); 74 box_initial.pack_end(btn2);
75 efl::eolian::event_add(efl::ui::Clickable::clicked_event, btn2, btn_options); 75 efl::eolian::event_add(efl::input::Clickable::clicked_event, btn2, btn_options);
76 76
77 efl::ui::Button btn3(instantiate, win); 77 efl::ui::Button btn3(instantiate, win);
78 btn3.text_set("Initial: 5.0"); 78 btn3.text_set("Initial: 5.0");
79 box_initial.pack_end(btn3); 79 box_initial.pack_end(btn3);
80 efl::eolian::event_add(efl::ui::Clickable::clicked_event, btn3, btn_options); 80 efl::eolian::event_add(efl::input::Clickable::clicked_event, btn3, btn_options);
81 81
82 efl::ui::Box box_gap(instantiate, win); 82 efl::ui::Box box_gap(instantiate, win);
83 box_gap.orientation_set(EFL_UI_LAYOUT_ORIENTATION_HORIZONTAL); 83 box_gap.orientation_set(EFL_UI_LAYOUT_ORIENTATION_HORIZONTAL);
@@ -87,17 +87,17 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
87 efl::ui::Button btn4(instantiate, win); 87 efl::ui::Button btn4(instantiate, win);
88 btn4.text_set("Gap: 0.1"); 88 btn4.text_set("Gap: 0.1");
89 box_gap.pack_end(btn4); 89 box_gap.pack_end(btn4);
90 efl::eolian::event_add(efl::ui::Clickable::clicked_event, btn4, btn_options); 90 efl::eolian::event_add(efl::input::Clickable::clicked_event, btn4, btn_options);
91 91
92 efl::ui::Button btn5(instantiate, win); 92 efl::ui::Button btn5(instantiate, win);
93 btn5.text_set("Gap: 0.5"); 93 btn5.text_set("Gap: 0.5");
94 box_gap.pack_end(btn5); 94 box_gap.pack_end(btn5);
95 efl::eolian::event_add(efl::ui::Clickable::clicked_event, btn5, btn_options); 95 efl::eolian::event_add(efl::input::Clickable::clicked_event, btn5, btn_options);
96 96
97 efl::ui::Button btn6(instantiate, win); 97 efl::ui::Button btn6(instantiate, win);
98 btn6.text_set("Gap: 1.0"); 98 btn6.text_set("Gap: 1.0");
99 box_gap.pack_end(btn6); 99 box_gap.pack_end(btn6);
100 efl::eolian::event_add(efl::ui::Clickable::clicked_event, btn6, btn_options); 100 efl::eolian::event_add(efl::input::Clickable::clicked_event, btn6, btn_options);
101 101
102 up.autorepeat_enabled_set(true); 102 up.autorepeat_enabled_set(true);
103 up.autorepeat_initial_timeout_set(1.0); 103 up.autorepeat_initial_timeout_set(1.0);
@@ -169,7 +169,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
169 icon_still = nullptr; 169 icon_still = nullptr;
170 } 170 }
171 }); 171 });
172 efl::eolian::event_add(efl::ui::Clickable::unpressed_event, up, btn_cursors_release); 172 efl::eolian::event_add(efl::input::Clickable::unpressed_event, up, btn_cursors_release);
173 173
174 efl::ui::Image icon_up(instantiate, win); 174 efl::ui::Image icon_up(instantiate, win);
175 icon_up.icon_set("arrow_up"); 175 icon_up.icon_set("arrow_up");
@@ -188,7 +188,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
188 left.hint_align_set(0.0, 0.5); 188 left.hint_align_set(0.0, 0.5);
189 box_inferior.pack_end(left); 189 box_inferior.pack_end(left);
190 efl::eolian::event_add(efl::ui::Autorepeat::repeated_event, left, btn_cursors_move); 190 efl::eolian::event_add(efl::ui::Autorepeat::repeated_event, left, btn_cursors_move);
191 efl::eolian::event_add(efl::ui::Clickable::unpressed_event, left, btn_cursors_release); 191 efl::eolian::event_add(efl::input::Clickable::unpressed_event, left, btn_cursors_release);
192 192
193 efl::ui::Image icon_left(instantiate, win); 193 efl::ui::Image icon_left(instantiate, win);
194 icon_left.icon_set("arrow_left"); 194 icon_left.icon_set("arrow_left");
@@ -208,7 +208,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
208 right.hint_align_set(0.0, 0.5); 208 right.hint_align_set(0.0, 0.5);
209 box_inferior.pack_end(right); 209 box_inferior.pack_end(right);
210 efl::eolian::event_add(efl::ui::Autorepeat::repeated_event, right, btn_cursors_move); 210 efl::eolian::event_add(efl::ui::Autorepeat::repeated_event, right, btn_cursors_move);
211 efl::eolian::event_add(efl::ui::Clickable::unpressed_event, right, btn_cursors_release); 211 efl::eolian::event_add(efl::input::Clickable::unpressed_event, right, btn_cursors_release);
212 212
213 efl::ui::Image icon_right(instantiate, win); 213 efl::ui::Image icon_right(instantiate, win);
214 icon_right.icon_set("arrow_right"); 214 icon_right.icon_set("arrow_right");
@@ -222,7 +222,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
222 down.hint_align_set(0.5, 0.0); 222 down.hint_align_set(0.5, 0.0);
223 box.pack_end(down); 223 box.pack_end(down);
224 efl::eolian::event_add(efl::ui::Autorepeat::repeated_event, down, btn_cursors_move); 224 efl::eolian::event_add(efl::ui::Autorepeat::repeated_event, down, btn_cursors_move);
225 efl::eolian::event_add(efl::ui::Clickable::unpressed_event, down, btn_cursors_release); 225 efl::eolian::event_add(efl::input::Clickable::unpressed_event, down, btn_cursors_release);
226 226
227 efl::ui::Image icon_down(instantiate, win); 227 efl::ui::Image icon_down(instantiate, win);
228 icon_down.icon_set("arrow_down"); 228 icon_down.icon_set("arrow_down");
diff --git a/src/examples/elementary/efl_ui_list_example_1.c b/src/examples/elementary/efl_ui_list_example_1.c
index a7be793..a778617 100644
--- a/src/examples/elementary/efl_ui_list_example_1.c
+++ b/src/examples/elementary/efl_ui_list_example_1.c
@@ -129,9 +129,9 @@ elm_main(int argc EINA_UNUSED, char **argv)
129 129
130 efl_event_callback_add(list, EFL_UI_EVENT_ITEM_SELECTED, _list_selected, NULL); 130 efl_event_callback_add(list, EFL_UI_EVENT_ITEM_SELECTED, _list_selected, NULL);
131 efl_event_callback_add(list, EFL_UI_EVENT_ITEM_UNSELECTED, _list_unselected, NULL); 131 efl_event_callback_add(list, EFL_UI_EVENT_ITEM_UNSELECTED, _list_unselected, NULL);
132 efl_event_callback_add(list, EFL_UI_EVENT_PRESSED, _list_pressed, NULL); 132 efl_event_callback_add(list, EFL_INPUT_EVENT_PRESSED, _list_pressed, NULL);
133 efl_event_callback_add(list, EFL_UI_EVENT_UNPRESSED, _list_unpressed, NULL); 133 efl_event_callback_add(list, EFL_INPUT_EVENT_UNPRESSED, _list_unpressed, NULL);
134 efl_event_callback_add(list, EFL_UI_EVENT_LONGPRESSED, _list_longpressed, NULL); 134 efl_event_callback_add(list, EFL_INPUT_EVENT_LONGPRESSED, _list_longpressed, NULL);
135 135
136 for (i = 0; i < NUM_ITEMS; i++) 136 for (i = 0; i < NUM_ITEMS; i++)
137 { 137 {
@@ -299,14 +299,14 @@ elm_main(int argc EINA_UNUSED, char **argv)
299 efl_text_set(scrl_btn, "Scroll Item"); 299 efl_text_set(scrl_btn, "Scroll Item");
300 efl_gfx_hint_align_set(scrl_btn, 0.5, 0.5); 300 efl_gfx_hint_align_set(scrl_btn, 0.5, 0.5);
301 efl_gfx_hint_size_min_set(scrl_btn, EINA_SIZE2D(200, 25)); 301 efl_gfx_hint_size_min_set(scrl_btn, EINA_SIZE2D(200, 25));
302 efl_event_callback_add(scrl_btn, EFL_UI_EVENT_CLICKED, _scrl_btn_clicked, NULL); 302 efl_event_callback_add(scrl_btn, EFL_INPUT_EVENT_CLICKED, _scrl_btn_clicked, NULL);
303 efl_pack_end(rbox, scrl_btn); 303 efl_pack_end(rbox, scrl_btn);
304 304
305 scrl_btn = efl_add(EFL_UI_BUTTON_CLASS, rbox); 305 scrl_btn = efl_add(EFL_UI_BUTTON_CLASS, rbox);
306 efl_text_set(scrl_btn, "Scroll Item Align"); 306 efl_text_set(scrl_btn, "Scroll Item Align");
307 efl_gfx_hint_align_set(scrl_btn, 0.5, 0.5); 307 efl_gfx_hint_align_set(scrl_btn, 0.5, 0.5);
308 efl_gfx_hint_size_min_set(scrl_btn, EINA_SIZE2D(200, 25)); 308 efl_gfx_hint_size_min_set(scrl_btn, EINA_SIZE2D(200, 25));
309 efl_event_callback_add(scrl_btn, EFL_UI_EVENT_CLICKED, _scrl_align_btn_clicked, NULL); 309 efl_event_callback_add(scrl_btn, EFL_INPUT_EVENT_CLICKED, _scrl_align_btn_clicked, NULL);
310 efl_pack_end(rbox, scrl_btn); 310 efl_pack_end(rbox, scrl_btn);
311 311
312 efl_pack_end(bbox, rbox); 312 efl_pack_end(bbox, rbox);
diff --git a/src/examples/elementary/efl_ui_slideshow_example.c b/src/examples/elementary/efl_ui_slideshow_example.c
index 4681037..55c1b66 100644
--- a/src/examples/elementary/efl_ui_slideshow_example.c
+++ b/src/examples/elementary/efl_ui_slideshow_example.c
@@ -110,7 +110,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
110 efl_gfx_hint_weight_set(efl_added, 1.0, 0.0), 110 efl_gfx_hint_weight_set(efl_added, 1.0, 0.0),
111 efl_pack_table(table, efl_added, 0, 1, 1, 1), 111 efl_pack_table(table, efl_added, 0, 1, 1, 1),
112 efl_text_set(efl_added, "Play"), 112 efl_text_set(efl_added, "Play"),
113 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _play_toggle, NULL)); 113 efl_event_callback_add(efl_added, EFL_INPUT_EVENT_CLICKED, _play_toggle, NULL));
114 114
115 efl_gfx_entity_size_set(win, EINA_SIZE2D(200, 200)); 115 efl_gfx_entity_size_set(win, EINA_SIZE2D(200, 200));
116} 116}
diff --git a/src/examples/elementary/efl_ui_theme_example_01.c b/src/examples/elementary/efl_ui_theme_example_01.c
index 15e1017..fe09a83 100644
--- a/src/examples/elementary/efl_ui_theme_example_01.c
+++ b/src/examples/elementary/efl_ui_theme_example_01.c
@@ -62,7 +62,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
62 62
63 efl_add(EFL_UI_BUTTON_CLASS, box, 63 efl_add(EFL_UI_BUTTON_CLASS, box,
64 efl_text_set(efl_added, "Unload extension"), 64 efl_text_set(efl_added, "Unload extension"),
65 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _btn_extension_clicked_cb, NULL), 65 efl_event_callback_add(efl_added, EFL_INPUT_EVENT_CLICKED, _btn_extension_clicked_cb, NULL),
66 efl_pack_end(box, efl_added)); 66 efl_pack_end(box, efl_added));
67 67
68 efl_add(EFL_UI_BUTTON_CLASS, box, 68 efl_add(EFL_UI_BUTTON_CLASS, box,
diff --git a/src/examples/elementary/efl_ui_theme_example_02.c b/src/examples/elementary/efl_ui_theme_example_02.c
index 0d0390b..1b7e61c 100644
--- a/src/examples/elementary/efl_ui_theme_example_02.c
+++ b/src/examples/elementary/efl_ui_theme_example_02.c
@@ -62,7 +62,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
62 62
63 efl_add(EFL_UI_BUTTON_CLASS, box, 63 efl_add(EFL_UI_BUTTON_CLASS, box,
64 efl_text_set(efl_added, "Unload overlay"), 64 efl_text_set(efl_added, "Unload overlay"),
65 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _btn_overlay_clicked_cb, NULL), 65 efl_event_callback_add(efl_added, EFL_INPUT_EVENT_CLICKED, _btn_overlay_clicked_cb, NULL),
66 efl_pack_end(box, efl_added)); 66 efl_pack_end(box, efl_added));
67 67
68 efl_add(EFL_UI_BUTTON_CLASS, box, 68 efl_add(EFL_UI_BUTTON_CLASS, box,
diff --git a/src/examples/elementary/popup_cxx_example.cc b/src/examples/elementary/popup_cxx_example.cc
index 6195c43..4d670eb 100644
--- a/src/examples/elementary/popup_cxx_example.cc
+++ b/src/examples/elementary/popup_cxx_example.cc
@@ -84,7 +84,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
84 auto repeat_events_test_cb(std::bind([]() { 84 auto repeat_events_test_cb(std::bind([]() {
85 std::cout << "Repeat Test Button is clicked" << std::endl; 85 std::cout << "Repeat Test Button is clicked" << std::endl;
86 })); 86 }));
87 efl::eolian::event_add(efl::ui::Clickable::clicked_event, repeat_events_test_btn, repeat_events_test_cb); 87 efl::eolian::event_add(efl::input::Clickable::clicked_event, repeat_events_test_btn, repeat_events_test_cb);
88 g_repeat_events_test_btn = repeat_events_test_btn; 88 g_repeat_events_test_btn = repeat_events_test_btn;
89 89
90 90
@@ -110,7 +110,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
110 } 110 }
111 } 111 }
112 })); 112 }));
113 efl::eolian::event_add(efl::ui::Clickable::clicked_event, create_btn, create_cb); 113 efl::eolian::event_add(efl::input::Clickable::clicked_event, create_btn, create_cb);
114 114
115 115
116 //Delete Button 116 //Delete Button
@@ -128,7 +128,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
128 else 128 else
129 std::cout << "Efl.Ui.Popup does not exist" << std::endl; 129 std::cout << "Efl.Ui.Popup does not exist" << std::endl;
130 })); 130 }));
131 efl::eolian::event_add(efl::ui::Clickable::clicked_event, delete_btn, delete_cb); 131 efl::eolian::event_add(efl::input::Clickable::clicked_event, delete_btn, delete_cb);
132 132
133 133
134 //Repeat Events Button 134 //Repeat Events Button
@@ -156,7 +156,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
156 repeat_events_btn.text_set("Unset Repeat Events"); 156 repeat_events_btn.text_set("Unset Repeat Events");
157 } 157 }
158 })); 158 }));
159 efl::eolian::event_add(efl::ui::Clickable::clicked_event, repeat_events_btn, repeat_events_cb); 159 efl::eolian::event_add(efl::input::Clickable::clicked_event, repeat_events_btn, repeat_events_cb);
160 160
161 161
162 //Dummy Button 162 //Dummy Button
@@ -184,7 +184,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
184 dummy_btn.text_set("Hide Dummy Button"); 184 dummy_btn.text_set("Hide Dummy Button");
185 } 185 }
186 })); 186 }));
187 efl::eolian::event_add(efl::ui::Clickable::clicked_event, dummy_btn, dummy_cb); 187 efl::eolian::event_add(efl::input::Clickable::clicked_event, dummy_btn, dummy_cb);
188 188
189 189
190 //Backwall Button 190 //Backwall Button
@@ -215,7 +215,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
215 backwall_btn.text_set("Set Backwall"); 215 backwall_btn.text_set("Set Backwall");
216 } 216 }
217 })); 217 }));
218 efl::eolian::event_add(efl::ui::Clickable::clicked_event, backwall_btn, backwall_cb); 218 efl::eolian::event_add(efl::input::Clickable::clicked_event, backwall_btn, backwall_cb);
219 219
220 220
221 //Timeout Button 221 //Timeout Button
@@ -230,7 +230,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
230 g_popup.timeout_set(3); 230 g_popup.timeout_set(3);
231 std::cout << "Timeout is set to 3 seconds" << std::endl; 231 std::cout << "Timeout is set to 3 seconds" << std::endl;
232 })); 232 }));
233 efl::eolian::event_add(efl::ui::Clickable::clicked_event, timeout_btn, timeout_set_cb); 233 efl::eolian::event_add(efl::input::Clickable::clicked_event, timeout_btn, timeout_set_cb);
234 234
235 235
236 //Center Button 236 //Center Button
@@ -245,7 +245,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
245 g_popup.align_set(EFL_UI_POPUP_ALIGN_CENTER); 245 g_popup.align_set(EFL_UI_POPUP_ALIGN_CENTER);
246 std::cout << "Align Center" << std::endl; 246 std::cout << "Align Center" << std::endl;
247 })); 247 }));
248 efl::eolian::event_add(efl::ui::Clickable::clicked_event, center_btn, center_align_cb); 248 efl::eolian::event_add(efl::input::Clickable::clicked_event, center_btn, center_align_cb);
249 249
250 250
251 //Top Button 251 //Top Button
@@ -260,7 +260,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
260 g_popup.align_set(EFL_UI_POPUP_ALIGN_TOP); 260 g_popup.align_set(EFL_UI_POPUP_ALIGN_TOP);
261 std::cout << "Align Top" << std::endl; 261 std::cout << "Align Top" << std::endl;
262 })); 262 }));
263 efl::eolian::event_add(efl::ui::Clickable::clicked_event, top_btn, top_align_cb); 263 efl::eolian::event_add(efl::input::Clickable::clicked_event, top_btn, top_align_cb);
264 264
265 265
266 //Left Button 266 //Left Button
@@ -275,7 +275,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
275 g_popup.align_set(EFL_UI_POPUP_ALIGN_LEFT); 275 g_popup.align_set(EFL_UI_POPUP_ALIGN_LEFT);
276 std::cout << "Align Left" << std::endl; 276 std::cout << "Align Left" << std::endl;
277 })); 277 }));
278 efl::eolian::event_add(efl::ui::Clickable::clicked_event, left_btn, left_align_cb); 278 efl::eolian::event_add(efl::input::Clickable::clicked_event, left_btn, left_align_cb);
279 279
280 280
281 //Right Button 281 //Right Button
@@ -290,7 +290,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
290 g_popup.align_set(EFL_UI_POPUP_ALIGN_RIGHT); 290 g_popup.align_set(EFL_UI_POPUP_ALIGN_RIGHT);
291 std::cout << "Align Right" << std::endl; 291 std::cout << "Align Right" << std::endl;
292 })); 292 }));
293 efl::eolian::event_add(efl::ui::Clickable::clicked_event, right_btn, right_align_cb); 293 efl::eolian::event_add(efl::input::Clickable::clicked_event, right_btn, right_align_cb);
294 294
295 295
296 //Bottom Button 296 //Bottom Button
@@ -305,7 +305,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
305 g_popup.align_set(EFL_UI_POPUP_ALIGN_BOTTOM); 305 g_popup.align_set(EFL_UI_POPUP_ALIGN_BOTTOM);
306 std::cout << "Align Bottom" << std::endl; 306 std::cout << "Align Bottom" << std::endl;
307 })); 307 }));
308 efl::eolian::event_add(efl::ui::Clickable::clicked_event, bottom_btn, bottom_align_cb); 308 efl::eolian::event_add(efl::input::Clickable::clicked_event, bottom_btn, bottom_align_cb);
309 309
310 310
311 //Position Button 311 //Position Button
@@ -320,6 +320,6 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
320 g_popup.position_set({0, 0}); 320 g_popup.position_set({0, 0});
321 std::cout << "Position is set to (0, 0)" << std::endl; 321 std::cout << "Position is set to (0, 0)" << std::endl;
322 })); 322 }));
323 efl::eolian::event_add(efl::ui::Clickable::clicked_event, position_btn, position_set_cb); 323 efl::eolian::event_add(efl::input::Clickable::clicked_event, position_btn, position_set_cb);
324} 324}
325EFL_MAIN() 325EFL_MAIN()