\hypertarget{group__Elm__Grid__Group}{}\doxysection{Grid}
\label{group__Elm__Grid__Group}\index{Grid@{Grid}}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{group__Elm__Grid__Group_ga65de117132685e08b7d7e8a19508055f}{elm\+\_\+grid\+\_\+size\+\_\+set}} (Elm\+\_\+\+Grid $\ast$obj, int w, int h)
\begin{DoxyCompactList}\small\item\em Set the virtual size of the grid. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Elm__Grid__Group_ga84ae8572d20813e28a08e0afb72a4efe}{elm\+\_\+grid\+\_\+size\+\_\+get}} (const Elm\+\_\+\+Grid $\ast$obj, int $\ast$w, int $\ast$h)
\begin{DoxyCompactList}\small\item\em Get the virtual size of the grid. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Elm__Grid__Group_gad7b4a0b344f40a59d7b57995a6d60542}{elm\+\_\+grid\+\_\+children\+\_\+get}} (const Elm\+\_\+\+Grid $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the list of the children for the grid. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Elm__Grid__Group_ga5108d4ccaff88fcb6545aa50b3f2245b}{elm\+\_\+grid\+\_\+clear}} (Elm\+\_\+\+Grid $\ast$obj, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} clear)
\begin{DoxyCompactList}\small\item\em Faster way to remove all child objects from a grid object. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Elm__Grid__Group_ga32ea51222700b4964ae139ca5337110a}{elm\+\_\+grid\+\_\+unpack}} (Elm\+\_\+\+Grid $\ast$obj, \mbox{\hyperlink{group__Evas__Object__Group_gaa5c3ea447e776040a102c696cd715574}{Efl\+\_\+\+Canvas\+\_\+\+Object}} $\ast$subobj)
\begin{DoxyCompactList}\small\item\em Unpack a child from a grid object. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Elm__Grid__Group_gab57fa17c4a0f505adade762fb1d79b34}{elm\+\_\+grid\+\_\+pack}} (Elm\+\_\+\+Grid $\ast$obj, \mbox{\hyperlink{group__Evas__Object__Group_gaa5c3ea447e776040a102c696cd715574}{Efl\+\_\+\+Canvas\+\_\+\+Object}} $\ast$subobj, int x, int y, int w, int h)
\begin{DoxyCompactList}\small\item\em Pack child at given position and size. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$ \mbox{\hyperlink{group__Elm__Grid__Group_gafc59e55e0aeeddb31846e18bf1fc2cc8}{elm\+\_\+grid\+\_\+add}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$parent)
\begin{DoxyCompactList}\small\item\em Add a new grid to the parent. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Elm__Grid__Group_ga11d201a53dbf5571da65eb7baebf4c19}{elm\+\_\+grid\+\_\+pack\+\_\+set}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$subobj, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} x, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} y, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} w, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} h)
\begin{DoxyCompactList}\small\item\em Set packing of an existing child at to position and size. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Elm__Grid__Group_ga80fe9ae4c312ebdfe39b64a59c3a4641}{elm\+\_\+grid\+\_\+pack\+\_\+get}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$subobj, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$x, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$y, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$w, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$h)
\begin{DoxyCompactList}\small\item\em Get packing of a child. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{grid_inheritance_tree}}
\end{DoxyImageNoCaption}


The grid is a grid layout widget that lays out a series of children as a fixed \char`\"{}grid\char`\"{} of widgets using a given percentage of the grid width and height each using the child object.

The Grid uses a \char`\"{}\+Virtual resolution\char`\"{} that is stretched to fill the grid widgets size itself. The default is 100 x 100, so that means the position and sizes of children will effectively be percentages (0 to 100) of the width or height of the grid widget 

\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Elm__Grid__Group_ga65de117132685e08b7d7e8a19508055f}\label{group__Elm__Grid__Group_ga65de117132685e08b7d7e8a19508055f}} 
\index{Grid@{Grid}!elm\_grid\_size\_set@{elm\_grid\_size\_set}}
\index{elm\_grid\_size\_set@{elm\_grid\_size\_set}!Grid@{Grid}}
\doxysubsubsection{\texorpdfstring{elm\_grid\_size\_set()}{elm\_grid\_size\_set()}}
{\footnotesize\ttfamily void elm\+\_\+grid\+\_\+size\+\_\+set (\begin{DoxyParamCaption}\item[{Elm\+\_\+\+Grid $\ast$}]{obj,  }\item[{int}]{w,  }\item[{int}]{h }\end{DoxyParamCaption})}



