summaryrefslogtreecommitdiff
path: root/src/examples/elementary
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-07-31 14:38:13 +0200
committerCedric BAIL <cedric.bail@free.fr>2019-08-01 14:36:45 -0700
commit010f81357297e5473244c5ef42cb56a5f2f0fa16 (patch)
tree1afa35597474d640208cc86593121cb19eb5350e /src/examples/elementary
parentca813f41a652d00bb1df253456e013929c65d375 (diff)
efl_ui_range_interactive: add a new event
the steady event from slider now moved here. A spec test suite and the corresponding implementations will follow. ref T7894 Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D9458
Diffstat (limited to 'src/examples/elementary')
-rw-r--r--src/examples/elementary/slider_cxx_example.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/elementary/slider_cxx_example.cc b/src/examples/elementary/slider_cxx_example.cc
index d42f765..941ecc5 100644
--- a/src/examples/elementary/slider_cxx_example.cc
+++ b/src/examples/elementary/slider_cxx_example.cc
@@ -72,11 +72,11 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
72 { std::cout << "Changed to " << obj.range_value_get() << std::endl; } 72 { std::cout << "Changed to " << obj.range_value_get() << std::endl; }
73 , std::placeholders::_1); 73 , std::placeholders::_1);
74 74
75 auto steady = std::bind ( [] (efl::ui::Slider obj) 75 auto steady = std::bind ( [] (efl::ui::Range_Interactive obj)
76 { std::cout << "Steady to " << obj.range_value_get() << std::endl; } 76 { std::cout << "Steady to " << obj.range_value_get() << std::endl; }
77 , std::placeholders::_1); 77 , std::placeholders::_1);
78 78
79 efl::eo::downcast<efl::ui::Range_Display>(sl7).changed_event_cb_add(changed); 79 efl::eo::downcast<efl::ui::Range_Display>(sl7).changed_event_cb_add(changed);
80 sl7.steady_event_cb_add(steady); 80 efl::eo::downcast<efl::ui::Range_Interactive>(sl7).steady_event_cb_add(steady);
81} 81}
82EFL_MAIN() 82EFL_MAIN()