efl/doc/widgets/widget_preview_tmpl_head.c

22 lines
405 B
C

#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define EINA_UNUSED
#endif
#include <Elementary.h>
EAPI_MAIN int
elm_main(int argc EINA_UNUSED, char **argv)
{
Evas_Object *win, *bg;
Evas_Coord w, h;
w = atoi(argv[1]);
h = atoi(argv[2]);
win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);