\section{frame\+\_\+example\+\_\+01.\+c}

\begin{DoxyCodeInclude}
\textcolor{comment}{//Compile with:}
\textcolor{comment}{//gcc -o frame\_example\_01 frame\_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;
   Evas\_Object *f1, *r1, *f2, *r2, *f3, *r3, *f4, *r4;

   elm_policy_set(ELM\_POLICY\_QUIT, ELM\_POLICY\_QUIT\_LAST\_WINDOW\_CLOSED);

   win = elm_win_util_standard_add(\textcolor{stringliteral}{"frame"}, \textcolor{stringliteral}{"Frame"});
   elm\_win\_autodel\_set(win, EINA\_TRUE);

   r1 = evas\_object\_rectangle\_add(evas\_object\_evas\_get(win));
   evas\_object\_color\_set(r1, 255, 0, 0, 255);
   evas\_object\_show(r1);

   f1= elm_frame_add(win);
   elm\_object\_content\_set(f1, r1);
   elm\_object\_text\_set(f1, \textcolor{stringliteral}{"Default frame"});
   evas\_object\_resize(f1, 100, 100);
   evas\_object\_move(f1, 25, 25);
   evas\_object\_show(f1);

   r2 = evas\_object\_rectangle\_add(evas\_object\_evas\_get(win));
   evas\_object\_color\_set(r2, 0, 255, 0, 255);
   evas\_object\_show(r2);

   f2 = elm_frame_add(win);
   elm\_object\_content\_set(f2, r2);
   elm\_object\_text\_set(f2, \textcolor{stringliteral}{"Padding frame"});
   evas\_object\_resize(f2, 100, 100);
   evas\_object\_move(f2, 150, 25);
   elm_object_style_set(f2, \textcolor{stringliteral}{"pad\_small"});
   evas\_object\_show(f2);

   r3 = evas\_object\_rectangle\_add(evas\_object\_evas\_get(win));
   evas\_object\_color\_set(r3, 0, 0, 255, 255);
   evas\_object\_show(r3);

   f3 = elm_frame_add(win);
   elm\_object\_content\_set(f3, r3);
   elm\_object\_text\_set(f3, \textcolor{stringliteral}{"Top outdent frame"});
   evas\_object\_resize(f3, 100, 100);
   evas\_object\_move(f3, 25, 150);
   elm_object_style_set(f3, \textcolor{stringliteral}{"outdent\_top"});
   evas\_object\_show(f3);

   r4 = evas\_object\_rectangle\_add(evas\_object\_evas\_get(win));
   evas\_object\_color\_set(r4, 0, 0, 0, 255);
   evas\_object\_show(r4);

   f4 = elm_frame_add(win);
   elm\_object\_content\_set(f4, r4);
   elm\_object\_text\_set(f4, \textcolor{stringliteral}{"Bottom outdent frame"});
   evas\_object\_resize(f4, 100, 100);
   evas\_object\_move(f4, 150, 150);
   elm_object_style_set(f4, \textcolor{stringliteral}{"outdent\_bottom"});
   evas\_object\_show(f4);

   evas\_object\_resize(win, 275, 275);
   evas\_object\_show(win);

   elm_run();

   \textcolor{keywordflow}{return} 0;
\}
ELM_MAIN()
\end{DoxyCodeInclude}
 