This application is aimed to exemplify the slideshow widget.

It consists of a window with a slideshow widget set as \char`\"{}resize object\char`\"{}, along with a control bar, in the form of a notify. Those controls will exercise most of the slideshow\textquotesingle{}s API functions.

We create the slideshow, itself, first, making it {\bfseries{loop}} on its image items, when in slideshow mode\+:  
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\ \ \ slideshow\ =\ \mbox{\hyperlink{group__Elm__Slideshow_ga74dd80bc250a7f3ca2953559d90d2946}{elm\_slideshow\_add}}(win);}
\DoxyCodeLine{\ \ \ elm\_slideshow\_loop\_set(slideshow,\ \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_ga9379629ad8ad2860aa786d838a4a106a}{evas\_object\_size\_hint\_weight\_set}}(slideshow,}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{Evas__Common_8h_aa47c85083d3dae0111c21ec49359306a}{EVAS\_HINT\_EXPAND}},\ \mbox{\hyperlink{Evas__Common_8h_aa47c85083d3dae0111c21ec49359306a}{EVAS\_HINT\_EXPAND}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Win__Group_ga505d6bd217e5ee01e82b548ec35986eb}{elm\_win\_resize\_object\_add}}(win,\ slideshow);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga07208fcafd4739de606bc35fff684bf5}{evas\_object\_show}}(slideshow);}

\end{DoxyCodeInclude}
 Next, we define the {\bfseries{item class}} for our slideshow items. Slideshow images are going to be Elementary \mbox{\hyperlink{group__Elm__Photo}{photo}} widgets, here, as pointed by our {\ttfamily get} class function. We\textquotesingle{}ll let the Elementary infrastructure to delete those objects for us, and, as there\textquotesingle{}s no additional data attached to our slideshow items, the {\ttfamily del} class function can be left undefined\+:  
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{struct__Elm__Slideshow__Item__Class}{Elm\_Slideshow\_Item\_Class}}\ itc;}

\end{DoxyCodeInclude}
 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\ \ \ itc.func.get\ =\ \_get;}
\DoxyCodeLine{\ \ \ itc.func.del\ =\ NULL;}

\end{DoxyCodeInclude}
 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{comment}{/*\ get\ our\ images\ to\ make\ slideshow\ items\ */}}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *}
\DoxyCodeLine{\_get(\textcolor{keywordtype}{void}\ *data,\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *photo\ =\ \mbox{\hyperlink{group__Elm__Photo_gaa4f21ad743b6bc8c4bc106c388deea60}{elm\_photo\_add}}(obj);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Photo_ga697500daaa458b968f26f3584168bbc5}{elm\_photo\_file\_set}}(photo,\ data);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Photo_ga9a76ae6e26cf188f12f1967930027ae1}{elm\_photo\_fill\_inside\_set}}(photo,\ \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Styles_ga7fc2d1f9ba723470da7a05799c49f7fe}{elm\_object\_style\_set}}(photo,\ \textcolor{stringliteral}{"{}shadow"{}});}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ photo;}
\DoxyCodeLine{\}}

\end{DoxyCodeInclude}
 We now get to populate the slideshow widget with items. Our images are going to be some randomly chosen from the Elementary package, nine of them. For the first eight, we insert them ordered in the widget, by using elm\+\_\+slideshow\+\_\+item\+\_\+sorted\+\_\+insert(). The comparing function will use the image names to sort items. The last item is inserted at the end of the slideshow\textquotesingle{}s items list, with elm\+\_\+slideshow\+\_\+item\+\_\+add(). We check out how that list ends with elm\+\_\+slideshow\+\_\+items\+\_\+get(), than\+:  
\begin{DoxyCodeInclude}{0}

\end{DoxyCodeInclude}
 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__General_ga13a0c231414b86e62f68afe3c6fb462b}{Elm\_Object\_Item}}\ *slide\_first\ =\ NULL,\ *slide\_last\ =\ NULL,\ *slide\_it\ =\ NULL;}
