\hypertarget{group__Edje__Object__File}{}\section{Edje Object File}
\label{group__Edje__Object__File}\index{Edje Object File@{Edje Object File}}


Functions to deals with E\+DJ files.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List} $\ast$ \hyperlink{group__Edje__Object__File_gaa305461761c074079d3e8a5a1b71f71f}{edje\+\_\+mmap\+\_\+collection\+\_\+list} (\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File} $\ast$f)
\begin{DoxyCompactList}\small\item\em Get a list of groups in an edje mapped file. \end{DoxyCompactList}\item 
void \hyperlink{group__Edje__Object__File_ga487b2bef0c47c30cd143b84a6d7c9167}{edje\+\_\+mmap\+\_\+collection\+\_\+list\+\_\+free} (\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List} $\ast$lst)
\begin{DoxyCompactList}\small\item\em Free file collection list. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Edje__Object__File_ga8d44d75ddf833e86e2dc54d81e17e9d5}{edje\+\_\+mmap\+\_\+group\+\_\+exists} (\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File} $\ast$f, const char $\ast$glob)
\begin{DoxyCompactList}\small\item\em Determine whether a group matching glob exists in an edje mapped file. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Edje__Object__File_ga1e03c788f92a870f58ffd5cf8bba1ee0}{edje\+\_\+mmap\+\_\+3d\+\_\+has} (\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File} $\ast$f, const char $\ast$group)
\begin{DoxyCompactList}\small\item\em Determine whether a group have 3D Scene. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator} $\ast$ \hyperlink{group__Edje__Object__File_ga12c147c724ad4f56058d7d432e706d0e}{edje\+\_\+file\+\_\+iterator\+\_\+new} (void)
\begin{DoxyCompactList}\small\item\em Iterate over all the opened Edje file. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List} $\ast$ \hyperlink{group__Edje__Object__File_gaee33f65946d7ee62af5211ab9ab8faa9}{edje\+\_\+file\+\_\+collection\+\_\+list} (const char $\ast$file)
\begin{DoxyCompactList}\small\item\em Get a list of groups in an edje file. \end{DoxyCompactList}\item 
void \hyperlink{group__Edje__Object__File_ga4301434642378c3a733e39836446ae4f}{edje\+\_\+file\+\_\+collection\+\_\+list\+\_\+free} (\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List} $\ast$lst)
\begin{DoxyCompactList}\small\item\em Free file collection list. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Edje__Object__File_ga068228de33199dd1dd15495e38368309}{edje\+\_\+file\+\_\+group\+\_\+exists} (const char $\ast$file, const char $\ast$glob)
\begin{DoxyCompactList}\small\item\em Determine whether a group matching glob exists in an edje file. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__Edje__Object__File_ga034465c2de4ab495802da20f332c386e}{edje\+\_\+load\+\_\+error\+\_\+str} (\hyperlink{group__Edje_ga71528437ffe32f3acfd53222d0d5a94f}{Edje\+\_\+\+Load\+\_\+\+Error} error)
\begin{DoxyCompactList}\small\item\em Converts the given Edje file load error code into a string describing it in English. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Functions to deals with E\+DJ files. 

Layouts in Edje are usually called themes and they are created using the E\+DC language. The E\+DC language is declarative and must be compiled before being used. The output of this compilation is an E\+DJ file, this file can be loaded by Edje, and the result is a edje object.

This groups of functions interact with these E\+DJ files, either by loading them or retrieving information of the E\+DC file about objects. 

\subsection{Function Documentation}
\hypertarget{group__Edje__Object__File_gaa305461761c074079d3e8a5a1b71f71f}{}\label{group__Edje__Object__File_gaa305461761c074079d3e8a5a1b71f71f} 
\index{Edje Object File@{Edje Object File}!edje\+\_\+mmap\+\_\+collection\+\_\+list@{edje\+\_\+mmap\+\_\+collection\+\_\+list}}
\index{edje\+\_\+mmap\+\_\+collection\+\_\+list@{edje\+\_\+mmap\+\_\+collection\+\_\+list}!Edje Object File@{Edje Object File}}
\subsubsection{\texorpdfstring{edje\+\_\+mmap\+\_\+collection\+\_\+list()}{edje\_mmap\_collection\_list()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}$\ast$ edje\+\_\+mmap\+\_\+collection\+\_\+list (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File} $\ast$}]{f }\end{DoxyParamCaption})}



Get a list of groups in an edje mapped file. 


