\section{Button}
\label{group__Button}\index{Button@{Button}}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__Button_gafce3dfb042551031f135836cb1614f22}{elm\-\_\-obj\-\_\-button\-\_\-admits\-\_\-autorepeat\-\_\-get}(ret)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-A\-D\-M\-I\-T\-S\-\_\-\-A\-U\-T\-O\-R\-E\-P\-E\-A\-T\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(Eina\-\_\-\-Bool $\ast$, ret)
\item 
\#define \hyperlink{group__Button_ga14d9668cd44c448bae93e0d9036c334a}{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-set}(on)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-A\-U\-T\-O\-R\-E\-P\-E\-A\-T\-\_\-\-S\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(Eina\-\_\-\-Bool, on)
\item 
\#define \hyperlink{group__Button_gaf78b5cdaf47048dd4c7079b7e2511e78}{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-get}(ret)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-A\-U\-T\-O\-R\-E\-P\-E\-A\-T\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(Eina\-\_\-\-Bool $\ast$, ret)
\item 
\#define \hyperlink{group__Button_gafa8a76b3392c2db076438d36f9f69d42}{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set}(t)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-A\-U\-T\-O\-R\-E\-P\-E\-A\-T\-\_\-\-I\-N\-I\-T\-I\-A\-L\-\_\-\-T\-I\-M\-E\-O\-U\-T\-\_\-\-S\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(double, t)
\item 
\#define \hyperlink{group__Button_ga86b37b78a584163e11f6cd59ea1f90c0}{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-get}(ret)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-A\-U\-T\-O\-R\-E\-P\-E\-A\-T\-\_\-\-I\-N\-I\-T\-I\-A\-L\-\_\-\-T\-I\-M\-E\-O\-U\-T\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(double $\ast$, ret)
\item 
\#define \hyperlink{group__Button_gaf1a9dc70dee7fb3adcbdc17229b414df}{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set}(t)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-A\-U\-T\-O\-R\-E\-P\-E\-A\-T\-\_\-\-G\-A\-P\-\_\-\-T\-I\-M\-E\-O\-U\-T\-\_\-\-S\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(double, t)
\item 
\#define \hyperlink{group__Button_ga782658f07bb729e489ecff5a8fcc8080}{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-get}(ret)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-A\-U\-T\-O\-R\-E\-P\-E\-A\-T\-\_\-\-G\-A\-P\-\_\-\-T\-I\-M\-E\-O\-U\-T\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(double $\ast$, ret)
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Evas\-\_\-\-Object $\ast$ \hyperlink{group__Button_ga0021b9d86d822367035843ed18bc6ea9}{elm\-\_\-button\-\_\-add} (Evas\-\_\-\-Object $\ast$parent)
\begin{DoxyCompactList}\small\item\em Add a new button to the parent's canvas. \end{DoxyCompactList}\item 
void \hyperlink{group__Button_ga4c5373e4d6c955c6480ee3f21a7dc1fa}{elm\-\_\-button\-\_\-autorepeat\-\_\-set} (Evas\-\_\-\-Object $\ast$obj, Eina\-\_\-\-Bool on)
\begin{DoxyCompactList}\small\item\em Turn on/off the autorepeat event generated when the button is kept pressed. \end{DoxyCompactList}\item 
Eina\-\_\-\-Bool \hyperlink{group__Button_ga428d70d4525a46e07a8164d40050eec6}{elm\-\_\-button\-\_\-autorepeat\-\_\-get} (const Evas\-\_\-\-Object $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get whether the autorepeat feature is enabled. \end{DoxyCompactList}\item 
void \hyperlink{group__Button_gadbffea6d39be360a72f094c267b95c7a}{elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set} (Evas\-\_\-\-Object $\ast$obj, double t)
\begin{DoxyCompactList}\small\item\em Set the initial timeout before the autorepeat event is generated. \end{DoxyCompactList}\item 
double \hyperlink{group__Button_gad005ba078078f9985968df8f82c7ff0c}{elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-get} (const Evas\-\_\-\-Object $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the initial timeout before the autorepeat event is generated. \end{DoxyCompactList}\item 
void \hyperlink{group__Button_gaf97340cba16cf46497f3dd2dce28ed8a}{elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set} (Evas\-\_\-\-Object $\ast$obj, double t)
\begin{DoxyCompactList}\small\item\em Set the interval between each generated autorepeat event. \end{DoxyCompactList}\item 
double \hyperlink{group__Button_ga4cc5be53d0a4de5b908b116d607ef583}{elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-get} (const Evas\-\_\-\-Object $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the interval between each generated autorepeat event. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics{button_inheritance_tree}}
\end{DoxyImageNoCaption}


 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics{img/widget/button/preview-00}}
\end{DoxyImageNoCaption}
  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics{img/widget/button/preview-01}}
