Elementary: diskselector, flip, anchorblock, anchorview,
[framework/uifw/elementary.git] / doc / widget_preview_index.c
1 #include "widget_preview_tmpl_head.c"
2
3 static const char *dict[] = \
4 {
5    "awkward",
6    "businessman",
7    "cylinder",
8    "dying",
9    "extremophile",
10    "futhark",
11    "guttural",
12    "hypocrites",
13    "issuing",
14    "just",
15    "knows",
16    "lying",
17    "mystery",
18    "nutrients",
19    "oxymoron",
20    "putting",
21    "quizzes",
22    "running",
23    "systematically",
24    "tyranny",
25    "usually",
26    "vacuum",
27    "want",
28    "xenophobia",
29    "yacht",
30    "zebra"
31 };
32
33 Evas_Object *o = elm_list_add(win);
34 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
35 elm_win_resize_object_add(win, o);
36 evas_object_show(o);
37
38 Evas_Object *id = elm_index_add(win);
39 elm_win_resize_object_add(win, id);
40 evas_object_size_hint_weight_set(id, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
41 elm_win_resize_object_add(win, id);
42 evas_object_show(id);
43
44 unsigned int i;
45 for (i = 0; i < (sizeof(dict) / sizeof(dict[0])); i++)
46   {
47      char buf[32];
48      Elm_List_Item *it;
49
50      it = elm_list_item_append(o, dict[i], NULL, NULL, NULL, NULL);
51      snprintf(buf, sizeof(buf), "%c", dict[i][0]);
52      elm_index_item_append(id, buf, it);
53   }
54
55 elm_index_active_set(id, EINA_TRUE);
56
57 #include "widget_preview_tmpl_foot.c"