2011-06-16 07:10:23 -07:00
|
|
|
//Compile with:
|
2012-03-19 05:58:07 -07:00
|
|
|
//gcc -o bg_example_01 bg_example_01.c -g `pkg-config --cflags --libs elementary`
|
2011-06-16 07:10:23 -07:00
|
|
|
|
|
|
|
#include <Elementary.h>
|
|
|
|
|
2012-03-27 23:04:36 -07:00
|
|
|
EAPI_MAIN int
|
2017-04-19 23:33:59 -07:00
|
|
|
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
2011-06-16 07:10:23 -07:00
|
|
|
{
|
2013-06-24 20:05:33 -07:00
|
|
|
Evas_Object *win;
|
2011-06-16 07:10:23 -07:00
|
|
|
|
2013-03-07 10:16:55 -08:00
|
|
|
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
|
|
|
|
win = elm_win_util_standard_add("bg-plain", "Bg Plain");
|
2011-08-12 08:26:58 -07:00
|
|
|
elm_win_autodel_set(win, EINA_TRUE);
|
2011-06-16 07:10:23 -07:00
|
|
|
|
|
|
|
/* and now just resize the window to a size you want. normally widgets
|
|
|
|
* will determine the initial size though */
|
|
|
|
evas_object_resize(win, 320, 320);
|
|
|
|
/* and show the window */
|
|
|
|
evas_object_show(win);
|
|
|
|
|
2011-06-22 07:51:55 -07:00
|
|
|
elm_run(); /* and run the program now, starting to handle all
|
|
|
|
* events, etc. */
|
2011-06-16 07:10:23 -07:00
|
|
|
|
2011-06-22 07:51:55 -07:00
|
|
|
/* exit code */
|
2011-06-16 07:10:23 -07:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
ELM_MAIN()
|