\DoxyCodeLine{\ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *transition,\ *layout;}
\DoxyCodeLine{\ \ \ \textcolor{keyword}{const}\ \mbox{\hyperlink{struct__Eina__List}{Eina\_List}}\ *l,\ *list;}
\DoxyCodeLine{\ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *data\_dir;}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{char}\ img[IMG\_NUM][PATH\_MAX];}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{char}\ *img\_files[]\ =}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}logo.png"{}},\ \textcolor{stringliteral}{"{}plant\_01.jpg"{}},\ \textcolor{stringliteral}{"{}rock\_01.jpg"{}},\ \textcolor{stringliteral}{"{}rock\_02.jpg"{}},\ \textcolor{stringliteral}{"{}sky\_01.jpg"{}},}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}wood\_01.jpg"{}},\ \textcolor{stringliteral}{"{}mystrale.jpg"{}},\ \textcolor{stringliteral}{"{}mystrale\_2.jpg"{}}}
\DoxyCodeLine{\ \ \ \ \ \};}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{int}\ i\ =\ 0;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__App_ga0cefb59efb95841232561d67e34d9909}{elm\_app\_info\_set}}(elm\_main,\ \textcolor{stringliteral}{"{}elementary"{}},\ \textcolor{stringliteral}{"{}images"{}});}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ data\_dir\ =\ \mbox{\hyperlink{group__Elm__App_gab10cf98c5aa3936dfda01d6bca366d09}{elm\_app\_data\_dir\_get}}();}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{for}\ (i\ =\ 0;\ i\ <\ IMG\_NUM;\ i++)}
\DoxyCodeLine{\ \ \ \ \ snprintf(img[i],\ PATH\_MAX,\ \textcolor{stringliteral}{"{}\%s/images/\%s"{}},\ data\_dir,\ img\_files[i]);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__General_ga7a05f37fd3a019da5e26c5fc91fcd937}{elm\_policy\_set}}(\mbox{\hyperlink{group__Elm__General_ggaa16f3378ecdbf660fa378402e3c5a0a9a02fadb6faada04b19d0fa42c11a8d32a}{ELM\_POLICY\_QUIT}},\ \mbox{\hyperlink{group__Elm__General_gga46af37e6ac2c406321060be827117196abbe0962d88ae12afe1a173da881f56cd}{ELM\_POLICY\_QUIT\_LAST\_WINDOW\_CLOSED}});}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ win\ =\ \mbox{\hyperlink{group__Elm__Win__Group_ga23d9d1ffa0a65a1a1dd482d570db1ba0}{elm\_win\_util\_standard\_add}}(\textcolor{stringliteral}{"{}slideshow"{}},\ \textcolor{stringliteral}{"{}Slideshow\ example"{}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Win__Group_ga9a16a2f8c9fd5b6e9203ed9dcb53ea8b}{elm\_win\_autodel\_set}}(win,\ \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ slideshow\ =\ \mbox{\hyperlink{group__Elm__Slideshow_ga74dd80bc250a7f3ca2953559d90d2946}{elm\_slideshow\_add}}(win);}
\DoxyCodeLine{\ \ \ elm\_slideshow\_loop\_set(slideshow,\ \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group_ga9379629ad8ad2860aa786d838a4a106a}{evas\_object\_size\_hint\_weight\_set}}(slideshow,}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{Evas__Common_8h_aa47c85083d3dae0111c21ec49359306a}{EVAS\_HINT\_EXPAND}},\ \mbox{\hyperlink{Evas__Common_8h_aa47c85083d3dae0111c21ec49359306a}{EVAS\_HINT\_EXPAND}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Win__Group_ga505d6bd217e5ee01e82b548ec35986eb}{elm\_win\_resize\_object\_add}}(win,\ slideshow);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga07208fcafd4739de606bc35fff684bf5}{evas\_object\_show}}(slideshow);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ itc.func.get\ =\ \_get;}
\DoxyCodeLine{\ \ \ itc.func.del\ =\ NULL;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{for}\ (i\ =\ 0;\ i\ <\ IMG\_NUM;\ i++)}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ slide\_it\ =\ elm\_slideshow\_item\_sorted\_insert(slideshow,\ \&itc,\ img[i],}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \_cmp\_func);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (!slide\_first)\ slide\_first\ =\ slide\_it;}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ slide\_last\ =\ slide\_it;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ list\ =\ elm\_slideshow\_items\_get(slideshow);}
\DoxyCodeLine{\ \ \ printf(\textcolor{stringliteral}{"{}List\ of\ items\ in\ the\ slideshow:\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\_LIST\_FOREACH}}(list,\ l,\ slide\_it)}
\DoxyCodeLine{\ \ \ \ \ printf(\textcolor{stringliteral}{"{}\(\backslash\)t\%s\(\backslash\)n"{}},}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ (\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *)\mbox{\hyperlink{group__Elm__General_ga6593639f5568153bff4960224a7fadcb}{elm\_object\_item\_data\_get}}(slide\_it));}

\end{DoxyCodeInclude}
 Note that we save the pointers to the first and last items in the slideshow, for future use.

What follows is the code creating a notify, to be shown over the slideshow\textquotesingle{}s viewport, with knobs to act on it. We\textquotesingle{}re not showing that boilerplate code, but only the callbacks attached to the interesting smart events of those knobs. The first four are buttons, which will\+:
\begin{DoxyItemize}
\item Select the {\bfseries{next}} item in the slideshow
\item Select the {\bfseries{previous}} item in the slideshow
\item Select the {\bfseries{first}} item in the slideshow
\item Select the {\bfseries{last}} item in the slideshow
\end{DoxyItemize}

Check out the code for those four actions, being the two last {\ttfamily data} pointers the same {\ttfamily first} and {\ttfamily last} pointers we save before, respectively\+:  
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{comment}{/*\ jump\ to\ next\ item,\ cyclically\ */}}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_next(\textcolor{keywordtype}{void}\ *data,\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keywordtype}{void}\ *event\_info\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ elm\_slideshow\_next(data);}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_previous(\textcolor{keywordtype}{void}\ *data,\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keywordtype}{void}\ *event\_info\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ elm\_slideshow\_previous(data);}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_first(\textcolor{keywordtype}{void}\ *data,\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keywordtype}{void}\ *event\_info\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ elm\_slideshow\_item\_show(data);}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_last(\textcolor{keywordtype}{void}\ *data,\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keywordtype}{void}\ *event\_info\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ elm\_slideshow\_item\_show(data);}
\DoxyCodeLine{\}}