\begin{DoxyParams}{Parameters}
{\em f} & The mapped file\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The Eina\+\_\+\+List of group names (char $\ast$)
\end{DoxyReturn}
Note\+: the list must be freed using \hyperlink{group__Edje__Object__File_ga487b2bef0c47c30cd143b84a6d7c9167}{edje\+\_\+mmap\+\_\+collection\+\_\+list\+\_\+free()} when you are done with it. 

References eina\+\_\+hash\+\_\+iterator\+\_\+key\+\_\+new(), E\+I\+N\+A\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+F\+O\+R\+E\+A\+CH, eina\+\_\+iterator\+\_\+free(), eina\+\_\+list\+\_\+append(), and eina\+\_\+stringshare\+\_\+add().



Referenced by edje\+\_\+file\+\_\+collection\+\_\+list().

\hypertarget{group__Edje__Object__File_ga487b2bef0c47c30cd143b84a6d7c9167}{}\label{group__Edje__Object__File_ga487b2bef0c47c30cd143b84a6d7c9167} 
\index{Edje Object File@{Edje Object File}!edje\+\_\+mmap\+\_\+collection\+\_\+list\+\_\+free@{edje\+\_\+mmap\+\_\+collection\+\_\+list\+\_\+free}}
\index{edje\+\_\+mmap\+\_\+collection\+\_\+list\+\_\+free@{edje\+\_\+mmap\+\_\+collection\+\_\+list\+\_\+free}!Edje Object File@{Edje Object File}}
\subsubsection{\texorpdfstring{edje\+\_\+mmap\+\_\+collection\+\_\+list\+\_\+free()}{edje\_mmap\_collection\_list\_free()}}
{\footnotesize\ttfamily void edje\+\_\+mmap\+\_\+collection\+\_\+list\+\_\+free (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List} $\ast$}]{lst }\end{DoxyParamCaption})}



Free file collection list. 


\begin{DoxyParams}{Parameters}
{\em lst} & The Eina\+\_\+\+List of groups\\
\hline
\end{DoxyParams}
Frees the list returned by \hyperlink{group__Edje__Object__File_gaa305461761c074079d3e8a5a1b71f71f}{edje\+\_\+mmap\+\_\+collection\+\_\+list()}. 

References edje\+\_\+file\+\_\+collection\+\_\+list\+\_\+free().

\hypertarget{group__Edje__Object__File_ga8d44d75ddf833e86e2dc54d81e17e9d5}{}\label{group__Edje__Object__File_ga8d44d75ddf833e86e2dc54d81e17e9d5} 
\index{Edje Object File@{Edje Object File}!edje\+\_\+mmap\+\_\+group\+\_\+exists@{edje\+\_\+mmap\+\_\+group\+\_\+exists}}
\index{edje\+\_\+mmap\+\_\+group\+\_\+exists@{edje\+\_\+mmap\+\_\+group\+\_\+exists}!Edje Object File@{Edje Object File}}
\subsubsection{\texorpdfstring{edje\+\_\+mmap\+\_\+group\+\_\+exists()}{edje\_mmap\_group\_exists()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} edje\+\_\+mmap\+\_\+group\+\_\+exists (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File} $\ast$}]{f,  }\item[{const char $\ast$}]{glob }\end{DoxyParamCaption})}



Determine whether a group matching glob exists in an edje mapped file. 


\begin{DoxyParams}{Parameters}
{\em f} & The mapped file \\
\hline
{\em glob} & A glob to match on\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
1 if a match is found, 0 otherwise 
\end{DoxyReturn}


References D\+BG, E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, eina\+\_\+file\+\_\+filename\+\_\+get(), eina\+\_\+hash\+\_\+find(), eina\+\_\+hash\+\_\+iterator\+\_\+data\+\_\+new(), E\+I\+N\+A\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+F\+O\+R\+E\+A\+CH, eina\+\_\+iterator\+\_\+free(), eina\+\_\+list\+\_\+append(), eina\+\_\+list\+\_\+free(), and E\+I\+N\+A\+\_\+\+T\+R\+UE.



Referenced by edje\+\_\+file\+\_\+group\+\_\+exists().

\hypertarget{group__Edje__Object__File_ga1e03c788f92a870f58ffd5cf8bba1ee0}{}\label{group__Edje__Object__File_ga1e03c788f92a870f58ffd5cf8bba1ee0} 
\index{Edje Object File@{Edje Object File}!edje\+\_\+mmap\+\_\+3d\+\_\+has@{edje\+\_\+mmap\+\_\+3d\+\_\+has}}
\index{edje\+\_\+mmap\+\_\+3d\+\_\+has@{edje\+\_\+mmap\+\_\+3d\+\_\+has}!Edje Object File@{Edje Object File}}
\subsubsection{\texorpdfstring{edje\+\_\+mmap\+\_\+3d\+\_\+has()}{edje\_mmap\_3d\_has()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} edje\+\_\+mmap\+\_\+3d\+\_\+has (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File} $\ast$}]{f,  }\item[{const char $\ast$}]{group }\end{DoxyParamCaption})}



