summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_box.c
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-02-13 08:39:20 -0500
committerMike Blumenkrantz <zmike@samsung.com>2019-02-13 09:23:01 -0500
commit27e101da4b0134186217e27aceceb96ef2636fe5 (patch)
treed75953af1f02cc8e09948d8aa121eed55e13e75e /src/lib/elementary/efl_ui_box.c
parentb1f280f0c2c307c32a5edde5b5f2f304d463dac8 (diff)
ui.box: implement homogeneous mode
Summary: On homogeneous mode, children are of the same weight and of the same min size which is determined by maximum min size of children. Depends on D7750 Reviewers: Jaehyun_Cho, zmike, jpeg Reviewed By: zmike Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7889
Diffstat (limited to 'src/lib/elementary/efl_ui_box.c')
-rw-r--r--src/lib/elementary/efl_ui_box.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_box.c b/src/lib/elementary/efl_ui_box.c
index aa6b2d85aa..dbf4584503 100644
--- a/src/lib/elementary/efl_ui_box.c
+++ b/src/lib/elementary/efl_ui_box.c
@@ -81,6 +81,18 @@ _evas_box_custom_layout(Evas_Object *evas_box EINA_UNUSED,
81} 81}
82 82
83EOLIAN static void 83EOLIAN static void
84_efl_ui_box_homogeneous_set(Eo *obj EINA_UNUSED, Efl_Ui_Box_Data *pd, Eina_Bool homogeneous)
85{
86 pd->homogeneous = !!homogeneous;
87}
88
89EOLIAN static Eina_Bool
90_efl_ui_box_homogeneous_get(const Eo *obj EINA_UNUSED, Efl_Ui_Box_Data *pd)
91{
92 return pd->homogeneous;
93}
94
95EOLIAN static void
84_efl_ui_box_efl_pack_layout_layout_update(Eo *obj, Efl_Ui_Box_Data *pd EINA_UNUSED) 96_efl_ui_box_efl_pack_layout_layout_update(Eo *obj, Efl_Ui_Box_Data *pd EINA_UNUSED)
85{ 97{
86 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); 98 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);