\end{DoxyImageNoCaption}
  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics{img/widget/button/preview-02}}
\end{DoxyImageNoCaption}


This is a push-\/button. Press it and run some function. It can contain a simple label and icon object and it also has an autorepeat feature.

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

This widget emits the following signals, besides the ones sent from Layout\-: \begin{DoxyItemize}
\item \char`\"{}clicked\char`\"{}\-: the user clicked the button (press/release). \item \char`\"{}repeated\char`\"{}\-: the user pressed the button without releasing it. \item \char`\"{}pressed\char`\"{}\-: button was pressed. \item \char`\"{}unpressed\char`\"{}\-: button was released after being pressed. \item {\ttfamily \char`\"{}focused\char`\"{}} \-: When the button has received focus. (since 1.\-8) \item {\ttfamily \char`\"{}unfocused\char`\"{}} \-: When the button has lost focus. (since 1.\-8) In all cases, the {\ttfamily event} parameter of the callback will be {\ttfamily N\-U\-L\-L}.\end{DoxyItemize}
Also, defined in the default theme, the button has the following styles available\-: \begin{DoxyItemize}
\item default\-: a normal button. \item anchor\-: Like default, but the button fades away when the mouse is not over it, leaving only the text or icon. \item hoversel\-\_\-vertical\-: Internally used by \hyperlink{group__Hoversel}{Hoversel} to give a continuous look across its options. \item hoversel\-\_\-vertical\-\_\-entry\-: Another internal for \hyperlink{group__Hoversel}{Hoversel}. \item naviframe\-: Internally used by \hyperlink{group__Naviframe}{Naviframe} for its back button. \item colorselector\-: Internally used by \hyperlink{group__Colorselector}{Colorselector} for its left and right buttons.\end{DoxyItemize}
Default content parts of the button widget that you can use for are\-: \begin{DoxyItemize}
\item \char`\"{}icon\char`\"{} -\/ An icon of the button\end{DoxyItemize}
Default text parts of the button widget that you can use for are\-: \begin{DoxyItemize}
\item \char`\"{}default\char`\"{} -\/ Label of the button\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} \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} \item \hyperlink{group__General_ga1beada7edf5d714c0dba5459bcc993fc}{elm\-\_\-object\-\_\-signal\-\_\-emit} \item \hyperlink{group__General_ga6f9574b798efcd454afdac6f2904f633}{elm\-\_\-object\-\_\-signal\-\_\-callback\-\_\-add} \item \hyperlink{group__General_ga3c76b5447be522d647e352cb7ff7c9e6}{elm\-\_\-object\-\_\-signal\-\_\-callback\-\_\-del}\end{DoxyItemize}
Here is some sample code using it\-: \begin{DoxyItemize}
\item \hyperlink{button_example_00}{Button -\/ Hello, Button!} \item \hyperlink{button_example_01}{Button -\/ Complete example} \end{DoxyItemize}


