\section{conformant\-\_\-example\-\_\-02.\-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, *conform, *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);

   elm_win_conformant_set(win, EINA\_TRUE);

   conform = elm_conformant_add(win);
   evas\_object\_size\_hint\_weight\_set(conform, EVAS\_HINT\_EXPAND, EVAS\_HINT\_EXPAND);
   elm_win_resize_object_add(win, conform);
   evas\_object\_show(conform);

   bx = elm_box_add(win);
   evas\_object\_size\_hint\_weight\_set(bx, EVAS\_HINT\_EXPAND, EVAS\_HINT\_EXPAND);
   evas\_object\_size\_hint\_align\_set(bx, EVAS\_HINT\_FILL, EVAS\_HINT\_FILL);

   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);

   elm\_object\_content\_set(conform, bx);
   evas\_object\_show(bx);

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

   elm_run();
   elm_shutdown();

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