Set the virtual size of the grid. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object. \\
\hline
\mbox{\texttt{ in}}  & {\em w} & The virtual width of the grid \\
\hline
\mbox{\texttt{ in}}  & {\em h} & The virtual height of the grid \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Elm__Grid__Group_ga84ae8572d20813e28a08e0afb72a4efe}\label{group__Elm__Grid__Group_ga84ae8572d20813e28a08e0afb72a4efe}} 
\index{Grid@{Grid}!elm\_grid\_size\_get@{elm\_grid\_size\_get}}
\index{elm\_grid\_size\_get@{elm\_grid\_size\_get}!Grid@{Grid}}
\doxysubsubsection{\texorpdfstring{elm\_grid\_size\_get()}{elm\_grid\_size\_get()}}
{\footnotesize\ttfamily void elm\+\_\+grid\+\_\+size\+\_\+get (\begin{DoxyParamCaption}\item[{const Elm\+\_\+\+Grid $\ast$}]{obj,  }\item[{int $\ast$}]{w,  }\item[{int $\ast$}]{h }\end{DoxyParamCaption})}



Get the virtual size of the grid. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object. \\
\hline
\mbox{\texttt{ out}}  & {\em w} & The virtual width of the grid \\
\hline
\mbox{\texttt{ out}}  & {\em h} & The virtual height of the grid \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Elm__Grid__Group_gad7b4a0b344f40a59d7b57995a6d60542}\label{group__Elm__Grid__Group_gad7b4a0b344f40a59d7b57995a6d60542}} 
\index{Grid@{Grid}!elm\_grid\_children\_get@{elm\_grid\_children\_get}}
\index{elm\_grid\_children\_get@{elm\_grid\_children\_get}!Grid@{Grid}}
\doxysubsubsection{\texorpdfstring{elm\_grid\_children\_get()}{elm\_grid\_children\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ elm\+\_\+grid\+\_\+children\+\_\+get (\begin{DoxyParamCaption}\item[{const Elm\+\_\+\+Grid $\ast$}]{obj }\end{DoxyParamCaption})}



Get the list of the children for the grid. 

\begin{DoxyNote}{Note}
This is a duplicate of the list kept by the grid internally. It\textquotesingle{}s up to the user to destroy it when it no longer needs it. It\textquotesingle{}s possible to remove objects from the grid when walking this list, but these removals won\textquotesingle{}t be reflected on it.
\end{DoxyNote}

\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
List of children 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Elm__Grid__Group_ga5108d4ccaff88fcb6545aa50b3f2245b}\label{group__Elm__Grid__Group_ga5108d4ccaff88fcb6545aa50b3f2245b}} 
\index{Grid@{Grid}!elm\_grid\_clear@{elm\_grid\_clear}}
\index{elm\_grid\_clear@{elm\_grid\_clear}!Grid@{Grid}}
\doxysubsubsection{\texorpdfstring{elm\_grid\_clear()}{elm\_grid\_clear()}}
{\footnotesize\ttfamily void elm\+\_\+grid\+\_\+clear (\begin{DoxyParamCaption}\item[{Elm\+\_\+\+Grid $\ast$}]{obj,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{clear }\end{DoxyParamCaption})}



Faster way to remove all child objects from a grid object. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object. \\
\hline
\mbox{\texttt{ in}}  & {\em clear} & If {\ttfamily true}, it will delete just removed children \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Elm__Grid__Group_ga32ea51222700b4964ae139ca5337110a}\label{group__Elm__Grid__Group_ga32ea51222700b4964ae139ca5337110a}} 
\index{Grid@{Grid}!elm\_grid\_unpack@{elm\_grid\_unpack}}
\index{elm\_grid\_unpack@{elm\_grid\_unpack}!Grid@{Grid}}
\doxysubsubsection{\texorpdfstring{elm\_grid\_unpack()}{elm\_grid\_unpack()}}
{\footnotesize\ttfamily void elm\+\_\+grid\+\_\+unpack (\begin{DoxyParamCaption}\item[{Elm\+\_\+\+Grid $\ast$}]{obj,  }\item[{\mbox{\hyperlink{group__Evas__Object__Group_gaa5c3ea447e776040a102c696cd715574}{Efl\+\_\+\+Canvas\+\_\+\+Object}} $\ast$}]{subobj }\end{DoxyParamCaption})}



