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


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


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


A Color\+Selector is a color selection widget. It allows application to set a series of colors.\+It also allows to load/save colors from/to config with a unique identifier, by default, the colors are loaded/saved from/to config using \char`\"{}default\char`\"{} identifier. The colors can be picked by user from the color set by clicking on individual color item on the palette or by selecting it from selector.

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

This widget emits the following signals, besides the ones sent from Layout\+:
\begin{DoxyItemize}
\item {\ttfamily \char`\"{}changed\char`\"{}} -\/ When the color value changes on selector event\+\_\+info is N\+U\+L\+L.
\item {\ttfamily \char`\"{}color,item,selected\char`\"{}} -\/ When user clicks on color item. The event\+\_\+info parameter of the callback will be the selected color item.
\item {\ttfamily \char`\"{}color,item,longpressed\char`\"{}} -\/ When user long presses on color item. The event info parameter of the callback contains selected color item.
\item {\ttfamily \char`\"{}focused\char`\"{}} -\/ When the colorselector has received focus. (since 1.\+8)
\item {\ttfamily \char`\"{}unfocused\char`\"{}} -\/ When the colorselector has lost focus. (since 1.\+8)
\item {\ttfamily \char`\"{}language,changed\char`\"{}} -\/ the program\textquotesingle{}s language changed (since 1.\+9)
\end{DoxyItemize}

See \hyperlink{tutorial_colorselector}{Color selector example}. 

\subsection{Function Documentation}
\index{Colorselector@{Colorselector}!elm\+\_\+colorselector\+\_\+add@{elm\+\_\+colorselector\+\_\+add}}
\index{elm\+\_\+colorselector\+\_\+add@{elm\+\_\+colorselector\+\_\+add}!Colorselector@{Colorselector}}
\subsubsection[{elm\+\_\+colorselector\+\_\+add(\+Evas\+\_\+\+Object $\ast$parent)}]{\setlength{\rightskip}{0pt plus 5cm}Evas\+\_\+\+Object$\ast$ elm\+\_\+colorselector\+\_\+add (
\begin{DoxyParamCaption}
\item[{Evas\+\_\+\+Object $\ast$}]{parent}
\end{DoxyParamCaption}
)}\label{group__Colorselector_ga27ebfd6da68b578e5f462eb4e71ce372}


Add a new colorselector to the parent. 


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


Referenced by elm\+\_\+color\+\_\+class\+\_\+editor\+\_\+add().

