tizen 2.4 release
[framework/uifw/elementary.git] / src / examples / bg_example_01.c
1 //Compile with:
2 //gcc -o bg_example_01 bg_example_01.c -g `pkg-config --cflags --libs elementary`
3
4 #include <Elementary.h>
5
6 EAPI_MAIN int
7 elm_main(int argc, char **argv)
8 {
9    Evas_Object *win;
10
11    elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
12    win = elm_win_util_standard_add("bg-plain", "Bg Plain");
13    elm_win_autodel_set(win, EINA_TRUE);
14
15    /* and now just resize the window to a size you want. normally widgets
16     * will determine the initial size though */
17    evas_object_resize(win, 320, 320);
18    /* and show the window */
19    evas_object_show(win);
20
21    elm_run(); /* and run the program now, starting to handle all
22                * events, etc. */
23
24    /* exit code */
25    return 0;
26 }
27 ELM_MAIN()