\section{Actionslider}
\label{group__Actionslider}\index{Actionslider@{Actionslider}}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Evas\+\_\+\+Object $\ast$ \hyperlink{group__Actionslider_ga5a3323b8016cd6348a05a8cf827d7c74}{elm\+\_\+actionslider\+\_\+add} (Evas\+\_\+\+Object $\ast$parent)
\begin{DoxyCompactList}\small\item\em Add a new actionslider to the parent. \end{DoxyCompactList}\end{DoxyCompactItemize}


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


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


An actionslider is a switcher for 2 or 3 labels with customizable magnet properties. The user drags and releases the indicator, to choose a label.

Labels occupy the following positions. a. Left b. Right c. Center

Positions can be enabled or disabled.

Magnets can be set on the above positions.

When the indicator is released, it will move to its nearest \char`\"{}enabled and magnetized\char`\"{} position.

\begin{DoxyNote}{Note}
By default all positions are set as enabled.
\end{DoxyNote}
This widget inherits from the \hyperlink{group__Layout}{Layout} one, so that all the functions acting on it also work for actionslider objects.

This widget emits the following signals, besides the ones sent from Layout\+: \begin{DoxyItemize}
\item {\ttfamily \char`\"{}selected\char`\"{}} -\/ when user selects an enabled position (the label is passed as event info). \item {\ttfamily \char`\"{}pos\+\_\+changed\char`\"{}} -\/ when the indicator reaches any of the positions(\char`\"{}left\char`\"{}, \char`\"{}right\char`\"{} or \char`\"{}center\char`\"{}). \item {\ttfamily \char`\"{}language,changed\char`\"{}} -\/ the program\textquotesingle{}s language changed (since 1.\+9)\end{DoxyItemize}
Default text parts of the actionslider widget that you can use for are\+: \begin{DoxyItemize}
\item \char`\"{}indicator\char`\"{} -\/ An indicator label of the actionslider \item \char`\"{}left\char`\"{} -\/ A left label of the actionslider \item \char`\"{}right\char`\"{} -\/ A right label of the actionslider \item \char`\"{}center\char`\"{} -\/ A center label of the actionslider\end{DoxyItemize}
Supported elm\+\_\+object common A\+P\+Is. \begin{DoxyItemize}
\item \hyperlink{group__General_ga9c088563c442670796564d2e5158f154}{elm\+\_\+object\+\_\+part\+\_\+text\+\_\+set} \item \hyperlink{group__General_ga965e34858eb4b80b7a4b5feda732bf27}{elm\+\_\+object\+\_\+part\+\_\+text\+\_\+get}\end{DoxyItemize}
See an example of actionslider usage \hyperlink{actionslider_example_page}{here} 

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


Add a new actionslider to the parent. 


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