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

\begin{DoxyCodeInclude}
\textcolor{comment}{//Compile with:}
\textcolor{comment}{//gcc -g table\_example\_01.c -o table\_example\_01 `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, *label, *table;

   elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);

   win = elm_win_util_standard_add(\textcolor{stringliteral}{"table"}, \textcolor{stringliteral}{"Table"});
   elm_win_autodel_set(win, EINA\_TRUE);

   table = elm_table_add(win);
   elm_win_resize_object_add(win, table);
   evas\_object\_show(table);
   elm_table_padding_set(table, 5, 5);
   elm_table_homogeneous_set(table, EINA\_TRUE);

   label = elm_label_add(win);
   elm\_object\_text\_set(label, \textcolor{stringliteral}{"label 0"});
   evas\_object\_show(label);
   elm_table_pack(table, label, 0, 0, 1, 1);

   label = elm_label_add(win);
   elm\_object\_text\_set(label, \textcolor{stringliteral}{"label 1"});
   evas\_object\_show(label);
   elm_table_pack(table, label, 1, 0, 1, 1);

   label = elm_label_add(win);
   elm\_object\_text\_set(label, \textcolor{stringliteral}{"label 2"});
   evas\_object\_show(label);
   elm_table_pack(table, label, 0, 1, 1, 1);

   label = elm_label_add(win);
   elm\_object\_text\_set(label, \textcolor{stringliteral}{"label 3"});
   evas\_object\_show(label);
   elm_table_pack(table, label, 1, 1, 1, 1);

   evas\_object\_show(win);

   elm_run();
   elm_shutdown();

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