summaryrefslogtreecommitdiff
path: root/src/examples/elementary/transit_example_01.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-03-23 12:56:14 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-03-23 13:24:41 -0700
commitc2a1c49ab2042f559b28e840e54feb8494888e0e (patch)
treec6eb110b7c479499854eede9d0c3ab0a80c9a11a /src/examples/elementary/transit_example_01.c
parent9340855597e7e465435c69b6278650346688da14 (diff)
elementary: move all legacy files to their expected new location.
Diffstat (limited to 'src/examples/elementary/transit_example_01.c')
-rw-r--r--src/examples/elementary/transit_example_01.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/examples/elementary/transit_example_01.c b/src/examples/elementary/transit_example_01.c
new file mode 100644
index 0000000000..95ff37bd0d
--- /dev/null
+++ b/src/examples/elementary/transit_example_01.c
@@ -0,0 +1,38 @@
1//Compile with:
2//gcc -o transit_example_01 transit_example_01.c `pkg-config --cflags --libs elementary`
3
4#include <Elementary.h>
5
6EAPI_MAIN int
7elm_main(int argc, char **argv)
8{
9 Evas_Object *win, *bt;
10 Elm_Transit *trans;
11
12 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
13
14 win = elm_win_util_standard_add("transit-basic", "Transit - Basic");
15 elm_win_autodel_set(win, EINA_TRUE);
16
17 bt = elm_button_add(win);
18 elm_object_text_set(bt, "Resizing Effect");
19 evas_object_show(bt);
20 evas_object_move(bt, 50, 100);
21 evas_object_resize(bt, 100, 50);
22
23 trans = elm_transit_add();
24 elm_transit_object_add(trans, bt);
25
26 elm_transit_effect_resizing_add(trans, 100, 50, 300, 150);
27
28 elm_transit_duration_set(trans, 5.0);
29 elm_transit_go(trans);
30
31 evas_object_resize(win, 400, 400);
32 evas_object_show(win);
33
34 elm_run();
35
36 return 0;
37}
38ELM_MAIN()