gfx: Add size hint fill (EO)
authorYeongjong Lee <yj34.lee@samsung.com>
Wed, 16 Jan 2019 07:47:51 +0000 (16:47 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 24 Jan 2019 05:20:17 +0000 (14:20 +0900)
commit83f3920ccc8178697b2e17beea577db5075f3009
treebc6d6eee1fe1f8b7368ec1ee2b1c402c749e521b
parente54982be26c866c4edb5dfe4246a386b08cd8712
gfx: Add size hint fill (EO)

Summary:
If widget use both hint_align(HINT_FILL) and hint_max together, there is no way
to set to hint_align. See, elementary_test -to 'efl.ui.box' -
"Button with a quite long text." button. you can control button position
using "Box align" slider, but this is not proper implementation. When there are
two widget which have hint_align(HINT_FILL) and hint_max, those positions are
determined by box_align rather than hint_align. it means widget align cannot be
set individually.
To solve this problem, this patch add hint_fill property. in order to avoid
conflict with legacy API named evas_object_size_hint_fill_set(), it only works
for EO widgets(made by efl_add).
Also, EFL_GFX_SIZE_HINT_FILL is removed.

@feature

Test Plan:
elementary_test -to 'efl.ui.box'
elementary_test -to 'efl.ui.table'

Reviewers: jpeg, Hermet, Jaehyun_Cho, raster, barbieri

Reviewed By: Jaehyun_Cho

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T3912

Differential Revision: https://phab.enlightenment.org/D7409
29 files changed:
src/bin/elementary/test_bg.c
src/bin/elementary/test_evas_snapshot.c
src/bin/elementary/test_gfx_filters.c
src/bin/elementary/test_ui_box.c
src/bin/elementary/test_ui_clock.c
src/bin/elementary/test_ui_scroller.c
src/bin/elementary/test_ui_tab_pager.c
src/bin/elementary/test_ui_table.c
src/bin/elementary/test_ui_textpath.c
src/examples/elementary/button_cxx_example_01.cc
src/examples/elementary/calendar_cxx_example_04.cc
src/examples/elementary/efl_ui_grid_example_1.c
src/examples/elementary/efl_ui_list_example_1.c
src/examples/elementary/slider_cxx_example.cc
src/examples/elementary/spinner_cxx_example.cc
src/examples/elementary/toolbar_cxx_example_01.cc
src/lib/efl/interfaces/efl_gfx_size_hint.eo
src/lib/elementary/efl_ui_box.c
src/lib/elementary/efl_ui_box_layout.c
src/lib/elementary/efl_ui_list_view_precise_layouter.c
src/lib/elementary/efl_ui_scroll_alert_popup.c
src/lib/elementary/efl_ui_tags.c
src/lib/elementary/efl_ui_win.c
src/lib/elementary/elm_colorselector.c
src/lib/evas/canvas/efl_canvas_object.eo
src/lib/evas/canvas/evas_object_main.c
src/lib/evas/canvas/evas_object_table.c
src/lib/evas/include/evas_private.h
src/tests/elementary/efl_ui_test_grid.c