\section{bg\-\_\-example\-\_\-01.\-c}

\begin{DoxyCodeInclude}
\textcolor{comment}{//Compile with:}
\textcolor{comment}{//gcc -o bg\_example\_01 bg\_example\_01.c -g `pkg-config --cflags --libs elementary`}

\textcolor{preprocessor}{#include <Elementary.h>}

EAPI\_MAIN \textcolor{keywordtype}{int}
elm\_main(\textcolor{keywordtype}{int} argc, \textcolor{keywordtype}{char} **argv)
\{
   Evas\_Object *win;

   elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
   win = elm_win_util_standard_add(\textcolor{stringliteral}{"bg-plain"}, \textcolor{stringliteral}{"Bg Plain"});
   elm_win_autodel_set(win, EINA\_TRUE);

   \textcolor{comment}{/* and now just resize the window to a size you want. normally widgets}
\textcolor{comment}{    * will determine the initial size though */}
   evas\_object\_resize(win, 320, 320);
   \textcolor{comment}{/* and show the window */}
   evas\_object\_show(win);

   elm_run(); \textcolor{comment}{/* and run the program now, starting to handle all}
\textcolor{comment}{               * events, etc. */}
   elm_shutdown(); \textcolor{comment}{/* clean up and shut down */}

   \textcolor{comment}{/* exit code */}
   \textcolor{keywordflow}{return} 0;
\}
ELM_MAIN()
\end{DoxyCodeInclude}
 