aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/elementary/doc/widgets/widget_preview_flip.c
blob: b85d28942391697f5f76ff33254d0e33f84c5505 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
unsigned char _func(void *data);

#include "widget_preview_tmpl_head.c"

Evas_Object *o = elm_flip_add(win);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, o);
evas_object_show(o);

Evas_Object *ic = elm_icon_add(win);
elm_icon_standard_set(ic, "home");
evas_object_show(ic);
elm_object_part_content_set(o, "front", ic);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "file");
evas_object_show(ic);
elm_object_part_content_set(o, "back", ic);

ecore_timer_add(0.35, _func, o);

#include "widget_preview_tmpl_foot.c"

unsigned char _func(void *data)
{
   elm_flip_go(data, ELM_FLIP_CUBE_RIGHT);
   return 0;
}