elm: change elm_object_content_part_set/get/unset to elm_object_part_content_set...
[framework/uifw/elementary.git] / doc / widgets / widget_preview_panes.c
1 #include "widget_preview_tmpl_head.c"
2
3 Evas_Object *panes = elm_panes_add(win);
4 evas_object_size_hint_weight_set(panes, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
5 elm_win_resize_object_add(win, panes);
6 evas_object_show(panes);
7
8 Evas_Object *bt = elm_button_add(win);
9 elm_object_text_set(bt, "Left");
10 evas_object_size_hint_weight_set(bt, 1.0, 1.0);
11 evas_object_size_hint_align_set(bt, -1.0, -1.0);
12 evas_object_show(bt);
13 elm_object_part_content_set(panes, "left", bt);
14
15 bt = elm_button_add(win);
16 elm_object_text_set(bt, "Right");
17 evas_object_size_hint_weight_set(bt, 1.0, 1.0);
18 evas_object_size_hint_align_set(bt, -1.0, -1.0);
19 evas_object_show(bt);
20 elm_object_part_content_set(panes, "right", bt);
21
22 #include "widget_preview_tmpl_foot.c"