This no longer takes two parameters. Update to the new signature.
// win.title_set("Bg Plain");
win.autohide_set(true);
- win.eo_cxx::efl::Gfx::size_set(320,320);
+ win.eo_cxx::efl::Gfx::size_set({320,320});
//win.size_set(320,320);
win.visible_set(true);
//ss << elm_app_data_dir_get() << "/images/plant_01.jpg";
bg.file_set("/home/luciana/Pictures/surprised_cat.jpeg", nullptr);
//win.resize_object_add(bg);
- bg.eo_cxx::efl::Gfx::size_set(640,400);
+ bg.eo_cxx::efl::Gfx::size_set({640,400});
bg.visible_set(true);
- win.eo_cxx::efl::Gfx::size_set(640, 400);
+ win.eo_cxx::efl::Gfx::size_set({640, 400});
win.visible_set(true);
elm_run();
efl::ui::Button btn(instantiate, win);
btn.text_set("Good-Bye, World!");
- btn.eo_cxx::efl::Gfx::size_set(120, 30);
- btn.eo_cxx::efl::Gfx::position_set(60, 15);
+ btn.eo_cxx::efl::Gfx::size_set({120, 30});
+ btn.eo_cxx::efl::Gfx::position_set({60, 15});
btn.visible_set(true);
auto on_click = std::bind([] () { elm_exit(); });
efl::eolian::event_add(efl::ui::Clickable::clicked_event, btn, on_click);
- win.eo_cxx::efl::Gfx::size_set(240, 60);
+ win.eo_cxx::efl::Gfx::size_set({240, 60});
win.visible_set(true);
elm_run();
::elm::Calendar cal(instantiate, win);
//cal.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- cal.eo_cxx::efl::Gfx::size_set(134,134);
+ cal.eo_cxx::efl::Gfx::size_set({134,134});
//win.resize_object_add(cal);
cal.visible_set(true);
- win.eo_cxx::efl::Gfx::size_set(134,134);
+ win.eo_cxx::efl::Gfx::size_set({134,134});
win.visible_set(true);
elm_run();
cal.format_function_set(_format_month_year);
// cal.weekdays_names_set(weekdays);
- cal.eo_cxx::efl::Gfx::size_set(125,134);
- win.eo_cxx::efl::Gfx::size_set(125,134);
+ cal.eo_cxx::efl::Gfx::size_set({125,134});
+ win.eo_cxx::efl::Gfx::size_set({125,134});
cal.visible_set(true);
win.visible_set(true);
cal.date_max_set(max);
cal.visible_set(true);
- cal.eo_cxx::efl::Gfx::size_set(140,140);
- win.eo_cxx::efl::Gfx::size_set(140,140);
+ cal.eo_cxx::efl::Gfx::size_set({140,140});
+ win.eo_cxx::efl::Gfx::size_set({140,140});
win.visible_set(true);
elm_run();
::efl::ui::Box bx(instantiate, win);
//bx.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
//win.resize_object_add(bx);
- bx.eo_cxx::efl::Gfx::size_set(700,700);
+ bx.eo_cxx::efl::Gfx::size_set({700,700});
bx.visible_set(true);
::elm::Calendar cal(instantiate, win);
// cal.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
// cal.size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL);
cal.select_mode_set(ELM_CALENDAR_SELECT_MODE_NONE);
- cal.eo_cxx::efl::Gfx::size_set(125,135);
+ cal.eo_cxx::efl::Gfx::size_set({125,135});
cal.visible_set(true);
//bx.pack_end(cal); no matching function for call to ‘efl::ui::Box::pack_end(elm::Calendar&)’
//candidate: bool eo_cxx::efl::pack::Linear::pack_end(Efl_Gfx*) const
current_time = time(NULL) +2 * SECS_DAY;
localtime_r(¤t_time, &selected_time);
// cal2.selected_time_set(&selected_time);
- cal2.eo_cxx::efl::Gfx::size_set(125,135);
+ cal2.eo_cxx::efl::Gfx::size_set({125,135});
cal2.visible_set(true);
//bx.pack_end(cal2);
- win.eo_cxx::efl::Gfx::size_set(500,560);
+ win.eo_cxx::efl::Gfx::size_set({500,560});
win.visible_set(true);
elm_run();
elm::Calendar cal(instantiate, win);
//cal.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
//win.resize_object_add(cal);
- cal.eo_cxx::efl::Gfx::size_set(135,135);
+ cal.eo_cxx::efl::Gfx::size_set({135,135});
// auto print_cal_info = std::bind([] (::elm::Calendar obj)
// {
// cal.callback_changed_add(print_cal_info);
cal.visible_set(true);
- win.eo_cxx::efl::Gfx::size_set(135,135);
+ win.eo_cxx::efl::Gfx::size_set({135,135});
win.visible_set(true);
elm_run();
efl::ui::Box bx(instantiate, win);
//bx.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
//win.resize_object_add(bx);
- bx.eo_cxx::efl::Gfx::size_set(300,300);
+ bx.eo_cxx::efl::Gfx::size_set({300,300});
bx.visible_set(true);
::elm::Clock ck(instantiate, win);
bx.pack_end(ck5);
ck5.visible_set(true);
- win.eo_cxx::efl::Gfx::size_set(500,500);
+ win.eo_cxx::efl::Gfx::size_set({500,500});
win.visible_set(true);
elm_run();
// icon.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
//win.resize_object_add(icon);
- icon.eo_cxx::efl::Gfx::size_set(320,320);
+ icon.eo_cxx::efl::Gfx::size_set({320,320});
icon.visible_set(true);
- win.eo_cxx::efl::Gfx::size_set(320, 320);
+ win.eo_cxx::efl::Gfx::size_set({320, 320});
win.visible_set(true);
elm_run();
});
win_1.autodel_set(true);
- win_1.eo_cxx::efl::Gfx::size_set(320, 300);
+ win_1.eo_cxx::efl::Gfx::size_set({320, 300});
efl::ui::Box box_1(instantiate, win_1);
box_1.hint_weight_set(1.0, 1.0);