#include <Elementary.hh>
EAPI_MAIN int
elm_main (int argc, char *argv[])
{
bx.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
bx.visible_set(true);
sp.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
sp.size_hint_align_set(EVAS_HINT_FILL, 0.5);
sp.visible_set(true);
sp2.
label_format_set(
"Percentage %%%1.2f something");
sp2.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
sp2.size_hint_align_set(EVAS_HINT_FILL, 0.5);
sp2.visible_set(true);
sp3.label_format_set("%1.1f units");
sp3.
min_max_set(-50.0, 250.0);
sp3.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
sp3.size_hint_align_set(EVAS_HINT_FILL, 0.5);
sp3.visible_set(true);
sp4.style_set("vertical");
sp4.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
sp4.size_hint_align_set(EVAS_HINT_FILL, 0.5);
sp4.visible_set(true);
sp5.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
sp5.size_hint_align_set(EVAS_HINT_FILL, 0.5);
sp5.visible_set(true);
sp6.editable_set(false);
sp6.min_max_set(1, 12);
sp6.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
sp6.size_hint_align_set(EVAS_HINT_FILL, 0.5);
sp6.visible_set(true);
sp7.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
sp7.size_hint_align_set(EVAS_HINT_FILL, 0.5);
sp7.visible_set(true);
sp7.editable_set(true);
auto changed = std::bind([&] () { std::cout <<
"Value changed to " << sp7.
value_get() << std::endl; });
sp7.
callback_changed_add( changed );
auto delay = std::bind([&] () {std::cout << "Value delay changed to " << sp7.value_get() << std::endl;});
sp7.
callback_delay_changed_add( delay );
win.visible_set(true);
return 0;
}