1 #include "widget_preview_tmpl_head.c" 2 3 Evas_Object *o; 4 Evas_Object *box = elm_box_add(win); 5 evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 6 elm_win_resize_object_add(win, box); 7 evas_object_show(box); 8 9 o = elm_button_add(win); 10 elm_object_text_set(o, "A button"); 11 elm_box_pack_end(box, o); 12 evas_object_show(o); 13 14 o = elm_entry_add(win); 15 elm_entry_single_line_set(o, EINA_TRUE); 16 elm_entry_scrollable_set(o, EINA_TRUE); 17 elm_object_text_set(o, "An entry with text"); 18 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0); 19 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL); 20 elm_box_pack_end(box, o); 21 evas_object_show(o); 22 23 o = elm_button_add(win); 24 elm_object_text_set(o, "Another button"); 25 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 26 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL); 27 elm_box_pack_end(box, o); 28 evas_object_show(o); 29 30 #include "widget_preview_tmpl_foot.c" 31