\hypertarget{group__Edje__Object__Text__Class}{}\section{Edje Class\+: Text}
\label{group__Edje__Object__Text__Class}\index{Edje Class\+: Text@{Edje Class\+: Text}}


Functions that deal with Text Classes.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Edje__Object__Text__Class_ga89c1386d949e637236757ac220c18fca}{edje\+\_\+text\+\_\+class\+\_\+set} (const char $\ast$text\+\_\+class, const char $\ast$font, Evas\+\_\+\+Font\+\_\+\+Size size)
\begin{DoxyCompactList}\small\item\em Set the Edje text class. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Edje__Object__Text__Class_gac58127d97e612792fdd08f00bf921461}{edje\+\_\+text\+\_\+class\+\_\+get} (const char $\ast$text\+\_\+class, const char $\ast$$\ast$font, Evas\+\_\+\+Font\+\_\+\+Size $\ast$size)
\begin{DoxyCompactList}\small\item\em Get the font and the font size from Edje text class. \end{DoxyCompactList}\item 
void \hyperlink{group__Edje__Object__Text__Class_gab64222c463060368d279ecdeee726dd6}{edje\+\_\+text\+\_\+class\+\_\+del} (const char $\ast$text\+\_\+class)
\begin{DoxyCompactList}\small\item\em Delete the text class. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List} $\ast$ \hyperlink{group__Edje__Object__Text__Class_ga11ca61fa534e26ed8e7490f6afe16a29}{edje\+\_\+text\+\_\+class\+\_\+list} (void)
\begin{DoxyCompactList}\small\item\em List text classes. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator} $\ast$ \hyperlink{group__Edje__Object__Text__Class_ga87a6ffce57064c2e19cd40ed462db895}{edje\+\_\+text\+\_\+class\+\_\+active\+\_\+iterator\+\_\+new} (void)
\begin{DoxyCompactList}\small\item\em Iterate over all active classes of an application. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator} $\ast$ \hyperlink{group__Edje__Object__Text__Class_ga673357a224554e27f7aa833be4fac1cc}{edje\+\_\+mmap\+\_\+text\+\_\+class\+\_\+iterator\+\_\+new} (\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File} $\ast$f)
\begin{DoxyCompactList}\small\item\em Iterate over all text classes provided by an Edje file. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Functions that deal with Text Classes. 

Sometimes we want to change the text of two or more parts equally and that\textquotesingle{}s when we use text classes.

If one or more parts are assigned with a text class, when we set font attributes to this class will update all these parts with the new font attributes. Setting values to a text class at a process level will affect all parts with that text class, while at object level will affect only the parts inside an specified object. 

\subsection{Function Documentation}
\mbox{\Hypertarget{group__Edje__Object__Text__Class_ga89c1386d949e637236757ac220c18fca}\label{group__Edje__Object__Text__Class_ga89c1386d949e637236757ac220c18fca}} 
\index{Edje Class\+: Text@{Edje Class\+: Text}!edje\+\_\+text\+\_\+class\+\_\+set@{edje\+\_\+text\+\_\+class\+\_\+set}}
\index{edje\+\_\+text\+\_\+class\+\_\+set@{edje\+\_\+text\+\_\+class\+\_\+set}!Edje Class\+: Text@{Edje Class\+: Text}}
\subsubsection{\texorpdfstring{edje\+\_\+text\+\_\+class\+\_\+set()}{edje\_text\_class\_set()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} edje\+\_\+text\+\_\+class\+\_\+set (\begin{DoxyParamCaption}\item[{const char $\ast$}]{text\+\_\+class,  }\item[{const char $\ast$}]{font,  }\item[{Evas\+\_\+\+Font\+\_\+\+Size}]{size }\end{DoxyParamCaption})}



Set the Edje text class. 


\begin{DoxyParams}{Parameters}
{\em text\+\_\+class} & The text class name \\
\hline
{\em font} & The font name \\
\hline
{\em size} & The font size\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily E\+I\+N\+A\+\_\+\+T\+R\+UE}, on success or {\ttfamily E\+I\+N\+A\+\_\+\+F\+A\+L\+SE}, on error
\end{DoxyReturn}
This function updates all Edje members at the process level which belong to this text class with the new font attributes. If the {\ttfamily size} is 0 then the font size will be kept with the previous size. If the {\ttfamily size} is less then 0 then the font size will be calculated in the percentage. For example, if the {\ttfamily size} is -\/50, then the font size will be scaled to half of the original size and if the {\ttfamily size} is -\/10 then the font size will be scaled as much as 0.\+1x.