\subsection{Macro Definition Documentation}
\index{Button@{Button}!elm\-\_\-obj\-\_\-button\-\_\-admits\-\_\-autorepeat\-\_\-get@{elm\-\_\-obj\-\_\-button\-\_\-admits\-\_\-autorepeat\-\_\-get}}
\index{elm\-\_\-obj\-\_\-button\-\_\-admits\-\_\-autorepeat\-\_\-get@{elm\-\_\-obj\-\_\-button\-\_\-admits\-\_\-autorepeat\-\_\-get}!Button@{Button}}
\subsubsection[{elm\-\_\-obj\-\_\-button\-\_\-admits\-\_\-autorepeat\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}\#define elm\-\_\-obj\-\_\-button\-\_\-admits\-\_\-autorepeat\-\_\-get(
\begin{DoxyParamCaption}
\item[{}]{ret}
\end{DoxyParamCaption}
)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-A\-D\-M\-I\-T\-S\-\_\-\-A\-U\-T\-O\-R\-E\-P\-E\-A\-T\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(Eina\-\_\-\-Bool $\ast$, ret)}\label{group__Button_gafce3dfb042551031f135836cb1614f22}
\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}
No description supplied by the E\-A\-P\-I.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em ret} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
elm\-\_\-button\-\_\-admits\-\_\-autorepeat\-\_\-get 
\end{DoxySeeAlso}
\index{Button@{Button}!elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-get@{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-get}}
\index{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-get@{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-get}!Button@{Button}}
\subsubsection[{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}\#define elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-get(
\begin{DoxyParamCaption}
\item[{}]{ret}
\end{DoxyParamCaption}
)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-A\-U\-T\-O\-R\-E\-P\-E\-A\-T\-\_\-\-G\-A\-P\-\_\-\-T\-I\-M\-E\-O\-U\-T\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(double $\ast$, ret)}\label{group__Button_ga782658f07bb729e489ecff5a8fcc8080}
\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}
Get the interval between each generated autorepeat event


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em ret} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Button_ga4cc5be53d0a4de5b908b116d607ef583}{elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-get} 
\end{DoxySeeAlso}


Referenced by elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-get().

\index{Button@{Button}!elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set@{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set}}
\index{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set@{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set}!Button@{Button}}
\subsubsection[{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}\#define elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set(
\begin{DoxyParamCaption}
\item[{}]{t}
\end{DoxyParamCaption}
)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-A\-U\-T\-O\-R\-E\-P\-E\-A\-T\-\_\-\-G\-A\-P\-\_\-\-T\-I\-M\-E\-O\-U\-T\-\_\-\-S\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(double, t)}\label{group__Button_gaf1a9dc70dee7fb3adcbdc17229b414df}
\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}
Set the interval between each generated autorepeat event


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em t} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Button_gaf97340cba16cf46497f3dd2dce28ed8a}{elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set} 
\end{DoxySeeAlso}


Referenced by elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set().

\index{Button@{Button}!elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-get@{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-get}}
\index{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-get@{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-get}!Button@{Button}}
\subsubsection[{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}\#define elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-get(
\begin{DoxyParamCaption}
\item[{}]{ret}
\end{DoxyParamCaption}
)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-A\-U\-T\-O\-R\-E\-P\-E\-A\-T\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(Eina\-\_\-\-Bool $\ast$, ret)}\label{group__Button_gaf78b5cdaf47048dd4c7079b7e2511e78}
\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}
Get whether the autorepeat feature is enabled


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em ret} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Button_ga428d70d4525a46e07a8164d40050eec6}{elm\-\_\-button\-\_\-autorepeat\-\_\-get} 
\end{DoxySeeAlso}


Referenced by elm\-\_\-button\-\_\-autorepeat\-\_\-get().

\index{Button@{Button}!elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-get@{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-get}}
\index{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-get@{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-get}!Button@{Button}}
\subsubsection[{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}\#define elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-get(
\begin{DoxyParamCaption}
\item[{}]{ret}
\end{DoxyParamCaption}
)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-A\-U\-T\-O\-R\-E\-P\-E\-A\-T\-\_\-\-I\-N\-I\-T\-I\-A\-L\-\_\-\-T\-I\-M\-E\-O\-U\-T\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(double $\ast$, ret)}\label{group__Button_ga86b37b78a584163e11f6cd59ea1f90c0}
\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}
Get the initial timeout before the autorepeat event is generated


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em ret} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Button_gad005ba078078f9985968df8f82c7ff0c}{elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-get} 
\end{DoxySeeAlso}


Referenced by elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-get().

