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


Init / shutdown functions.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{struct__Elm__Code}{Elm\+\_\+\+Code}} $\ast$ \mbox{\hyperlink{group__Init_ga91159eb36958a556840f19d432f26aea}{elm\+\_\+code\+\_\+create}} (void)
\begin{DoxyCompactList}\small\item\em Create a new Elm Code instance. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Init_gababec97a4b958a679bc9b7d1ab2501eb}{elm\+\_\+code\+\_\+free}} (\mbox{\hyperlink{struct__Elm__Code}{Elm\+\_\+\+Code}} $\ast$code)
\begin{DoxyCompactList}\small\item\em Free an Elm Code instance. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Init_ga4936100148f214e63f6fc8f797ad82e9}\label{group__Init_ga4936100148f214e63f6fc8f797ad82e9}} 
\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$ {\bfseries elm\+\_\+code\+\_\+diff\+\_\+widget\+\_\+add} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$parent, \mbox{\hyperlink{struct__Elm__Code}{Elm\+\_\+\+Code}} $\ast$code)
\item 
\mbox{\Hypertarget{group__Init_ga3e0028a70b77de090bd466cda7ff8359}\label{group__Init_ga3e0028a70b77de090bd466cda7ff8359}} 
void {\bfseries elm\+\_\+code\+\_\+diff\+\_\+widget\+\_\+font\+\_\+set} (\mbox{\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 elm\+\_\+code\+\_\+init() and the last call to Elm Code\textquotesingle{}s functions should be 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}
\mbox{\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 \mbox{\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}
\mbox{\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[{\mbox{\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. 