\begin{DoxySeeAlso}{See also}
\hyperlink{group__Edje__Object__Text__Class_gac58127d97e612792fdd08f00bf921461}{edje\+\_\+text\+\_\+class\+\_\+get()}. 
\end{DoxySeeAlso}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, eina\+\_\+hash\+\_\+add(), eina\+\_\+hash\+\_\+find(), eina\+\_\+hash\+\_\+string\+\_\+superfast\+\_\+new(), eina\+\_\+stringshare\+\_\+add(), and E\+I\+N\+A\+\_\+\+T\+R\+UE.

\mbox{\Hypertarget{group__Edje__Object__Text__Class_gac58127d97e612792fdd08f00bf921461}\label{group__Edje__Object__Text__Class_gac58127d97e612792fdd08f00bf921461}} 
\index{Edje Class\+: Text@{Edje Class\+: Text}!edje\+\_\+text\+\_\+class\+\_\+get@{edje\+\_\+text\+\_\+class\+\_\+get}}
\index{edje\+\_\+text\+\_\+class\+\_\+get@{edje\+\_\+text\+\_\+class\+\_\+get}!Edje Class\+: Text@{Edje Class\+: Text}}
\subsubsection{\texorpdfstring{edje\+\_\+text\+\_\+class\+\_\+get()}{edje\_text\_class\_get()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} edje\+\_\+text\+\_\+class\+\_\+get (\begin{DoxyParamCaption}\item[{const char $\ast$}]{text\+\_\+class,  }\item[{const char $\ast$$\ast$}]{font,  }\item[{Evas\+\_\+\+Font\+\_\+\+Size $\ast$}]{size }\end{DoxyParamCaption})}



Get the font and the font size from Edje text class. 


\begin{DoxyParams}{Parameters}
{\em text\+\_\+class} & The text class name \\
\hline
{\em font} & The font name \\
\hline
{\em size} & The font size\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily E\+I\+N\+A\+\_\+\+T\+R\+UE}, on success or {\ttfamily E\+I\+N\+A\+\_\+\+F\+A\+L\+SE}, on error
\end{DoxyReturn}
This function gets the font and the font name from the specified Edje text class. The font string will only be valid until the text class is changed or edje is shut down. \begin{DoxySeeAlso}{See also}
\hyperlink{group__Edje__Object__Text__Class_ga89c1386d949e637236757ac220c18fca}{edje\+\_\+text\+\_\+class\+\_\+set()}.
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+14 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, eina\+\_\+hash\+\_\+find(), and E\+I\+N\+A\+\_\+\+T\+R\+UE.

\mbox{\Hypertarget{group__Edje__Object__Text__Class_gab64222c463060368d279ecdeee726dd6}\label{group__Edje__Object__Text__Class_gab64222c463060368d279ecdeee726dd6}} 
\index{Edje Class\+: Text@{Edje Class\+: Text}!edje\+\_\+text\+\_\+class\+\_\+del@{edje\+\_\+text\+\_\+class\+\_\+del}}
\index{edje\+\_\+text\+\_\+class\+\_\+del@{edje\+\_\+text\+\_\+class\+\_\+del}!Edje Class\+: Text@{Edje Class\+: Text}}
\subsubsection{\texorpdfstring{edje\+\_\+text\+\_\+class\+\_\+del()}{edje\_text\_class\_del()}}
{\footnotesize\ttfamily void edje\+\_\+text\+\_\+class\+\_\+del (\begin{DoxyParamCaption}\item[{const char $\ast$}]{text\+\_\+class }\end{DoxyParamCaption})}



Delete the text class. 


\begin{DoxyParams}{Parameters}
{\em text\+\_\+class} & The text class name string\\
\hline
\end{DoxyParams}
This function deletes any values at the process level for the specified text class. 

References eina\+\_\+hash\+\_\+del(), 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\+\_\+stringshare\+\_\+del(), and E\+I\+N\+A\+\_\+\+T\+R\+UE.

