summaryrefslogtreecommitdiff
path: root/doc/widgets/widget_preview_tmpl_head.c
blob: cfec07def66b10ce016cc6285ea0791834b30bc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif

EAPI int
elm_main(int argc __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);