\index{Button@{Button}!elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set@{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set}}
\index{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set@{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set}!Button@{Button}}
\subsubsection[{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}\#define elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set(
\begin{DoxyParamCaption}
\item[{}]{t}
\end{DoxyParamCaption}
)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-A\-U\-T\-O\-R\-E\-P\-E\-A\-T\-\_\-\-I\-N\-I\-T\-I\-A\-L\-\_\-\-T\-I\-M\-E\-O\-U\-T\-\_\-\-S\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(double, t)}\label{group__Button_gafa8a76b3392c2db076438d36f9f69d42}
\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}
Set the initial timeout before the autorepeat event is generated


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em t} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Button_gadbffea6d39be360a72f094c267b95c7a}{elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set} 
\end{DoxySeeAlso}


Referenced by elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set().

\index{Button@{Button}!elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-set@{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-set}}
\index{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-set@{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-set}!Button@{Button}}
\subsubsection[{elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}\#define elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-set(
\begin{DoxyParamCaption}
\item[{}]{on}
\end{DoxyParamCaption}
)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-B\-U\-T\-T\-O\-N\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-A\-U\-T\-O\-R\-E\-P\-E\-A\-T\-\_\-\-S\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(Eina\-\_\-\-Bool, on)}\label{group__Button_ga14d9668cd44c448bae93e0d9036c334a}
\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}
Turn on/off the autorepeat event generated when the button is kept pressed


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em on} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Button_ga4c5373e4d6c955c6480ee3f21a7dc1fa}{elm\-\_\-button\-\_\-autorepeat\-\_\-set} 
\end{DoxySeeAlso}


Referenced by elm\-\_\-button\-\_\-autorepeat\-\_\-set().



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


Add a new button to the parent's canvas. 


\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\-\_\-quicklaunch\-\_\-seed().

\index{Button@{Button}!elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-get@{elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-get}}
\index{elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-get@{elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-get}!Button@{Button}}
\subsubsection[{elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}double elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-get (
\begin{DoxyParamCaption}
\item[{const Evas\-\_\-\-Object $\ast$}]{obj}
\end{DoxyParamCaption}
)}\label{group__Button_ga4cc5be53d0a4de5b908b116d607ef583}


Get the interval between each generated autorepeat event. 


\begin{DoxyParams}{Parameters}
{\em obj} & The button object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Interval in seconds 
\end{DoxyReturn}


References elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-get.

\index{Button@{Button}!elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set@{elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set}}
\index{elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set@{elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set}!Button@{Button}}
\subsubsection[{elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}void elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set (
\begin{DoxyParamCaption}
\item[{Evas\-\_\-\-Object $\ast$}]{obj, }
\item[{double}]{t}
\end{DoxyParamCaption}
)}\label{group__Button_gaf97340cba16cf46497f3dd2dce28ed8a}


Set the interval between each generated autorepeat event. 

After the first {\ttfamily repeated} event is fired, all subsequent ones will follow after a delay of {\ttfamily t} seconds for each.


\begin{DoxyParams}{Parameters}
{\em obj} & The button object \\
\hline
{\em t} & Interval in seconds\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Button_gadbffea6d39be360a72f094c267b95c7a}{elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set()} 
\end{DoxySeeAlso}


References elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set.

\index{Button@{Button}!elm\-\_\-button\-\_\-autorepeat\-\_\-get@{elm\-\_\-button\-\_\-autorepeat\-\_\-get}}
\index{elm\-\_\-button\-\_\-autorepeat\-\_\-get@{elm\-\_\-button\-\_\-autorepeat\-\_\-get}!Button@{Button}}
\subsubsection[{elm\-\_\-button\-\_\-autorepeat\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}Eina\-\_\-\-Bool elm\-\_\-button\-\_\-autorepeat\-\_\-get (
\begin{DoxyParamCaption}
\item[{const Evas\-\_\-\-Object $\ast$}]{obj}
\end{DoxyParamCaption}
)}\label{group__Button_ga428d70d4525a46e07a8164d40050eec6}


Get whether the autorepeat feature is enabled. 


