fixed plugin image size problem
[framework/uifw/elementary.git] / doc / widgets / widget_preview_conformant.c
1 #include "widget_preview_tmpl_head.c"
2
3 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
4
5 Evas_Object *conform = elm_conformant_add(win);
6 elm_win_resize_object_add(win, conform);
7 evas_object_size_hint_weight_set(conform, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
8 evas_object_show(conform);
9
10 Evas_Object *bx = elm_box_add(win);
11 evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
12 evas_object_size_hint_align_set(bx, EVAS_HINT_FILL, EVAS_HINT_FILL);
13 evas_object_show(bx);
14
15 Evas_Object *btn = elm_button_add(win);
16 elm_object_text_set(btn, "Conformant");
17 evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, 0);
18 evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, 0);
19 evas_object_show(btn);
20 elm_box_pack_end(bx, btn);
21
22 Evas_Object *en = elm_entry_add(win);
23 elm_entry_scrollable_set(en, EINA_TRUE);
24 elm_object_text_set(en,
25                     "This is a multi-line entry<br>"
26                     "This can contain more than 1 line of text and be "
27                     "scrolled around to allow for entering of lots of "
28                     "content. It is also to test to see that autoscroll "
29                     "moves to the right part of a larger multi-line "
30                     "text entry that is inside of a scroller than can be "
31                     "scrolled around, thus changing the expected position "
32                     "as well as cursor changes updating auto-scroll when "
33                     "it is enabled.");
34
35 evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
36 evas_object_size_hint_align_set(en, EVAS_HINT_FILL, EVAS_HINT_FILL);
37 evas_object_show(en);
38 elm_box_pack_end(bx, en);
39
40 elm_object_content_set(conform, bx);
41
42 #include "widget_preview_tmpl_foot.c"