\section{Label}
\label{group__Label}\index{Label@{Label}}


Widget to display text, with simple html-\/like markup.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
E\+I\+N\+A\+\_\+\+D\+E\+P\+R\+E\+C\+A\+T\+ED void \hyperlink{group__Label_gaffa92dd655e6e53ade71405761b068c6}{elm\+\_\+label\+\_\+slide\+\_\+set} (Evas\+\_\+\+Object $\ast$obj, Eina\+\_\+\+Bool slide)
\begin{DoxyCompactList}\small\item\em Set slide effect of label widget. \end{DoxyCompactList}\item 
E\+I\+N\+A\+\_\+\+D\+E\+P\+R\+E\+C\+A\+T\+ED Eina\+\_\+\+Bool \hyperlink{group__Label_ga33ae00a4f180d68bc07a5ce3dcf40eda}{elm\+\_\+label\+\_\+slide\+\_\+get} (const Evas\+\_\+\+Object $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get whether slide effect is shown or not. \end{DoxyCompactList}\item 
Evas\+\_\+\+Object $\ast$ \hyperlink{group__Label_ga01e161a300e3ee6f7a13a44505724e03}{elm\+\_\+label\+\_\+add} (Evas\+\_\+\+Object $\ast$parent)
\begin{DoxyCompactList}\small\item\em Add a new label to the parent. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Widget to display text, with simple html-\/like markup. 

 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{label_inheritance_tree}}
\end{DoxyImageNoCaption}


 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{img/widget/label/preview-00}}
\end{DoxyImageNoCaption}


The Label widget {\bfseries doesn\textquotesingle{}t} allow text to overflow its boundaries, if the text doesn\textquotesingle{}t fit the geometry of the label it will be ellipsized or be cut. Elementary provides several styles for this widget\+: \begin{DoxyItemize}
\item default -\/ No animation \item marker -\/ Centers the text in the label and makes it bold by default \item slide\+\_\+long -\/ The entire text appears from the right of the screen and slides until it disappears in the left of the screen(reappearing on the right again). \item slide\+\_\+short -\/ The text appears in the left of the label and slides to the right to show the overflow. When all of the text has been shown the position is reset. \item slide\+\_\+bounce -\/ The text appears in the left of the label and slides to the right to show the overflow. When all of the text has been shown the animation reverses, moving the text to the left.\end{DoxyItemize}
Custom themes can of course invent new markup tags and style them any way they like.

This widget inherits from the \hyperlink{group__Layout}{Layout} one, so that all the functions acting on it also work for label objects.

