forked from enlightenment/efl
examples: Fix cxx examples compilation.
Summary: After Efl.Gfx.Hint changes. Reviewers: segfaultxavi, vitor.sousa Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8003
This commit is contained in:
parent
dc492b1586
commit
3076808a33
|
@ -38,7 +38,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
|
||||||
|
|
||||||
efl::ui::Slider sl3(instantiate, win);
|
efl::ui::Slider sl3(instantiate, win);
|
||||||
sl3.range_value_set(1);
|
sl3.range_value_set(1);
|
||||||
sl3.hint_min_set({220, 0});
|
sl3.hint_size_min_set({220, 0});
|
||||||
sl3.hint_fill_set(true, false);
|
sl3.hint_fill_set(true, false);
|
||||||
bx.pack_end(sl3);
|
bx.pack_end(sl3);
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
|
||||||
sl5.range_step_set(1);
|
sl5.range_step_set(1);
|
||||||
sl5.direction_set(EFL_UI_DIR_UP);
|
sl5.direction_set(EFL_UI_DIR_UP);
|
||||||
sl5.hint_fill_set(true, false);
|
sl5.hint_fill_set(true, false);
|
||||||
sl5.hint_min_set({0, 120});
|
sl5.hint_size_min_set({0, 120});
|
||||||
bx.pack_end(sl5);
|
bx.pack_end(sl5);
|
||||||
|
|
||||||
efl::ui::Slider sl6(instantiate, win);
|
efl::ui::Slider sl6(instantiate, win);
|
||||||
|
|
|
@ -20,22 +20,22 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
|
||||||
|
|
||||||
efl::canvas::Rectangle rect(instantiate, win);
|
efl::canvas::Rectangle rect(instantiate, win);
|
||||||
rect.color_set(255, 0, 0, 255);
|
rect.color_set(255, 0, 0, 255);
|
||||||
rect.hint_min_set({100, 50});
|
rect.hint_size_min_set({100, 50});
|
||||||
table.pack_table(rect, 0, 0, 2, 1);
|
table.pack_table(rect, 0, 0, 2, 1);
|
||||||
|
|
||||||
efl::canvas::Rectangle rect2(instantiate, win);
|
efl::canvas::Rectangle rect2(instantiate, win);
|
||||||
rect2.color_set(0, 255, 0, 255);
|
rect2.color_set(0, 255, 0, 255);
|
||||||
rect2.hint_min_set({50, 100});
|
rect2.hint_size_min_set({50, 100});
|
||||||
table.pack_table(rect2, 0, 1, 1, 2);
|
table.pack_table(rect2, 0, 1, 1, 2);
|
||||||
|
|
||||||
efl::canvas::Rectangle rect3(instantiate, win);
|
efl::canvas::Rectangle rect3(instantiate, win);
|
||||||
rect3.color_set(0, 0, 255, 255);
|
rect3.color_set(0, 0, 255, 255);
|
||||||
rect3.hint_min_set({50, 50});
|
rect3.hint_size_min_set({50, 50});
|
||||||
table.pack_table(rect3, 1, 1, 1, 1);
|
table.pack_table(rect3, 1, 1, 1, 1);
|
||||||
|
|
||||||
efl::canvas::Rectangle rect4(instantiate, win);
|
efl::canvas::Rectangle rect4(instantiate, win);
|
||||||
rect4.color_set(255, 255, 0, 255);
|
rect4.color_set(255, 255, 0, 255);
|
||||||
rect4.hint_min_set({50, 50});
|
rect4.hint_size_min_set({50, 50});
|
||||||
table.pack_table(rect4, 1, 2, 1, 1);
|
table.pack_table(rect4, 1, 2, 1, 1);
|
||||||
}
|
}
|
||||||
EFL_MAIN()
|
EFL_MAIN()
|
||||||
|
|
Loading…
Reference in New Issue