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

\begin{DoxyCodeInclude}

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

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

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

   win = elm_win_util_standard_add(\textcolor{stringliteral}{"conformant"}, \textcolor{stringliteral}{"Conformant Example"});
   elm\_win\_autodel\_set(win, EINA\_TRUE);

   bx = elm_box_add(win);
   evas\_object\_size\_hint\_weight\_set(bx, EVAS\_HINT\_EXPAND, EVAS\_HINT\_EXPAND);
   elm\_win\_resize\_object\_add(win, bx);
   evas\_object\_show(bx);

   btn = elm_button_add(win);
   elm\_object\_text\_set(btn, \textcolor{stringliteral}{"Test Conformant"});
   evas\_object\_size\_hint\_weight\_set(btn, EVAS\_HINT\_EXPAND, 0);
   evas\_object\_size\_hint\_align\_set(btn, EVAS\_HINT\_FILL, 0);
   elm\_box\_pack\_end(bx, btn);
   evas\_object\_show(btn);

   en = elm_entry_add(win);
   elm\_entry\_scrollable\_set(en, EINA\_TRUE);
   elm\_object\_text\_set(en,
                       \textcolor{stringliteral}{"This is a multi-line entry at the bottom<br>"}
                       \textcolor{stringliteral}{"This can contain more than 1 line of text and be "}
                       \textcolor{stringliteral}{"scrolled around to allow for entering of lots of "}
                       \textcolor{stringliteral}{"content. It is also to test to see that autoscroll "}
                       \textcolor{stringliteral}{"moves to the right part of a larger multi-line "}
                       \textcolor{stringliteral}{"text entry that is inside of a scroller than can be "}
                       \textcolor{stringliteral}{"scrolled around, thus changing the expected position "}
                       \textcolor{stringliteral}{"as well as cursor changes updating auto-scroll when "}
                       \textcolor{stringliteral}{"it is enabled."});

   evas\_object\_size\_hint\_weight\_set(en, EVAS\_HINT\_EXPAND, EVAS\_HINT\_EXPAND);
   evas\_object\_size\_hint\_align\_set(en, EVAS\_HINT\_FILL, EVAS\_HINT\_FILL);
   evas\_object\_show(en);
   elm\_box\_pack\_end(bx, en);

   btn = elm_button_add(win);
   elm\_object\_text\_set(btn, \textcolor{stringliteral}{"Test Conformant"});
   evas\_object\_size\_hint\_weight\_set(btn, EVAS\_HINT\_EXPAND, 0);
   evas\_object\_size\_hint\_align\_set(btn, EVAS\_HINT\_FILL, 0);
   elm\_box\_pack\_end(bx, btn);
   evas\_object\_show(btn);

   evas\_object\_resize(win, 240, 480);
   evas\_object\_show(win);

   elm_run();

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