Determine whether a group have 3D Scene. 


\begin{DoxyParams}{Parameters}
{\em f} & The mapped file \\
\hline
{\em glob} & The group name\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
1 if a Scene is found is found, 0 otherwise
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+18 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, eina\+\_\+iterator\+\_\+free(), eina\+\_\+iterator\+\_\+next(), E\+I\+N\+A\+\_\+\+M\+A\+G\+I\+C\+\_\+\+S\+ET, and E\+I\+N\+A\+\_\+\+T\+R\+UE.

\hypertarget{group__Edje__Object__File_ga12c147c724ad4f56058d7d432e706d0e}{}\label{group__Edje__Object__File_ga12c147c724ad4f56058d7d432e706d0e} 
\index{Edje Object File@{Edje Object File}!edje\+\_\+file\+\_\+iterator\+\_\+new@{edje\+\_\+file\+\_\+iterator\+\_\+new}}
\index{edje\+\_\+file\+\_\+iterator\+\_\+new@{edje\+\_\+file\+\_\+iterator\+\_\+new}!Edje Object File@{Edje Object File}}
\subsubsection{\texorpdfstring{edje\+\_\+file\+\_\+iterator\+\_\+new()}{edje\_file\_iterator\_new()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}$\ast$ edje\+\_\+file\+\_\+iterator\+\_\+new (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Iterate over all the opened Edje file. 

\begin{DoxyReturn}{Returns}
an iterator of Eina\+\_\+\+File currently opened Edje file.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+14 
\end{DoxySince}


References eina\+\_\+hash\+\_\+iterator\+\_\+data\+\_\+new(), and E\+I\+N\+A\+\_\+\+M\+A\+G\+I\+C\+\_\+\+S\+ET.

\hypertarget{group__Edje__Object__File_gaee33f65946d7ee62af5211ab9ab8faa9}{}\label{group__Edje__Object__File_gaee33f65946d7ee62af5211ab9ab8faa9} 
\index{Edje Object File@{Edje Object File}!edje\+\_\+file\+\_\+collection\+\_\+list@{edje\+\_\+file\+\_\+collection\+\_\+list}}
\index{edje\+\_\+file\+\_\+collection\+\_\+list@{edje\+\_\+file\+\_\+collection\+\_\+list}!Edje Object File@{Edje Object File}}
\subsubsection{\texorpdfstring{edje\+\_\+file\+\_\+collection\+\_\+list()}{edje\_file\_collection\_list()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}$\ast$ edje\+\_\+file\+\_\+collection\+\_\+list (\begin{DoxyParamCaption}\item[{const char $\ast$}]{file }\end{DoxyParamCaption})}



Get a list of groups in an edje file. 


\begin{DoxyParams}{Parameters}
{\em file} & The path to the edje file\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The Eina\+\_\+\+List of group names (char $\ast$) 
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Edje__Object__File_gaa305461761c074079d3e8a5a1b71f71f}{edje\+\_\+mmap\+\_\+collection\+\_\+list()}
\end{DoxySeeAlso}
Note\+: the list must be freed using \hyperlink{group__Edje__Object__File_ga4301434642378c3a733e39836446ae4f}{edje\+\_\+file\+\_\+collection\+\_\+list\+\_\+free()} when you are done with it.

\begin{DoxySeeAlso}{See also}
\hyperlink{group__Edje__Object__File_ga8d44d75ddf833e86e2dc54d81e17e9d5}{edje\+\_\+mmap\+\_\+group\+\_\+exists()} 
\end{DoxySeeAlso}


References edje\+\_\+mmap\+\_\+collection\+\_\+list(), E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, eina\+\_\+file\+\_\+close(), and eina\+\_\+file\+\_\+open().

\hypertarget{group__Edje__Object__File_ga4301434642378c3a733e39836446ae4f}{}\label{group__Edje__Object__File_ga4301434642378c3a733e39836446ae4f} 
\index{Edje Object File@{Edje Object File}!edje\+\_\+file\+\_\+collection\+\_\+list\+\_\+free@{edje\+\_\+file\+\_\+collection\+\_\+list\+\_\+free}}
\index{edje\+\_\+file\+\_\+collection\+\_\+list\+\_\+free@{edje\+\_\+file\+\_\+collection\+\_\+list\+\_\+free}!Edje Object File@{Edje Object File}}
\subsubsection{\texorpdfstring{edje\+\_\+file\+\_\+collection\+\_\+list\+\_\+free()}{edje\_file\_collection\_list\_free()}}
{\footnotesize\ttfamily void edje\+\_\+file\+\_\+collection\+\_\+list\+\_\+free (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List} $\ast$}]{lst }\end{DoxyParamCaption})}