\mbox{\Hypertarget{group__Edje__Object__Text__Class_ga11ca61fa534e26ed8e7490f6afe16a29}\label{group__Edje__Object__Text__Class_ga11ca61fa534e26ed8e7490f6afe16a29}} 
\index{Edje Class\+: Text@{Edje Class\+: Text}!edje\+\_\+text\+\_\+class\+\_\+list@{edje\+\_\+text\+\_\+class\+\_\+list}}
\index{edje\+\_\+text\+\_\+class\+\_\+list@{edje\+\_\+text\+\_\+class\+\_\+list}!Edje Class\+: Text@{Edje Class\+: Text}}
\subsubsection{\texorpdfstring{edje\+\_\+text\+\_\+class\+\_\+list()}{edje\_text\_class\_list()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}$\ast$ edje\+\_\+text\+\_\+class\+\_\+list (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



List text classes. 

\begin{DoxyReturn}{Returns}
A list of text class names (strings). These strings are stringshares and the list must be free()\textquotesingle{}d by the caller.
\end{DoxyReturn}
This function lists all text classes known about by the current process. 

References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, eina\+\_\+hash\+\_\+foreach(), eina\+\_\+hash\+\_\+iterator\+\_\+data\+\_\+new(), 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.

\mbox{\Hypertarget{group__Edje__Object__Text__Class_ga87a6ffce57064c2e19cd40ed462db895}\label{group__Edje__Object__Text__Class_ga87a6ffce57064c2e19cd40ed462db895}} 
\index{Edje Class\+: Text@{Edje Class\+: Text}!edje\+\_\+text\+\_\+class\+\_\+active\+\_\+iterator\+\_\+new@{edje\+\_\+text\+\_\+class\+\_\+active\+\_\+iterator\+\_\+new}}
\index{edje\+\_\+text\+\_\+class\+\_\+active\+\_\+iterator\+\_\+new@{edje\+\_\+text\+\_\+class\+\_\+active\+\_\+iterator\+\_\+new}!Edje Class\+: Text@{Edje Class\+: Text}}
\subsubsection{\texorpdfstring{edje\+\_\+text\+\_\+class\+\_\+active\+\_\+iterator\+\_\+new()}{edje\_text\_class\_active\_iterator\_new()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}$\ast$ edje\+\_\+text\+\_\+class\+\_\+active\+\_\+iterator\+\_\+new (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Iterate over all active classes of an application. 

\begin{DoxyReturn}{Returns}
an iterator of Edje\+\_\+\+Text\+\_\+\+Class of the currently active text class
\end{DoxyReturn}
This function only iterates over the Edje\+\_\+\+Text\+\_\+\+Class in use by an application.

\begin{DoxySince}{Since}
1.\+17 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, eina\+\_\+hash\+\_\+find(), eina\+\_\+hash\+\_\+iterator\+\_\+tuple\+\_\+new(), eina\+\_\+list\+\_\+append(), E\+I\+N\+A\+\_\+\+M\+A\+G\+I\+C\+\_\+\+S\+ET, eina\+\_\+stringshare\+\_\+add(), and E\+I\+N\+A\+\_\+\+T\+R\+UE.

\mbox{\Hypertarget{group__Edje__Object__Text__Class_ga673357a224554e27f7aa833be4fac1cc}\label{group__Edje__Object__Text__Class_ga673357a224554e27f7aa833be4fac1cc}} 
\index{Edje Class\+: Text@{Edje Class\+: Text}!edje\+\_\+mmap\+\_\+text\+\_\+class\+\_\+iterator\+\_\+new@{edje\+\_\+mmap\+\_\+text\+\_\+class\+\_\+iterator\+\_\+new}}
\index{edje\+\_\+mmap\+\_\+text\+\_\+class\+\_\+iterator\+\_\+new@{edje\+\_\+mmap\+\_\+text\+\_\+class\+\_\+iterator\+\_\+new}!Edje Class\+: Text@{Edje Class\+: Text}}
\subsubsection{\texorpdfstring{edje\+\_\+mmap\+\_\+text\+\_\+class\+\_\+iterator\+\_\+new()}{edje\_mmap\_text\_class\_iterator\_new()}}
{\footnotesize\ttfamily \hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}$\ast$ edje\+\_\+mmap\+\_\+text\+\_\+class\+\_\+iterator\+\_\+new (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File} $\ast$}]{f }\end{DoxyParamCaption})}



Iterate over all text classes provided by an Edje file. 

\begin{DoxyReturn}{Returns}
an iterator of Edje\+\_\+\+Text\+\_\+\+Class provided by the Edje file.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+17 
\end{DoxySince}


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