\begin{DoxyParams}{Parameters}
{\em obj} & The button object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
E\-I\-N\-A\-\_\-\-T\-R\-U\-E if autorepeat is on, E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E otherwise
\end{DoxyReturn}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Button_ga4c5373e4d6c955c6480ee3f21a7dc1fa}{elm\-\_\-button\-\_\-autorepeat\-\_\-set()} 
\end{DoxySeeAlso}


References elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-get.

\index{Button@{Button}!elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-get@{elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-get}}
\index{elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-get@{elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-get}!Button@{Button}}
\subsubsection[{elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}double elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-get (
\begin{DoxyParamCaption}
\item[{const Evas\-\_\-\-Object $\ast$}]{obj}
\end{DoxyParamCaption}
)}\label{group__Button_gad005ba078078f9985968df8f82c7ff0c}


Get the initial timeout before the autorepeat event is generated. 


\begin{DoxyParams}{Parameters}
{\em obj} & The button object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Timeout in seconds
\end{DoxyReturn}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Button_gadbffea6d39be360a72f094c267b95c7a}{elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set()} 
\end{DoxySeeAlso}


References elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-get.

\index{Button@{Button}!elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set@{elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set}}
\index{elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set@{elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set}!Button@{Button}}
\subsubsection[{elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}void elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set (
\begin{DoxyParamCaption}
\item[{Evas\-\_\-\-Object $\ast$}]{obj, }
\item[{double}]{t}
\end{DoxyParamCaption}
)}\label{group__Button_gadbffea6d39be360a72f094c267b95c7a}


Set the initial timeout before the autorepeat event is generated. 

Sets the timeout, in seconds, since the button is pressed until the first {\ttfamily repeated} signal is emitted. If {\ttfamily t} is 0.\-0 or less, there won't be any delay and the event will be fired the moment the button is pressed.


\begin{DoxyParams}{Parameters}
{\em obj} & The button object \\
\hline
{\em t} & Timeout in seconds\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__Button_ga4c5373e4d6c955c6480ee3f21a7dc1fa}{elm\-\_\-button\-\_\-autorepeat\-\_\-set()} 

\hyperlink{group__Button_gaf97340cba16cf46497f3dd2dce28ed8a}{elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set()} 
\end{DoxySeeAlso}


References elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set.

\index{Button@{Button}!elm\-\_\-button\-\_\-autorepeat\-\_\-set@{elm\-\_\-button\-\_\-autorepeat\-\_\-set}}
\index{elm\-\_\-button\-\_\-autorepeat\-\_\-set@{elm\-\_\-button\-\_\-autorepeat\-\_\-set}!Button@{Button}}
\subsubsection[{elm\-\_\-button\-\_\-autorepeat\-\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}void elm\-\_\-button\-\_\-autorepeat\-\_\-set (
\begin{DoxyParamCaption}
\item[{Evas\-\_\-\-Object $\ast$}]{obj, }
\item[{Eina\-\_\-\-Bool}]{on}
\end{DoxyParamCaption}
)}\label{group__Button_ga4c5373e4d6c955c6480ee3f21a7dc1fa}


Turn on/off the autorepeat event generated when the button is kept pressed. 

When off, no autorepeat is performed and buttons emit a normal {\ttfamily clicked} signal when they are clicked.

When on, keeping a button pressed will continuously emit a {\ttfamily repeated} signal until the button is released. The time it takes until it starts emitting the signal is given by \hyperlink{group__Button_gadbffea6d39be360a72f094c267b95c7a}{elm\-\_\-button\-\_\-autorepeat\-\_\-initial\-\_\-timeout\-\_\-set()}, and the time between each new emission by \hyperlink{group__Button_gaf97340cba16cf46497f3dd2dce28ed8a}{elm\-\_\-button\-\_\-autorepeat\-\_\-gap\-\_\-timeout\-\_\-set()}.


\begin{DoxyParams}{Parameters}
{\em obj} & The button object \\
\hline
{\em on} & A bool to turn on/off the event \\
\hline
\end{DoxyParams}


References elm\-\_\-obj\-\_\-button\-\_\-autorepeat\-\_\-set.

