\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__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}
\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(\+Eina\+\_\+\+File $\ast$f)}{edje_mmap_collection_list(Eina_File *f)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+List}$\ast$ edje\+\_\+mmap\+\_\+collection\+\_\+list (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+File} $\ast$}]{f}
\end{DoxyParamCaption}
)}\hypertarget{group__Edje__Object__File_gaa305461761c074079d3e8a5a1b71f71f}{}\label{group__Edje__Object__File_gaa305461761c074079d3e8a5a1b71f71f}


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().

\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(\+Eina\+\_\+\+List $\ast$lst)}{edje_mmap_collection_list_free(Eina_List *lst)}}]{\setlength{\rightskip}{0pt plus 5cm}void edje\+\_\+mmap\+\_\+collection\+\_\+list\+\_\+free (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+List} $\ast$}]{lst}
\end{DoxyParamCaption}
)}\hypertarget{group__Edje__Object__File_ga487b2bef0c47c30cd143b84a6d7c9167}{}\label{group__Edje__Object__File_ga487b2bef0c47c30cd143b84a6d7c9167}


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().

\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(\+Eina\+\_\+\+File $\ast$f, const char $\ast$glob)}{edje_mmap_group_exists(Eina_File *f, const char *glob)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Bool} edje\+\_\+mmap\+\_\+group\+\_\+exists (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+File} $\ast$}]{f, }
\item[{const char $\ast$}]{glob}
\end{DoxyParamCaption}
)}\hypertarget{group__Edje__Object__File_ga8d44d75ddf833e86e2dc54d81e17e9d5}{}\label{group__Edje__Object__File_ga8d44d75ddf833e86e2dc54d81e17e9d5}


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\+\_\+iterator\+\_\+next(), eina\+\_\+list\+\_\+append(), eina\+\_\+list\+\_\+free(), E\+I\+N\+A\+\_\+\+M\+A\+G\+I\+C\+\_\+\+S\+ET, and E\+I\+N\+A\+\_\+\+T\+R\+UE.



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

\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(void)}{edje_file_iterator_new(void)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Iterator}$\ast$ edje\+\_\+file\+\_\+iterator\+\_\+new (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\hypertarget{group__Edje__Object__File_ga12c147c724ad4f56058d7d432e706d0e}{}\label{group__Edje__Object__File_ga12c147c724ad4f56058d7d432e706d0e}


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.

\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(const char $\ast$file)}{edje_file_collection_list(const char *file)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+List}$\ast$ edje\+\_\+file\+\_\+collection\+\_\+list (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{file}
\end{DoxyParamCaption}
)}\hypertarget{group__Edje__Object__File_gaee33f65946d7ee62af5211ab9ab8faa9}{}\label{group__Edje__Object__File_gaee33f65946d7ee62af5211ab9ab8faa9}


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().

\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(\+Eina\+\_\+\+List $\ast$lst)}{edje_file_collection_list_free(Eina_List *lst)}}]{\setlength{\rightskip}{0pt plus 5cm}void edje\+\_\+file\+\_\+collection\+\_\+list\+\_\+free (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+List} $\ast$}]{lst}
\end{DoxyParamCaption}
)}\hypertarget{group__Edje__Object__File_ga4301434642378c3a733e39836446ae4f}{}\label{group__Edje__Object__File_ga4301434642378c3a733e39836446ae4f}


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().

\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(const char $\ast$file, const char $\ast$glob)}{edje_file_group_exists(const char *file, const char *glob)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Bool} edje\+\_\+file\+\_\+group\+\_\+exists (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{file, }
\item[{const char $\ast$}]{glob}
\end{DoxyParamCaption}
)}\hypertarget{group__Edje__Object__File_ga068228de33199dd1dd15495e38368309}{}\label{group__Edje__Object__File_ga068228de33199dd1dd15495e38368309}


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().

\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 error)}{edje_load_error_str(Edje_Load_Error error)}}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ edje\+\_\+load\+\_\+error\+\_\+str (
\begin{DoxyParamCaption}
\item[{{\bf Edje\+\_\+\+Load\+\_\+\+Error}}]{error}
\end{DoxyParamCaption}
)}\hypertarget{group__Edje__Object__File_ga034465c2de4ab495802da20f332c386e}{}\label{group__Edje__Object__File_ga034465c2de4ab495802da20f332c386e}


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}


References E\+D\+J\+E\+\_\+\+L\+O\+A\+D\+\_\+\+E\+R\+R\+O\+R\+\_\+\+C\+O\+R\+R\+U\+P\+T\+\_\+\+F\+I\+LE, E\+D\+J\+E\+\_\+\+L\+O\+A\+D\+\_\+\+E\+R\+R\+O\+R\+\_\+\+D\+O\+E\+S\+\_\+\+N\+O\+T\+\_\+\+E\+X\+I\+ST, E\+D\+J\+E\+\_\+\+L\+O\+A\+D\+\_\+\+E\+R\+R\+O\+R\+\_\+\+G\+E\+N\+E\+R\+IC, E\+D\+J\+E\+\_\+\+L\+O\+A\+D\+\_\+\+E\+R\+R\+O\+R\+\_\+\+I\+N\+C\+O\+M\+P\+A\+T\+I\+B\+L\+E\+\_\+\+F\+I\+LE, E\+D\+J\+E\+\_\+\+L\+O\+A\+D\+\_\+\+E\+R\+R\+O\+R\+\_\+\+P\+E\+R\+M\+I\+S\+S\+I\+O\+N\+\_\+\+D\+E\+N\+I\+ED, E\+D\+J\+E\+\_\+\+L\+O\+A\+D\+\_\+\+E\+R\+R\+O\+R\+\_\+\+R\+E\+C\+U\+R\+S\+I\+V\+E\+\_\+\+R\+E\+F\+E\+R\+E\+N\+CE, E\+D\+J\+E\+\_\+\+L\+O\+A\+D\+\_\+\+E\+R\+R\+O\+R\+\_\+\+R\+E\+S\+O\+U\+R\+C\+E\+\_\+\+A\+L\+L\+O\+C\+A\+T\+I\+O\+N\+\_\+\+F\+A\+I\+L\+ED, E\+D\+J\+E\+\_\+\+L\+O\+A\+D\+\_\+\+E\+R\+R\+O\+R\+\_\+\+U\+N\+K\+N\+O\+W\+N\+\_\+\+C\+O\+L\+L\+E\+C\+T\+I\+ON, and E\+D\+J\+E\+\_\+\+L\+O\+A\+D\+\_\+\+E\+R\+R\+O\+R\+\_\+\+U\+N\+K\+N\+O\+W\+N\+\_\+\+F\+O\+R\+M\+AT.

