summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_panes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/elementary/test_panes.c')
-rw-r--r--src/bin/elementary/test_panes.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/bin/elementary/test_panes.c b/src/bin/elementary/test_panes.c
index 27d9535045..da7255c15b 100644
--- a/src/bin/elementary/test_panes.c
+++ b/src/bin/elementary/test_panes.c
@@ -103,3 +103,44 @@ test_panes(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_inf
103 evas_object_resize(win, 320, 400); 103 evas_object_resize(win, 320, 400);
104 evas_object_show(win); 104 evas_object_show(win);
105} 105}
106
107void
108test_panes_minsize(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
109{
110 Eo *win, *panes, *panes_h;
111
112 win = efl_add(EFL_UI_WIN_CLASS, NULL,
113 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC),
114 efl_text_set(efl_added, "Panes Minsize"),
115 efl_ui_win_autodel_set(efl_added, EINA_TRUE)
116 );
117
118 panes = efl_add(EFL_UI_PANES_CLASS, win,
119 efl_gfx_size_hint_weight_set(efl_added, EFL_GFX_SIZE_HINT_EXPAND, EFL_GFX_SIZE_HINT_EXPAND),
120 efl_content_set(win, efl_added)
121 );
122
123 efl_add(EFL_UI_BUTTON_CLASS, win,
124 efl_text_set(efl_added, "Left - min size 110, 110"),
125 efl_gfx_size_hint_min_set(efl_added, 110, 110),
126 efl_content_set(efl_part(panes, "first"), efl_added)
127 );
128
129 panes_h = efl_add(EFL_UI_PANES_CLASS, win,
130 efl_orientation_set(efl_added, EFL_ORIENT_HORIZONTAL),
131 efl_content_set(efl_part(panes, "second"), efl_added)
132 );
133 efl_add(EFL_UI_BUTTON_CLASS, win,
134 efl_text_set(efl_added, "Up - no min size"),
135 efl_content_set(efl_part(panes_h, "first"), efl_added)
136 );
137
138 efl_add(EFL_UI_BUTTON_CLASS, win,
139 efl_text_set(efl_added, "Down - min size 50 40"),
140 efl_gfx_size_hint_min_set(efl_added, 50, 40),
141 efl_content_set(efl_part(panes_h, "second"), efl_added)
142 );
143
144 efl_gfx_size_set(win, 320, 400);
145}
146