This widget emits the following signals, besides the ones sent from Layout\+: \begin{DoxyItemize}
\item {\ttfamily \char`\"{}language,changed\char`\"{}}\+: The program\textquotesingle{}s language changed. \item {\ttfamily \char`\"{}slide,end\char`\"{}}\+: The slide is end.\end{DoxyItemize}
See \hyperlink{tutorial_label}{Label example} for a demonstration of how to use a label widget. 

\subsection{Function Documentation}
\index{Label@{Label}!elm\+\_\+label\+\_\+add@{elm\+\_\+label\+\_\+add}}
\index{elm\+\_\+label\+\_\+add@{elm\+\_\+label\+\_\+add}!Label@{Label}}
\subsubsection[{\texorpdfstring{elm\+\_\+label\+\_\+add(\+Evas\+\_\+\+Object $\ast$parent)}{elm_label_add(Evas_Object *parent)}}]{\setlength{\rightskip}{0pt plus 5cm}Evas\+\_\+\+Object$\ast$ elm\+\_\+label\+\_\+add (
\begin{DoxyParamCaption}
\item[{Evas\+\_\+\+Object $\ast$}]{parent}
\end{DoxyParamCaption}
)}\label{group__Label_ga01e161a300e3ee6f7a13a44505724e03}


Add a new label to the parent. 


\begin{DoxyParams}{Parameters}
{\em parent} & The parent object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The new object or N\+U\+LL if it cannot be created 
\end{DoxyReturn}


Referenced by elm\+\_\+gengrid\+\_\+add(), elm\+\_\+genlist\+\_\+add(), elm\+\_\+need\+\_\+web(), elm\+\_\+object\+\_\+item\+\_\+data\+\_\+get(), and elm\+\_\+prefs\+\_\+add().

\index{Label@{Label}!elm\+\_\+label\+\_\+slide\+\_\+get@{elm\+\_\+label\+\_\+slide\+\_\+get}}
\index{elm\+\_\+label\+\_\+slide\+\_\+get@{elm\+\_\+label\+\_\+slide\+\_\+get}!Label@{Label}}
\subsubsection[{\texorpdfstring{elm\+\_\+label\+\_\+slide\+\_\+get(const Evas\+\_\+\+Object $\ast$obj)}{elm_label_slide_get(const Evas_Object *obj)}}]{\setlength{\rightskip}{0pt plus 5cm}E\+I\+N\+A\+\_\+\+D\+E\+P\+R\+E\+C\+A\+T\+ED Eina\+\_\+\+Bool elm\+\_\+label\+\_\+slide\+\_\+get (
\begin{DoxyParamCaption}
\item[{const Evas\+\_\+\+Object $\ast$}]{obj}
\end{DoxyParamCaption}
)}\label{group__Label_ga33ae00a4f180d68bc07a5ce3dcf40eda}


Get whether slide effect is shown or not. 


\begin{DoxyParams}{Parameters}
{\em obj} & The label object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
If true, slide effect is shown.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Label_gaffa92dd655e6e53ade71405761b068c6}{elm\+\_\+label\+\_\+slide\+\_\+set()}
\end{DoxySeeAlso}
\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000024}{Deprecated}]see elm\+\_\+label\+\_\+slide\+\_\+mode\+\_\+get() instead.\end{DoxyRefDesc}
\index{Label@{Label}!elm\+\_\+label\+\_\+slide\+\_\+set@{elm\+\_\+label\+\_\+slide\+\_\+set}}
\index{elm\+\_\+label\+\_\+slide\+\_\+set@{elm\+\_\+label\+\_\+slide\+\_\+set}!Label@{Label}}
\subsubsection[{\texorpdfstring{elm\+\_\+label\+\_\+slide\+\_\+set(\+Evas\+\_\+\+Object $\ast$obj, Eina\+\_\+\+Bool slide)}{elm_label_slide_set(Evas_Object *obj, Eina_Bool slide)}}]{\setlength{\rightskip}{0pt plus 5cm}E\+I\+N\+A\+\_\+\+D\+E\+P\+R\+E\+C\+A\+T\+ED void elm\+\_\+label\+\_\+slide\+\_\+set (
\begin{DoxyParamCaption}
\item[{Evas\+\_\+\+Object $\ast$}]{obj, }
\item[{Eina\+\_\+\+Bool}]{slide}
\end{DoxyParamCaption}
)}\label{group__Label_gaffa92dd655e6e53ade71405761b068c6}


Set slide effect of label widget. 


\begin{DoxyParams}{Parameters}
{\em obj} & The label object \\
\hline
{\em slide} & If true, slide effect will be shown\\
\hline
\end{DoxyParams}
If set to true, the text of the label will slide/scroll through the length of label.

\begin{DoxyWarning}{Warning}
This only works with the themes \char`\"{}slide\+\_\+short\char`\"{}, \char`\"{}slide\+\_\+long\char`\"{} and \char`\"{}slide\+\_\+bounce\char`\"{}. 

This doesn\textquotesingle{}t work if the line wrap(elm\+\_\+label\+\_\+line\+\_\+wrap\+\_\+set()) or ellipsis(elm\+\_\+label\+\_\+ellipsis\+\_\+set()) is set.
\end{DoxyWarning}
\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000023}{Deprecated}]see elm\+\_\+label\+\_\+slide\+\_\+mode\+\_\+set() instead.\end{DoxyRefDesc}
