\hypertarget{group__Init}{}\section{Init / Shutdown}
\label{group__Init}\index{Init / Shutdown@{Init / Shutdown}}


Init / shutdown functions.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{group__Init_ga912c17c36d2d28d2cccc55f8fde2a274}{elm\+\_\+code\+\_\+init} (void)
\begin{DoxyCompactList}\small\item\em Initialize Elm Code. \end{DoxyCompactList}\item 
int \hyperlink{group__Init_gad62e1e3a0232c02bc6473a56821153d4}{elm\+\_\+code\+\_\+shutdown} (void)
\begin{DoxyCompactList}\small\item\em Shutdown Elm Code. \end{DoxyCompactList}\item 
\hyperlink{struct__Elm__Code}{Elm\+\_\+\+Code} $\ast$ \hyperlink{group__Init_ga91159eb36958a556840f19d432f26aea}{elm\+\_\+code\+\_\+create} (void)
\begin{DoxyCompactList}\small\item\em Create a new Elm Code instance. \end{DoxyCompactList}\item 
void \hyperlink{group__Init_gababec97a4b958a679bc9b7d1ab2501eb}{elm\+\_\+code\+\_\+free} (\hyperlink{struct__Elm__Code}{Elm\+\_\+\+Code} $\ast$code)
\begin{DoxyCompactList}\small\item\em Free an Elm Code instance. \end{DoxyCompactList}\item 
\hypertarget{group__Init_ga4936100148f214e63f6fc8f797ad82e9}{}\label{group__Init_ga4936100148f214e63f6fc8f797ad82e9} 
\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$ {\bfseries elm\+\_\+code\+\_\+diff\+\_\+widget\+\_\+add} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$parent, \hyperlink{struct__Elm__Code}{Elm\+\_\+\+Code} $\ast$code)
\item 
\hypertarget{group__Init_ga3e0028a70b77de090bd466cda7ff8359}{}\label{group__Init_ga3e0028a70b77de090bd466cda7ff8359} 
void {\bfseries elm\+\_\+code\+\_\+diff\+\_\+widget\+\_\+font\+\_\+set} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$widget, const char $\ast$name, int size)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Init / shutdown functions. 

UI Loading functions.

Functions of obligatory usage, handling proper initialization and shutdown routines.

Before the usage of any other function, Elm Code should be properly initialized with \hyperlink{group__Init_ga912c17c36d2d28d2cccc55f8fde2a274}{elm\+\_\+code\+\_\+init()} and the last call to Elm Code\textquotesingle{}s functions should be \hyperlink{group__Init_gad62e1e3a0232c02bc6473a56821153d4}{elm\+\_\+code\+\_\+shutdown()}, so everything will be correctly freed.

Elm Code logs everything with Eina Log, using the \char`\"{}elm\+\_\+code\char`\"{} log domain.

when it\textquotesingle{}s referencing a diff file

Functions for Diff UI loading. 

\subsection{Function Documentation}
\hypertarget{group__Init_ga912c17c36d2d28d2cccc55f8fde2a274}{}\label{group__Init_ga912c17c36d2d28d2cccc55f8fde2a274} 
\index{Init / Shutdown@{Init / Shutdown}!elm\+\_\+code\+\_\+init@{elm\+\_\+code\+\_\+init}}
\index{elm\+\_\+code\+\_\+init@{elm\+\_\+code\+\_\+init}!Init / Shutdown@{Init / Shutdown}}
\subsubsection{\texorpdfstring{elm\+\_\+code\+\_\+init()}{elm\_code\_init()}}
{\footnotesize\ttfamily int elm\+\_\+code\+\_\+init (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Initialize Elm Code. 

Initializes Elm Code, its dependencies and modules. Should be the first function of Elm Code to be called.

\begin{DoxyReturn}{Returns}
The init counter value.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Init_gad62e1e3a0232c02bc6473a56821153d4}{elm\+\_\+code\+\_\+shutdown()}. 
\end{DoxySeeAlso}


References eina\+\_\+init(), eina\+\_\+log\+\_\+domain\+\_\+register(), E\+I\+N\+A\+\_\+\+L\+O\+G\+\_\+\+E\+RR, and eina\+\_\+log\+\_\+timing().

\hypertarget{group__Init_gad62e1e3a0232c02bc6473a56821153d4}{}\label{group__Init_gad62e1e3a0232c02bc6473a56821153d4} 
\index{Init / Shutdown@{Init / Shutdown}!elm\+\_\+code\+\_\+shutdown@{elm\+\_\+code\+\_\+shutdown}}
\index{elm\+\_\+code\+\_\+shutdown@{elm\+\_\+code\+\_\+shutdown}!Init / Shutdown@{Init / Shutdown}}
\subsubsection{\texorpdfstring{elm\+\_\+code\+\_\+shutdown()}{elm\_code\_shutdown()}}
{\footnotesize\ttfamily int elm\+\_\+code\+\_\+shutdown (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Shutdown Elm Code. 

Shutdown Elm Code. If init count reaches 0, all the internal structures will be freed. Any Elm Code library call after this point will leads to an error.

\begin{DoxyReturn}{Returns}
Elm Code\textquotesingle{}s init counter value.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Init_ga912c17c36d2d28d2cccc55f8fde2a274}{elm\+\_\+code\+\_\+init()} 
\end{DoxySeeAlso}


References eina\+\_\+log\+\_\+timing().

\hypertarget{group__Init_ga91159eb36958a556840f19d432f26aea}{}\label{group__Init_ga91159eb36958a556840f19d432f26aea} 
\index{Init / Shutdown@{Init / Shutdown}!elm\+\_\+code\+\_\+create@{elm\+\_\+code\+\_\+create}}
\index{elm\+\_\+code\+\_\+create@{elm\+\_\+code\+\_\+create}!Init / Shutdown@{Init / Shutdown}}
\subsubsection{\texorpdfstring{elm\+\_\+code\+\_\+create()}{elm\_code\_create()}}
{\footnotesize\ttfamily \hyperlink{struct__Elm__Code}{Elm\+\_\+\+Code}$\ast$ elm\+\_\+code\+\_\+create (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Create a new Elm Code instance. 

This method creates a new Elm Code instance using an in-\/memory file for backing changes. A regular file can be set after creation if required. Once an Elm Code has been created you can create widgets that render the content.

\begin{DoxyReturn}{Returns}
an allocated Elm\+\_\+\+Code that references the given file 
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
elm\+\_\+code\+\_\+file\+\_\+open() 
\end{DoxySeeAlso}
\hypertarget{group__Init_gababec97a4b958a679bc9b7d1ab2501eb}{}\label{group__Init_gababec97a4b958a679bc9b7d1ab2501eb} 
\index{Init / Shutdown@{Init / Shutdown}!elm\+\_\+code\+\_\+free@{elm\+\_\+code\+\_\+free}}
\index{elm\+\_\+code\+\_\+free@{elm\+\_\+code\+\_\+free}!Init / Shutdown@{Init / Shutdown}}
\subsubsection{\texorpdfstring{elm\+\_\+code\+\_\+free()}{elm\_code\_free()}}
{\footnotesize\ttfamily void elm\+\_\+code\+\_\+free (\begin{DoxyParamCaption}\item[{\hyperlink{struct__Elm__Code}{Elm\+\_\+\+Code} $\ast$}]{code }\end{DoxyParamCaption})}



Free an Elm Code instance. 

Releases the resources retained by the code instance and any files it references. 