\section{Dayselector}
\label{group__Dayselector}\index{Dayselector@{Dayselector}}


{\bfseries Dayselector widget\+:}  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Evas\+\_\+\+Object $\ast$ \hyperlink{group__Dayselector_gadd0db246776652c6a74b9cdec13c6ea4}{elm\+\_\+dayselector\+\_\+add} (Evas\+\_\+\+Object $\ast$parent)
\begin{DoxyCompactList}\small\item\em Add the dayselector. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
{\bfseries Dayselector widget\+:} 

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


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


\char`\"{}elm\+\_\+dayselector\char`\"{} is a day selection widget. It displays all seven days of the week and allows the user to select multiple days.

The selection can be toggle by just clicking on the day.

Dayselector also provides the functionality to check whether a day is selected or not.

First day of the week is taken from config settings by default. It can be altered by using the A\+P\+I elm\+\_\+dayselector\+\_\+week\+\_\+start\+\_\+set() A\+P\+I.

A\+P\+Is are provided for setting the duration of weekend elm\+\_\+dayselector\+\_\+weekend\+\_\+start\+\_\+set() and elm\+\_\+dayselector\+\_\+weekend\+\_\+length\+\_\+set() does this job.

Two styles of weekdays and weekends are supported in Dayselector. Application can emit signals on individual check objects for setting the weekday, weekend styles.

Once the weekend start day or weekend length changes, all the weekday \& weekend styles will be reset to default style. It\textquotesingle{}s the application\textquotesingle{}s responsibility to set the styles again by sending corresponding signals.

Supported elm\+\_\+object\+\_\+item 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}, \item \hyperlink{group__General_ga0531ec8867c72def7c780601764ca642}{elm\+\_\+object\+\_\+part\+\_\+content\+\_\+set}, \item \hyperlink{group__General_ga32413f4d59d8232cd362a922a281abf1}{elm\+\_\+object\+\_\+part\+\_\+content\+\_\+get}, \item \hyperlink{group__General_gadc5a1df25fe17e31739841133b53b5fc}{elm\+\_\+object\+\_\+part\+\_\+content\+\_\+unset}\end{DoxyItemize}
\begin{DoxyItemize}
\item \char`\"{}day0\char`\"{} indicates Sunday, \char`\"{}day1\char`\"{} indicates Monday etc. continues and so, \char`\"{}day6\char`\"{} indicates the Saturday part name.\end{DoxyItemize}
Application can change individual day display string by using the A\+P\+I \hyperlink{group__General_ga9c088563c442670796564d2e5158f154}{elm\+\_\+object\+\_\+part\+\_\+text\+\_\+set()}.

\hyperlink{group__General_ga0531ec8867c72def7c780601764ca642}{elm\+\_\+object\+\_\+part\+\_\+content\+\_\+set()} A\+P\+I sets the individual day object only if the passed one is a Check widget.

Check object representing a day can be set/get by the application by using the elm\+\_\+object\+\_\+part\+\_\+content\+\_\+set/get A\+P\+Is thus providing a way to handle the different check styles for individual days.

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

This widget emits the following signals, besides the ones sent from Layout\+: \begin{DoxyItemize}
\item {\ttfamily \char`\"{}dayselector,changed\char`\"{}} -\/ when the user changes the state of a day. \item {\ttfamily \char`\"{}language,changed\char`\"{}} -\/ the program\textquotesingle{}s language changed\end{DoxyItemize}
Available styles for dayselector are\+: \begin{DoxyItemize}
\item default\end{DoxyItemize}
This example shows the usage of the widget. \begin{DoxyItemize}
\item \hyperlink{dayselector_example}{Dayselector widget example} \end{DoxyItemize}


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


Add the dayselector. 


\begin{DoxyParams}{Parameters}
{\em parent} & Parent object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
New dayselector object or {\ttfamily N\+U\+L\+L}, if it cannot be created 
\end{DoxyReturn}