Unpack a child from a grid object. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object. \\
\hline
\mbox{\texttt{ in}}  & {\em subobj} & The child to unpack \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Elm__Grid__Group_gab57fa17c4a0f505adade762fb1d79b34}\label{group__Elm__Grid__Group_gab57fa17c4a0f505adade762fb1d79b34}} 
\index{Grid@{Grid}!elm\_grid\_pack@{elm\_grid\_pack}}
\index{elm\_grid\_pack@{elm\_grid\_pack}!Grid@{Grid}}
\doxysubsubsection{\texorpdfstring{elm\_grid\_pack()}{elm\_grid\_pack()}}
{\footnotesize\ttfamily void elm\+\_\+grid\+\_\+pack (\begin{DoxyParamCaption}\item[{Elm\+\_\+\+Grid $\ast$}]{obj,  }\item[{\mbox{\hyperlink{group__Evas__Object__Group_gaa5c3ea447e776040a102c696cd715574}{Efl\+\_\+\+Canvas\+\_\+\+Object}} $\ast$}]{subobj,  }\item[{int}]{x,  }\item[{int}]{y,  }\item[{int}]{w,  }\item[{int}]{h }\end{DoxyParamCaption})}



Pack child at given position and size. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object. \\
\hline
\mbox{\texttt{ in}}  & {\em subobj} & The child to pack. \\
\hline
\mbox{\texttt{ in}}  & {\em x} & The virtual x coord at which to pack it. \\
\hline
\mbox{\texttt{ in}}  & {\em y} & The virtual y coord at which to pack it. \\
\hline
\mbox{\texttt{ in}}  & {\em w} & The virtual width at which to pack it. \\
\hline
\mbox{\texttt{ in}}  & {\em h} & The virtual height at which to pack it. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Elm__Grid__Group_gafc59e55e0aeeddb31846e18bf1fc2cc8}\label{group__Elm__Grid__Group_gafc59e55e0aeeddb31846e18bf1fc2cc8}} 
\index{Grid@{Grid}!elm\_grid\_add@{elm\_grid\_add}}
\index{elm\_grid\_add@{elm\_grid\_add}!Grid@{Grid}}
\doxysubsubsection{\texorpdfstring{elm\_grid\_add()}{elm\_grid\_add()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$ elm\+\_\+grid\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{parent }\end{DoxyParamCaption})}



Add a new grid to the parent. 


\begin{DoxyParams}{Parameters}
{\em parent} & The parent object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The new object or NULL if it cannot be created 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\mbox{\Hypertarget{group__Elm__Grid__Group_ga11d201a53dbf5571da65eb7baebf4c19}\label{group__Elm__Grid__Group_ga11d201a53dbf5571da65eb7baebf4c19}} 
\index{Grid@{Grid}!elm\_grid\_pack\_set@{elm\_grid\_pack\_set}}
\index{elm\_grid\_pack\_set@{elm\_grid\_pack\_set}!Grid@{Grid}}
\doxysubsubsection{\texorpdfstring{elm\_grid\_pack\_set()}{elm\_grid\_pack\_set()}}
{\footnotesize\ttfamily void elm\+\_\+grid\+\_\+pack\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{subobj,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}}}]{x,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}}}]{y,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}}}]{w,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}}}]{h }\end{DoxyParamCaption})}



Set packing of an existing child at to position and size. 


\begin{DoxyParams}{Parameters}
{\em subobj} & The child to set packing of \\
\hline
{\em x} & The virtual x coord at which to pack it \\
\hline
{\em y} & The virtual y coord at which to pack it \\
\hline
{\em w} & The virtual width at which to pack it \\
\hline
{\em h} & The virtual height at which to pack it \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{group__Evas__Object__Grid__Group_gad65cd56643833080fbbca7b137c6126c}{evas\+\_\+object\+\_\+grid\+\_\+pack()}}.

\mbox{\Hypertarget{group__Elm__Grid__Group_ga80fe9ae4c312ebdfe39b64a59c3a4641}\label{group__Elm__Grid__Group_ga80fe9ae4c312ebdfe39b64a59c3a4641}} 
\index{Grid@{Grid}!elm\_grid\_pack\_get@{elm\_grid\_pack\_get}}
\index{elm\_grid\_pack\_get@{elm\_grid\_pack\_get}!Grid@{Grid}}
\doxysubsubsection{\texorpdfstring{elm\_grid\_pack\_get()}{elm\_grid\_pack\_get()}}
{\footnotesize\ttfamily void elm\+\_\+grid\+\_\+pack\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{subobj,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$}]{x,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$}]{y,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$}]{w,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$}]{h }\end{DoxyParamCaption})}



Get packing of a child. 


\begin{DoxyParams}{Parameters}
{\em subobj} & The child to query \\
\hline
{\em x} & Pointer to integer to store the virtual x coord \\
\hline
{\em y} & Pointer to integer to store the virtual y coord \\
\hline
{\em w} & Pointer to integer to store the virtual width \\
\hline
{\em h} & Pointer to integer to store the virtual height \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{group__Evas__Object__Grid__Group_gac81766cc47fe250ed7b69b6a59d62655}{evas\+\_\+object\+\_\+grid\+\_\+pack\+\_\+get()}}.

