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


Functions that deal with Text Classes.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Edje__Object__Text__Class_ga89c1386d949e637236757ac220c18fca}{edje\+\_\+text\+\_\+class\+\_\+set}} (const char $\ast$text\+\_\+class, const char $\ast$font, \mbox{\hyperlink{Evas__Common_8h_a331780d32a8c07afcc05e6a3193467f5}{Evas\+\_\+\+Font\+\_\+\+Size}} size)
\begin{DoxyCompactList}\small\item\em Sets the Edje text class. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Edje__Object__Text__Class_gac58127d97e612792fdd08f00bf921461}{edje\+\_\+text\+\_\+class\+\_\+get}} (const char $\ast$text\+\_\+class, const char $\ast$$\ast$font, \mbox{\hyperlink{Evas__Common_8h_a331780d32a8c07afcc05e6a3193467f5}{Evas\+\_\+\+Font\+\_\+\+Size}} $\ast$size)
\begin{DoxyCompactList}\small\item\em Gets the font and the font size from Edje text class. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Edje__Object__Text__Class_gab64222c463060368d279ecdeee726dd6}{edje\+\_\+text\+\_\+class\+\_\+del}} (const char $\ast$text\+\_\+class)
\begin{DoxyCompactList}\small\item\em Deletes the text class. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Edje__Object__Text__Class_ga11ca61fa534e26ed8e7490f6afe16a29}{edje\+\_\+text\+\_\+class\+\_\+list}} (void)
\begin{DoxyCompactList}\small\item\em Lists text classes. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ \mbox{\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 
\mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ \mbox{\hyperlink{group__Edje__Object__Text__Class_ga673357a224554e27f7aa833be4fac1cc}{edje\+\_\+mmap\+\_\+text\+\_\+class\+\_\+iterator\+\_\+new}} (\mbox{\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}


\doxysubsection{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. 

\doxysubsection{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}}
\doxysubsubsection{\texorpdfstring{edje\_text\_class\_set()}{edje\_text\_class\_set()}}
{\footnotesize\ttfamily \mbox{\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[{\mbox{\hyperlink{Evas__Common_8h_a331780d32a8c07afcc05e6a3193467f5}{Evas\+\_\+\+Font\+\_\+\+Size}}}]{size }\end{DoxyParamCaption})}



Sets 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}
\mbox{\hyperlink{group__Edje__Object__Text__Class_gac58127d97e612792fdd08f00bf921461}{edje\+\_\+text\+\_\+class\+\_\+get()}}. 
\end{DoxySeeAlso}
\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}}
\doxysubsubsection{\texorpdfstring{edje\_text\_class\_get()}{edje\_text\_class\_get()}}
{\footnotesize\ttfamily \mbox{\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[{\mbox{\hyperlink{Evas__Common_8h_a331780d32a8c07afcc05e6a3193467f5}{Evas\+\_\+\+Font\+\_\+\+Size}} $\ast$}]{size }\end{DoxyParamCaption})}



Gets 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}
\mbox{\hyperlink{group__Edje__Object__Text__Class_ga89c1386d949e637236757ac220c18fca}{edje\+\_\+text\+\_\+class\+\_\+set()}}.
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+14 
\end{DoxySince}
\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}}
\doxysubsubsection{\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})}



Deletes 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. \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}}
\doxysubsubsection{\texorpdfstring{edje\_text\_class\_list()}{edje\_text\_class\_list()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}}$\ast$ edje\+\_\+text\+\_\+class\+\_\+list (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Lists 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 eina\+\_\+hash\+\_\+foreach().

\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}}
\doxysubsubsection{\texorpdfstring{edje\_text\_class\_active\_iterator\_new()}{edje\_text\_class\_active\_iterator\_new()}}
{\footnotesize\ttfamily \mbox{\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\+\_\+\+M\+A\+G\+I\+C\+\_\+\+S\+ET.

\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}}
\doxysubsubsection{\texorpdfstring{edje\_mmap\_text\_class\_iterator\_new()}{edje\_mmap\_text\_class\_iterator\_new()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}}$\ast$ edje\+\_\+mmap\+\_\+text\+\_\+class\+\_\+iterator\+\_\+new (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{f }\end{DoxyParamCaption})}



Iterate over all text classes provided by an Edje file. 


\begin{DoxyParams}{Parameters}
{\em f} & The mapped edje file.\\
\hline
\end{DoxyParams}
\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.