\end{DoxyCodeInclude}
 What follow are two hoversels, meant for one to change the slideshow\textquotesingle{}s {\bfseries{transition}} and {\bfseries{layout}} styles, respectively. We fetch all the available transition and layout names to populate those widgets and, when one selects any of them, we apply the corresponding setters on the slideshow\+:  
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\ \ \ hv\ =\ \mbox{\hyperlink{group__Elm__Hoversel_ga7158739c83c115dac56788f13874a017}{elm\_hoversel\_add}}(win);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Box__Group_ga66a10dd861578521af2ab7b8c2ca65c5}{elm\_box\_pack\_end}}(bx,\ hv);}
\DoxyCodeLine{\ \ \ elm\_hoversel\_hover\_parent\_set(hv,\ win);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\_LIST\_FOREACH}}(elm\_slideshow\_transitions\_get(slideshow),\ l,\ transition)}
\DoxyCodeLine{\ \ \ \ \ elm\_hoversel\_item\_add(hv,\ transition,\ NULL,\ 0,\ \_transition\_select,}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ transition);}
\DoxyCodeLine{\ \ \ elm\_object\_text\_set(hv,\ eina\_list\_data\_get(}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ elm\_slideshow\_transitions\_get(slideshow)));}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga07208fcafd4739de606bc35fff684bf5}{evas\_object\_show}}(hv);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ hv\ =\ \mbox{\hyperlink{group__Elm__Hoversel_ga7158739c83c115dac56788f13874a017}{elm\_hoversel\_add}}(win);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Box__Group_ga66a10dd861578521af2ab7b8c2ca65c5}{elm\_box\_pack\_end}}(bx,\ hv);}
\DoxyCodeLine{\ \ \ elm\_hoversel\_hover\_parent\_set(hv,\ win);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\_LIST\_FOREACH}}(elm\_slideshow\_layouts\_get(slideshow),\ l,\ layout)}
\DoxyCodeLine{\ \ \ \ \ elm\_hoversel\_item\_add(hv,\ layout,\ NULL,\ 0,\ \_layout\_select,\ layout);}
\DoxyCodeLine{\ \ \ elm\_object\_text\_set(hv,\ elm\_slideshow\_layout\_get(slideshow));}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga07208fcafd4739de606bc35fff684bf5}{evas\_object\_show}}(hv);}

\end{DoxyCodeInclude}
 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{comment}{/*\ transition\ changed\ */}}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_transition\_select(\textcolor{keywordtype}{void}\ *data,\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj,\ \textcolor{keywordtype}{void}\ *event\_info\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ elm\_slideshow\_transition\_set(slideshow,\ data);}
