fixed plugin image size problem
[framework/uifw/elementary.git] / doc / widgets / widget_preview_layout.c
1 #include "widget_preview_tmpl_head.c"
2
3 Evas_Object *layout = elm_layout_add(win);
4 evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
5 elm_layout_theme_set(layout, "layout", "application", "toolbar-content-back-next");
6 elm_win_resize_object_add(win, layout);
7 evas_object_show(layout);
8
9 Evas_Object *icon = elm_icon_add(win);
10 elm_icon_standard_set(icon, "home");
11 evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
12 evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, EVAS_HINT_FILL);
13 evas_object_size_hint_min_set(icon, 200, 140);
14 evas_object_show(icon);
15
16 elm_object_part_content_set(layout, "elm.swallow.content", icon);
17 elm_object_part_text_set(layout, "elm.text.title", "Layout");
18
19 #include "widget_preview_tmpl_foot.c"