Free file collection list. 


\begin{DoxyParams}{Parameters}
{\em lst} & The Eina\+\_\+\+List of groups\\
\hline
\end{DoxyParams}
Frees the list returned by \hyperlink{group__Edje__Object__File_gaee33f65946d7ee62af5211ab9ab8faa9}{edje\+\_\+file\+\_\+collection\+\_\+list()}. 

References eina\+\_\+list\+\_\+data\+\_\+get(), eina\+\_\+list\+\_\+remove(), and eina\+\_\+stringshare\+\_\+del().



Referenced by edje\+\_\+mmap\+\_\+collection\+\_\+list\+\_\+free().

\hypertarget{group__Edje__Object__File_ga068228de33199dd1dd15495e38368309}{}\label{group__Edje__Object__File_ga068228de33199dd1dd15495e38368309} 
\index{Edje Object File@{Edje Object File}!edje\+\_\+file\+\_\+group\+\_\+exists@{edje\+\_\+file\+\_\+group\+\_\+exists}}
\index{edje\+\_\+file\+\_\+group\+\_\+exists@{edje\+\_\+file\+\_\+group\+\_\+exists}!Edje Object File@{Edje Object File}}
\subsubsection{\texorpdfstring{edje\+\_\+file\+\_\+group\+\_\+exists()}{edje\_file\_group\_exists()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} edje\+\_\+file\+\_\+group\+\_\+exists (\begin{DoxyParamCaption}\item[{const char $\ast$}]{file,  }\item[{const char $\ast$}]{glob }\end{DoxyParamCaption})}



Determine whether a group matching glob exists in an edje file. 


\begin{DoxyParams}{Parameters}
{\em file} & The file path \\
\hline
{\em glob} & A glob to match on\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
1 if a match is found, 0 otherwise 
\end{DoxyReturn}


References edje\+\_\+mmap\+\_\+group\+\_\+exists(), E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, eina\+\_\+file\+\_\+close(), and eina\+\_\+file\+\_\+open().

\hypertarget{group__Edje__Object__File_ga034465c2de4ab495802da20f332c386e}{}\label{group__Edje__Object__File_ga034465c2de4ab495802da20f332c386e} 
\index{Edje Object File@{Edje Object File}!edje\+\_\+load\+\_\+error\+\_\+str@{edje\+\_\+load\+\_\+error\+\_\+str}}
\index{edje\+\_\+load\+\_\+error\+\_\+str@{edje\+\_\+load\+\_\+error\+\_\+str}!Edje Object File@{Edje Object File}}
\subsubsection{\texorpdfstring{edje\+\_\+load\+\_\+error\+\_\+str()}{edje\_load\_error\_str()}}
{\footnotesize\ttfamily const char$\ast$ edje\+\_\+load\+\_\+error\+\_\+str (\begin{DoxyParamCaption}\item[{\hyperlink{group__Edje_ga71528437ffe32f3acfd53222d0d5a94f}{Edje\+\_\+\+Load\+\_\+\+Error}}]{error }\end{DoxyParamCaption})}



Converts the given Edje file load error code into a string describing it in English. 


\begin{DoxyParams}{Parameters}
{\em error} & the error code, a value in \hyperlink{group__Edje_ga71528437ffe32f3acfd53222d0d5a94f}{Edje\+\_\+\+Load\+\_\+\+Error}. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Always returns a valid string. If the given {\ttfamily error} is not supported, {\ttfamily \char`\"{}\+Unknown error\char`\"{}} is returned.
\end{DoxyReturn}
edje\+\_\+object\+\_\+file\+\_\+set() is a function which sets an error value, afterwards, which can be fetched with edje\+\_\+object\+\_\+load\+\_\+error\+\_\+get(). The function in question is meant to be used in conjunction with the latter, for pretty-\/printing any possible error cause. \begin{Desc}
\item[Examples\+: ]\par
\hyperlink{edje-basic_8c-example}{edje-\/basic.\+c}, \hyperlink{edje-signals-messages_8c-example}{edje-\/signals-\/messages.\+c}, and \hyperlink{evas-aspect-hints_8c-example}{evas-\/aspect-\/hints.\+c}.\end{Desc}