\DoxyCodeLine{\ \ \ elm\_object\_text\_set(obj,\ data);}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_layout\_select(\textcolor{keywordtype}{void}\ *data,\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj,\ \textcolor{keywordtype}{void}\ *event\_info\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ elm\_slideshow\_layout\_set(slideshow,\ data);}
\DoxyCodeLine{\ \ \ elm\_object\_text\_set(obj,\ data);}
\DoxyCodeLine{\}}

\end{DoxyCodeInclude}
 For one to change the transition {\bfseries{time}} on the slideshow widget, we use a spinner widget. We set it to the initial value of 3 (seconds), which will be probed by the next knob -- a button starting the slideshow, de facto. Note that changing the transition time while a slideshow is already happening will adjust its transition time\+:  
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\ \ \ spin\ =\ \mbox{\hyperlink{group__Elm__Spinner__Group_ga31416c7caa40b21480fd3e3fc7b40dce}{elm\_spinner\_add}}(win);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Spinner__Group_ga7a0e836516e3517c26ee3f2d44a77cb2}{elm\_spinner\_label\_format\_set}}(spin,\ \textcolor{stringliteral}{"{}\%2.0f\ s"{}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Smart__Object__Group_gac12dd6655f488cc47ce6cf00eb7d12b2}{evas\_object\_smart\_callback\_add}}(spin,\ \textcolor{stringliteral}{"{}changed"{}},\ \_spin,\ spin);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Spinner__Group_gad145d4c85ed9bb10512999f5e3acd740}{elm\_spinner\_step\_set}}(spin,\ 1);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Spinner__Group_gac8893709e98b174504bc86e8413d3a91}{elm\_spinner\_min\_max\_set}}(spin,\ 1,\ 30);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Spinner__Group_gaeaf35dbd89a82d08fa81666cd7590765}{elm\_spinner\_value\_set}}(spin,\ 3);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__Box__Group_ga66a10dd861578521af2ab7b8c2ca65c5}{elm\_box\_pack\_end}}(bx,\ spin);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga07208fcafd4739de606bc35fff684bf5}{evas\_object\_show}}(spin);}

\end{DoxyCodeInclude}
 
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{comment}{/*\ slideshow\ transition\ time\ has\ changed\ */}}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_spin(\textcolor{keywordtype}{void}\ *data,\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keywordtype}{void}\ *event\_info\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (elm\_slideshow\_timeout\_get(slideshow)\ >\ 0)}
\DoxyCodeLine{\ \ \ \ \ elm\_slideshow\_timeout\_set(slideshow,\ \mbox{\hyperlink{group__Elm__Spinner__Group_ga0f93a325d38ad9a249994a7dc4ea4f1b}{elm\_spinner\_value\_get}}(data));}
\DoxyCodeLine{\}}

\end{DoxyCodeInclude}
 Finally, we have two buttons which will, respectively, start and stop the slideshow on our widget. Here are their \char`\"{}clicked\char`\"{} callbacks\+:  
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{comment}{/*\ start\ the\ show!\ */}}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_start(\textcolor{keywordtype}{void}\ *data,\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keywordtype}{void}\ *event\_info\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ elm\_slideshow\_timeout\_set(slideshow,\ \mbox{\hyperlink{group__Elm__Spinner__Group_ga0f93a325d38ad9a249994a7dc4ea4f1b}{elm\_spinner\_value\_get}}(data));}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__General_ga6849a57df3316eabad5bec443bf87597}{elm\_object\_disabled\_set}}(bt\_start,\ \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__General_ga6849a57df3316eabad5bec443bf87597}{elm\_object\_disabled\_set}}(bt\_stop,\ \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\_FALSE}});}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{\_stop(\textcolor{keywordtype}{void}\ *data\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}}\ *obj\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keywordtype}{void}\ *event\_info\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ elm\_slideshow\_timeout\_set(slideshow,\ 0.0);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__General_ga6849a57df3316eabad5bec443bf87597}{elm\_object\_disabled\_set}}(bt\_start,\ \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\_FALSE}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Elm__General_ga6849a57df3316eabad5bec443bf87597}{elm\_object\_disabled\_set}}(bt\_stop,\ \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});}
\DoxyCodeLine{\}}

\end{DoxyCodeInclude}
 This is how the example program\textquotesingle{}s window looks like\+:  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth]{screenshots/slideshow_example}}
\end{DoxyImageNoCaption}


See the full \mbox{\hyperlink{slideshow_example_c}{source code}} for this example. 