\section{Segment\-Control}
\label{group__SegmentControl}\index{Segment\-Control@{Segment\-Control}}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__SegmentControl_gab3c65fff02359ff58d181474702f417c}{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-add}(icon, label, ret)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-I\-T\-E\-M\-\_\-\-A\-D\-D), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(Evas\-\_\-\-Object $\ast$, icon), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(const char $\ast$, label), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(\hyperlink{group__General_ga13a0c231414b86e62f68afe3c6fb462b}{Elm\-\_\-\-Object\-\_\-\-Item} $\ast$$\ast$, ret)
\item 
\#define \hyperlink{group__SegmentControl_ga2334fb95565db204bc3c96ad60002ff9}{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at}(icon, label, idx, ret)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-I\-T\-E\-M\-\_\-\-I\-N\-S\-E\-R\-T\-\_\-\-A\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(Evas\-\_\-\-Object $\ast$, icon), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(const char $\ast$, label), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(int, idx), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(\hyperlink{group__General_ga13a0c231414b86e62f68afe3c6fb462b}{Elm\-\_\-\-Object\-\_\-\-Item} $\ast$$\ast$, ret)
\item 
\#define \hyperlink{group__SegmentControl_ga62b287df444152681395b60cdf149a0e}{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at}(idx)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-I\-T\-E\-M\-\_\-\-D\-E\-L\-\_\-\-A\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(int, idx)
\item 
\#define \hyperlink{group__SegmentControl_gaf774874b28d6ae7c1c8510f27ea6bd07}{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-label\-\_\-get}(idx, ret)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-I\-T\-E\-M\-\_\-\-L\-A\-B\-E\-L\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(int, idx), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(const char $\ast$$\ast$, ret)
\item 
\#define \hyperlink{group__SegmentControl_ga76da444dd227a70bf0aeff3fd4ef84b5}{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-icon\-\_\-get}(idx, ret)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-I\-T\-E\-M\-\_\-\-I\-C\-O\-N\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(int, idx), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(Evas\-\_\-\-Object $\ast$$\ast$, ret)
\item 
\#define \hyperlink{group__SegmentControl_ga8a7adb998e3ef8a02bdaae684ce4fd25}{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get}(ret)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-I\-T\-E\-M\-\_\-\-C\-O\-U\-N\-T\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(int $\ast$, ret)
\item 
\#define \hyperlink{group__SegmentControl_ga488774fb3bf260f6eb641d0c5386cf40}{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get}(ret)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-I\-T\-E\-M\-\_\-\-S\-E\-L\-E\-C\-T\-E\-D\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(\hyperlink{group__General_ga13a0c231414b86e62f68afe3c6fb462b}{Elm\-\_\-\-Object\-\_\-\-Item} $\ast$$\ast$, ret)
\item 
\#define \hyperlink{group__SegmentControl_ga8bfbde6edaa8ae545faf1ee06eed0236}{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-get}(idx, ret)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-I\-T\-E\-M\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(int, idx), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(\hyperlink{group__General_ga13a0c231414b86e62f68afe3c6fb462b}{Elm\-\_\-\-Object\-\_\-\-Item} $\ast$$\ast$, ret)
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{group__SegmentControl_gabff4f87f1c4a9ff361f6b1fe8d9ec60e}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-index\-\_\-get} (const \hyperlink{group__General_ga13a0c231414b86e62f68afe3c6fb462b}{Elm\-\_\-\-Object\-\_\-\-Item} $\ast$it)
\begin{DoxyCompactList}\small\item\em Get the index of an item. \end{DoxyCompactList}\item 
Evas\-\_\-\-Object $\ast$ \hyperlink{group__SegmentControl_ga17aabbed7c87da9e8300aa4146dee8b1}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-object\-\_\-get} (const \hyperlink{group__General_ga13a0c231414b86e62f68afe3c6fb462b}{Elm\-\_\-\-Object\-\_\-\-Item} $\ast$it)
\begin{DoxyCompactList}\small\item\em Get the real Evas(\-Edje) object created to implement the view of a given segment\-\_\-control {\ttfamily item}. \end{DoxyCompactList}\item 
void \hyperlink{group__SegmentControl_gab3872d64d98b637ee6936562a1e52768}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-set} (\hyperlink{group__General_ga13a0c231414b86e62f68afe3c6fb462b}{Elm\-\_\-\-Object\-\_\-\-Item} $\ast$it, Eina\-\_\-\-Bool select)
\begin{DoxyCompactList}\small\item\em Set the selected state of an item. \end{DoxyCompactList}\item 
Evas\-\_\-\-Object $\ast$ \hyperlink{group__SegmentControl_ga6c0d5f4de78c9c66b4a09680d3c85f46}{elm\-\_\-segment\-\_\-control\-\_\-add} (Evas\-\_\-\-Object $\ast$parent)
\begin{DoxyCompactList}\small\item\em Add a new segment control widget to the given parent Elementary (container) object. \end{DoxyCompactList}\item 
\hyperlink{group__General_ga13a0c231414b86e62f68afe3c6fb462b}{Elm\-\_\-\-Object\-\_\-\-Item} $\ast$ \hyperlink{group__SegmentControl_ga4518c4d42e4760b7d4edbab26b854fb1}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-add} (Evas\-\_\-\-Object $\ast$obj, Evas\-\_\-\-Object $\ast$icon, const char $\ast$label)
\begin{DoxyCompactList}\small\item\em Append a new item to the segment control object. \end{DoxyCompactList}\item 
\hyperlink{group__General_ga13a0c231414b86e62f68afe3c6fb462b}{Elm\-\_\-\-Object\-\_\-\-Item} $\ast$ \hyperlink{group__SegmentControl_ga2d7e6564fcd2aa9110d9c34c0fff9207}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at} (Evas\-\_\-\-Object $\ast$obj, Evas\-\_\-\-Object $\ast$icon, const char $\ast$label, int index)
\begin{DoxyCompactList}\small\item\em Insert a new item to the segment control object at specified position. \end{DoxyCompactList}\item 
void \hyperlink{group__SegmentControl_gaf2168504dcbdd1dde73d29bc1ca5773d}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at} (Evas\-\_\-\-Object $\ast$obj, int index)
\begin{DoxyCompactList}\small\item\em Remove a segment control item at given index from its parent, deleting it. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__SegmentControl_ga8b5e0e545fbb12da9e2b2886ab6f2176}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-label\-\_\-get} (const Evas\-\_\-\-Object $\ast$obj, int index)
\begin{DoxyCompactList}\small\item\em Get the label of item. \end{DoxyCompactList}\item 
Evas\-\_\-\-Object $\ast$ \hyperlink{group__SegmentControl_ga33b13ef54b8f8bcd8286a2e5b37114bf}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-icon\-\_\-get} (const Evas\-\_\-\-Object $\ast$obj, int index)
\begin{DoxyCompactList}\small\item\em Get the icon associated to the item. \end{DoxyCompactList}\item 
int \hyperlink{group__SegmentControl_ga70c76a4a8cc21a1c97e8fd718b73213b}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get} (const Evas\-\_\-\-Object $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the Segment items count from segment control. \end{DoxyCompactList}\item 
\hyperlink{group__General_ga13a0c231414b86e62f68afe3c6fb462b}{Elm\-\_\-\-Object\-\_\-\-Item} $\ast$ \hyperlink{group__SegmentControl_ga5e6b30f69da59e21b7c5e794f5c433a2}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get} (const Evas\-\_\-\-Object $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the selected item. \end{DoxyCompactList}\item 
\hyperlink{group__General_ga13a0c231414b86e62f68afe3c6fb462b}{Elm\-\_\-\-Object\-\_\-\-Item} $\ast$ \hyperlink{group__SegmentControl_ga3dc35e1d561b1b9ed9a78099cae4fcc5}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-get} (const Evas\-\_\-\-Object $\ast$obj, int index)
\begin{DoxyCompactList}\small\item\em Get the item placed at specified index. \end{DoxyCompactList}\end{DoxyCompactItemize}


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


 
\begin{DoxyImage}
\includegraphics{img/widget/segment_control/preview-00}
\caption{width=}
\end{DoxyImage}


 
\begin{DoxyImage}
\includegraphics{segment_control}
\caption{width=}
\end{DoxyImage}


Segment control widget is a horizontal control made of multiple segment items, each segment item functioning similar to discrete two state button. A segment control groups the items together and provides compact single button with multiple equal size segments.

Segment item size is determined by base widget size and the number of items added. Only one segment item can be at selected state. A segment item can display combination of Text and any Evas\-\_\-\-Object like Images or other widget.

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

This widget emits the following signals, besides the ones sent from Layout\-:
\begin{DoxyItemize}
\item {\ttfamily \char`\"{}changed\char`\"{}} -\/ When the user clicks on a segment item which is not previously selected and get selected. The event\-\_\-info parameter is the segment item pointer.
\end{DoxyItemize}

Available styles for it\-:
\begin{DoxyItemize}
\item {\ttfamily \char`\"{}default\char`\"{}} 
\end{DoxyItemize}

Default content parts of the segment control items that you can use for are\-: \begin{DoxyItemize}
\item \char`\"{}icon\char`\"{} -\/ An icon in a segment control item\end{DoxyItemize}
Default text parts of the segment control items that you can use for are\-: \begin{DoxyItemize}
\item \char`\"{}default\char`\"{} -\/ Title label in a segment control item\end{DoxyItemize}
Supported elm\-\_\-object common A\-P\-Is. \begin{DoxyItemize}
\item elm\-\_\-object\-\_\-disabled\-\_\-set \item elm\-\_\-object\-\_\-disabled\-\_\-get\end{DoxyItemize}
Supported elm\-\_\-object\-\_\-item common A\-P\-Is. \begin{DoxyItemize}
\item \hyperlink{group__General_ga6aac9c72588cd81c517b235c4b833c76}{elm\-\_\-object\-\_\-item\-\_\-del} \item \hyperlink{group__General_gae2dbcea53fe2b5edf1351e03665a893c}{elm\-\_\-object\-\_\-item\-\_\-part\-\_\-text\-\_\-set} \item \hyperlink{group__General_gaf2df95739e3049aac04db3c4839f656d}{elm\-\_\-object\-\_\-item\-\_\-part\-\_\-text\-\_\-get} \item \hyperlink{group__General_ga7e11c3a8599f5cf6d822f69f4a70068f}{elm\-\_\-object\-\_\-item\-\_\-part\-\_\-content\-\_\-set} \item \hyperlink{group__General_ga5dd779e2dae21a2f5d63c1581e126ce2}{elm\-\_\-object\-\_\-item\-\_\-part\-\_\-content\-\_\-get}\end{DoxyItemize}
Here is an example on its usage\-: \begin{DoxyItemize}
\item \hyperlink{segment_control_example}{Segment Control Example} \end{DoxyItemize}


\subsection{Macro Definition Documentation}
\index{Segment\-Control@{Segment\-Control}!elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-add@{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-add}}
\index{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-add@{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-add}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-add}]{\setlength{\rightskip}{0pt plus 5cm}\#define elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-add(
\begin{DoxyParamCaption}
\item[{}]{icon, }
\item[{}]{label, }
\item[{}]{ret}
\end{DoxyParamCaption}
)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-I\-T\-E\-M\-\_\-\-A\-D\-D), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(Evas\-\_\-\-Object $\ast$, icon), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(const char $\ast$, label), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K({\bf Elm\-\_\-\-Object\-\_\-\-Item} $\ast$$\ast$, ret)}\label{group__SegmentControl_gab3c65fff02359ff58d181474702f417c}
\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}
Append a new item to the segment control object.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em icon} & \\
\hline
\mbox{\tt in}  & {\em label} & \\
\hline
\mbox{\tt out}  & {\em ret} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__SegmentControl_ga4518c4d42e4760b7d4edbab26b854fb1}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-add} 
\end{DoxySeeAlso}


Referenced by elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-add().

\index{Segment\-Control@{Segment\-Control}!elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get@{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get}}
\index{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get@{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}\#define elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get(
\begin{DoxyParamCaption}
\item[{}]{ret}
\end{DoxyParamCaption}
)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-I\-T\-E\-M\-\_\-\-C\-O\-U\-N\-T\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(int $\ast$, ret)}\label{group__SegmentControl_ga8a7adb998e3ef8a02bdaae684ce4fd25}
\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}
Get the Segment items count from segment control.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em ret} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__SegmentControl_ga70c76a4a8cc21a1c97e8fd718b73213b}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get} 
\end{DoxySeeAlso}


Referenced by elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get().

\index{Segment\-Control@{Segment\-Control}!elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at@{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at}}
\index{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at@{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at}]{\setlength{\rightskip}{0pt plus 5cm}\#define elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at(
\begin{DoxyParamCaption}
\item[{}]{idx}
\end{DoxyParamCaption}
)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-I\-T\-E\-M\-\_\-\-D\-E\-L\-\_\-\-A\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(int, idx)}\label{group__SegmentControl_ga62b287df444152681395b60cdf149a0e}
\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}
Remove a segment control item at given index from its parent,


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em idx} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__SegmentControl_gaf2168504dcbdd1dde73d29bc1ca5773d}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at} 
\end{DoxySeeAlso}


Referenced by elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at().

\index{Segment\-Control@{Segment\-Control}!elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-get@{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-get}}
\index{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-get@{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-get}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}\#define elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-get(
\begin{DoxyParamCaption}
\item[{}]{idx, }
\item[{}]{ret}
\end{DoxyParamCaption}
)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-I\-T\-E\-M\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(int, idx), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K({\bf Elm\-\_\-\-Object\-\_\-\-Item} $\ast$$\ast$, ret)}\label{group__SegmentControl_ga8bfbde6edaa8ae545faf1ee06eed0236}
\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}
Get the item placed at specified index.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em idx} & \\
\hline
\mbox{\tt out}  & {\em ret} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__SegmentControl_ga3dc35e1d561b1b9ed9a78099cae4fcc5}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-get} 
\end{DoxySeeAlso}


Referenced by elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-get().

\index{Segment\-Control@{Segment\-Control}!elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-icon\-\_\-get@{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-icon\-\_\-get}}
\index{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-icon\-\_\-get@{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-icon\-\_\-get}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-icon\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}\#define elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-icon\-\_\-get(
\begin{DoxyParamCaption}
\item[{}]{idx, }
\item[{}]{ret}
\end{DoxyParamCaption}
)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-I\-T\-E\-M\-\_\-\-I\-C\-O\-N\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(int, idx), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(Evas\-\_\-\-Object $\ast$$\ast$, ret)}\label{group__SegmentControl_ga76da444dd227a70bf0aeff3fd4ef84b5}
\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}
Get the icon associated to the item.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em idx} & \\
\hline
\mbox{\tt out}  & {\em ret} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__SegmentControl_ga33b13ef54b8f8bcd8286a2e5b37114bf}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-icon\-\_\-get} 
\end{DoxySeeAlso}


Referenced by elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-icon\-\_\-get().

\index{Segment\-Control@{Segment\-Control}!elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at@{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at}}
\index{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at@{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at}]{\setlength{\rightskip}{0pt plus 5cm}\#define elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at(
\begin{DoxyParamCaption}
\item[{}]{icon, }
\item[{}]{label, }
\item[{}]{idx, }
\item[{}]{ret}
\end{DoxyParamCaption}
)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-I\-T\-E\-M\-\_\-\-I\-N\-S\-E\-R\-T\-\_\-\-A\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(Evas\-\_\-\-Object $\ast$, icon), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(const char $\ast$, label), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(int, idx), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K({\bf Elm\-\_\-\-Object\-\_\-\-Item} $\ast$$\ast$, ret)}\label{group__SegmentControl_ga2334fb95565db204bc3c96ad60002ff9}
\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}
Insert a new item to the segment control object at specified position.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em icon} & \\
\hline
\mbox{\tt in}  & {\em label} & \\
\hline
\mbox{\tt in}  & {\em idx} & \\
\hline
\mbox{\tt out}  & {\em ret} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__SegmentControl_ga2d7e6564fcd2aa9110d9c34c0fff9207}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at} 
\end{DoxySeeAlso}


Referenced by elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at().

\index{Segment\-Control@{Segment\-Control}!elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-label\-\_\-get@{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-label\-\_\-get}}
\index{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-label\-\_\-get@{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-label\-\_\-get}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-label\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}\#define elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-label\-\_\-get(
\begin{DoxyParamCaption}
\item[{}]{idx, }
\item[{}]{ret}
\end{DoxyParamCaption}
)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-I\-T\-E\-M\-\_\-\-L\-A\-B\-E\-L\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(int, idx), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K(const char $\ast$$\ast$, ret)}\label{group__SegmentControl_gaf774874b28d6ae7c1c8510f27ea6bd07}
\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}
Get the label of item.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em idx} & \\
\hline
\mbox{\tt out}  & {\em ret} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__SegmentControl_ga8b5e0e545fbb12da9e2b2886ab6f2176}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-label\-\_\-get} 
\end{DoxySeeAlso}


Referenced by elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-label\-\_\-get().

\index{Segment\-Control@{Segment\-Control}!elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get@{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get}}
\index{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get@{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}\#define elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get(
\begin{DoxyParamCaption}
\item[{}]{ret}
\end{DoxyParamCaption}
)~E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-I\-D(E\-L\-M\-\_\-\-O\-B\-J\-\_\-\-S\-E\-G\-M\-E\-N\-T\-\_\-\-C\-O\-N\-T\-R\-O\-L\-\_\-\-S\-U\-B\-\_\-\-I\-D\-\_\-\-I\-T\-E\-M\-\_\-\-S\-E\-L\-E\-C\-T\-E\-D\-\_\-\-G\-E\-T), E\-O\-\_\-\-T\-Y\-P\-E\-C\-H\-E\-C\-K({\bf Elm\-\_\-\-Object\-\_\-\-Item} $\ast$$\ast$, ret)}\label{group__SegmentControl_ga488774fb3bf260f6eb641d0c5386cf40}
\begin{DoxySince}{Since}
1.\-8
\end{DoxySince}
Get the selected item.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em ret} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__SegmentControl_ga5e6b30f69da59e21b7c5e794f5c433a2}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get} 
\end{DoxySeeAlso}


Referenced by elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get().



\subsection{Function Documentation}
\index{Segment\-Control@{Segment\-Control}!elm\-\_\-segment\-\_\-control\-\_\-add@{elm\-\_\-segment\-\_\-control\-\_\-add}}
\index{elm\-\_\-segment\-\_\-control\-\_\-add@{elm\-\_\-segment\-\_\-control\-\_\-add}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-segment\-\_\-control\-\_\-add}]{\setlength{\rightskip}{0pt plus 5cm}Evas\-\_\-\-Object$\ast$ elm\-\_\-segment\-\_\-control\-\_\-add (
\begin{DoxyParamCaption}
\item[{Evas\-\_\-\-Object $\ast$}]{parent}
\end{DoxyParamCaption}
)}\label{group__SegmentControl_ga6c0d5f4de78c9c66b4a09680d3c85f46}


Add a new segment control widget to the given parent Elementary (container) object. 


\begin{DoxyParams}{Parameters}
{\em parent} & The parent object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a new segment control widget handle or {\ttfamily N\-U\-L\-L}, on errors.
\end{DoxyReturn}
This function inserts a new segment control widget on the canvas. \index{Segment\-Control@{Segment\-Control}!elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-add@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-add}}
\index{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-add@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-add}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-add}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Elm\-\_\-\-Object\-\_\-\-Item}$\ast$ elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-add (
\begin{DoxyParamCaption}
\item[{Evas\-\_\-\-Object $\ast$}]{obj, }
\item[{Evas\-\_\-\-Object $\ast$}]{icon, }
\item[{const char $\ast$}]{label}
\end{DoxyParamCaption}
)}\label{group__SegmentControl_ga4518c4d42e4760b7d4edbab26b854fb1}


Append a new item to the segment control object. 


\begin{DoxyParams}{Parameters}
{\em obj} & The segment control object. \\
\hline
{\em icon} & The icon object to use for the left side of the item. An icon can be any Evas object, but usually it is an icon created with \hyperlink{group__Icon_ga5739728c1209f90422cf65a778a16502}{elm\-\_\-icon\-\_\-add()}. \\
\hline
{\em label} & The label of the item. Note that, N\-U\-L\-L is different from empty string \char`\"{}\char`\"{}. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The created item or {\ttfamily N\-U\-L\-L} upon failure.
\end{DoxyReturn}
A new item will be created and appended to the segment control, i.\-e., will be set as {\bfseries last} item.

If it should be inserted at another position, \hyperlink{group__SegmentControl_ga2d7e6564fcd2aa9110d9c34c0fff9207}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at()} should be used instead.

Items created with this function can be deleted with function \hyperlink{group__General_ga6aac9c72588cd81c517b235c4b833c76}{elm\-\_\-object\-\_\-item\-\_\-del()} or elm\-\_\-object\-\_\-item\-\_\-del\-\_\-at().

\begin{DoxyNote}{Note}
{\ttfamily label} set to {\ttfamily N\-U\-L\-L} is different from empty string \char`\"{}\char`\"{}. If an item only has icon, it will be displayed bigger and centered. If it has icon and label, even that an empty string, icon will be smaller and positioned at left.
\end{DoxyNote}
Simple example\-: 
\begin{DoxyCode}
sc = elm_segment_control_add(win);
ic = elm_icon_add(win);
elm_image_file_set(ic, \textcolor{stringliteral}{"path/to/image"}, NULL);
elm_icon_resizable_set(ic, EINA\_TRUE, EINA\_TRUE);
elm_segment_control_item_add(sc, ic, \textcolor{stringliteral}{"label"});
evas\_object\_show(sc);
\end{DoxyCode}


\begin{DoxySeeAlso}{See Also}
\hyperlink{group__SegmentControl_ga2d7e6564fcd2aa9110d9c34c0fff9207}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at()} 

\hyperlink{group__General_ga6aac9c72588cd81c517b235c4b833c76}{elm\-\_\-object\-\_\-item\-\_\-del()} 
\end{DoxySeeAlso}


References elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-add.

\index{Segment\-Control@{Segment\-Control}!elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get}}
\index{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}int elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get (
\begin{DoxyParamCaption}
\item[{const Evas\-\_\-\-Object $\ast$}]{obj}
\end{DoxyParamCaption}
)}\label{group__SegmentControl_ga70c76a4a8cc21a1c97e8fd718b73213b}


Get the Segment items count from segment control. 


\begin{DoxyParams}{Parameters}
{\em obj} & The segment control object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Segment items count.
\end{DoxyReturn}
It will just return the number of items added to segment control {\ttfamily obj}. 

References elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get.

\index{Segment\-Control@{Segment\-Control}!elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at}}
\index{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at}]{\setlength{\rightskip}{0pt plus 5cm}void elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at (
\begin{DoxyParamCaption}
\item[{Evas\-\_\-\-Object $\ast$}]{obj, }
\item[{int}]{index}
\end{DoxyParamCaption}
)}\label{group__SegmentControl_gaf2168504dcbdd1dde73d29bc1ca5773d}


Remove a segment control item at given index from its parent, deleting it. 


\begin{DoxyParams}{Parameters}
{\em obj} & The segment control object. \\
\hline
{\em index} & The position of the segment control item to be deleted.\\
\hline
\end{DoxyParams}
Items can be added with \hyperlink{group__SegmentControl_ga4518c4d42e4760b7d4edbab26b854fb1}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-add()} or \hyperlink{group__SegmentControl_ga2d7e6564fcd2aa9110d9c34c0fff9207}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at()}. 

References elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at.

\index{Segment\-Control@{Segment\-Control}!elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-get@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-get}}
\index{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-get@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-get}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Elm\-\_\-\-Object\-\_\-\-Item}$\ast$ elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-get (
\begin{DoxyParamCaption}
\item[{const Evas\-\_\-\-Object $\ast$}]{obj, }
\item[{int}]{index}
\end{DoxyParamCaption}
)}\label{group__SegmentControl_ga3dc35e1d561b1b9ed9a78099cae4fcc5}


Get the item placed at specified index. 


\begin{DoxyParams}{Parameters}
{\em obj} & The segment control object. \\
\hline
{\em index} & The index of the segment item. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The segment control item or {\ttfamily N\-U\-L\-L} on failure.
\end{DoxyReturn}
Index is the position of an item in segment control widget. Its range is from {\ttfamily 0} to {\ttfamily  count -\/ 1 }. Count is the number of items, that can be get with \hyperlink{group__SegmentControl_ga70c76a4a8cc21a1c97e8fd718b73213b}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get()}. 

References elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-get.

\index{Segment\-Control@{Segment\-Control}!elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-icon\-\_\-get@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-icon\-\_\-get}}
\index{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-icon\-\_\-get@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-icon\-\_\-get}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-icon\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}Evas\-\_\-\-Object$\ast$ elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-icon\-\_\-get (
\begin{DoxyParamCaption}
\item[{const Evas\-\_\-\-Object $\ast$}]{obj, }
\item[{int}]{index}
\end{DoxyParamCaption}
)}\label{group__SegmentControl_ga33b13ef54b8f8bcd8286a2e5b37114bf}


Get the icon associated to the item. 


\begin{DoxyParams}{Parameters}
{\em obj} & The segment control object. \\
\hline
{\em index} & The index of the segment item. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The left side icon associated to the item at {\ttfamily index}.
\end{DoxyReturn}
The return value is a pointer to the icon associated to the item when it was created, with function \hyperlink{group__SegmentControl_ga4518c4d42e4760b7d4edbab26b854fb1}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-add()}, or later with function \hyperlink{group__General_ga7e11c3a8599f5cf6d822f69f4a70068f}{elm\-\_\-object\-\_\-item\-\_\-part\-\_\-content\-\_\-set()}. If no icon was passed as argument, it will return {\ttfamily N\-U\-L\-L}.

\begin{DoxySeeAlso}{See Also}
\hyperlink{group__SegmentControl_ga4518c4d42e4760b7d4edbab26b854fb1}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-add()} 

\hyperlink{group__General_ga7e11c3a8599f5cf6d822f69f4a70068f}{elm\-\_\-object\-\_\-item\-\_\-part\-\_\-content\-\_\-set()} 
\end{DoxySeeAlso}


References elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-icon\-\_\-get.

\index{Segment\-Control@{Segment\-Control}!elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-index\-\_\-get@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-index\-\_\-get}}
\index{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-index\-\_\-get@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-index\-\_\-get}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-index\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}int elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-index\-\_\-get (
\begin{DoxyParamCaption}
\item[{const {\bf Elm\-\_\-\-Object\-\_\-\-Item} $\ast$}]{it}
\end{DoxyParamCaption}
)}\label{group__SegmentControl_gabff4f87f1c4a9ff361f6b1fe8d9ec60e}


Get the index of an item. 


\begin{DoxyParams}{Parameters}
{\em it} & The segment control item. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The position of item in segment control widget.
\end{DoxyReturn}
Index is the position of an item in segment control widget. Its range is from {\ttfamily 0} to {\ttfamily  count -\/ 1 }. Count is the number of items, that can be get with \hyperlink{group__SegmentControl_ga70c76a4a8cc21a1c97e8fd718b73213b}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get()}. \index{Segment\-Control@{Segment\-Control}!elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at}}
\index{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Elm\-\_\-\-Object\-\_\-\-Item}$\ast$ elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at (
\begin{DoxyParamCaption}
\item[{Evas\-\_\-\-Object $\ast$}]{obj, }
\item[{Evas\-\_\-\-Object $\ast$}]{icon, }
\item[{const char $\ast$}]{label, }
\item[{int}]{index}
\end{DoxyParamCaption}
)}\label{group__SegmentControl_ga2d7e6564fcd2aa9110d9c34c0fff9207}


Insert a new item to the segment control object at specified position. 


\begin{DoxyParams}{Parameters}
{\em obj} & The segment control object. \\
\hline
{\em icon} & The icon object to use for the left side of the item. An icon can be any Evas object, but usually it is an icon created with \hyperlink{group__Icon_ga5739728c1209f90422cf65a778a16502}{elm\-\_\-icon\-\_\-add()}. \\
\hline
{\em label} & The label of the item. \\
\hline
{\em index} & Item position. Value should be between 0 and items count. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The created item or {\ttfamily N\-U\-L\-L} upon failure.
\end{DoxyReturn}
Index values must be between {\ttfamily 0}, when item will be prepended to segment control, and items count, that can be get with \hyperlink{group__SegmentControl_ga70c76a4a8cc21a1c97e8fd718b73213b}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get()}, case when item will be appended to segment control, just like \hyperlink{group__SegmentControl_ga4518c4d42e4760b7d4edbab26b854fb1}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-add()}.

Items created with this function can be deleted with function \hyperlink{group__General_ga6aac9c72588cd81c517b235c4b833c76}{elm\-\_\-object\-\_\-item\-\_\-del()} or \hyperlink{group__SegmentControl_gaf2168504dcbdd1dde73d29bc1ca5773d}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-del\-\_\-at()}.

\begin{DoxyNote}{Note}
{\ttfamily label} set to {\ttfamily N\-U\-L\-L} is different from empty string \char`\"{}\char`\"{}. If an item only has icon, it will be displayed bigger and centered. If it has icon and label, even that an empty string, icon will be smaller and positioned at left.
\end{DoxyNote}
\begin{DoxySeeAlso}{See Also}
\hyperlink{group__SegmentControl_ga4518c4d42e4760b7d4edbab26b854fb1}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-add()} 

\hyperlink{group__SegmentControl_ga70c76a4a8cc21a1c97e8fd718b73213b}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-count\-\_\-get()} 

\hyperlink{group__General_ga6aac9c72588cd81c517b235c4b833c76}{elm\-\_\-object\-\_\-item\-\_\-del()} 
\end{DoxySeeAlso}


References elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-insert\-\_\-at.

\index{Segment\-Control@{Segment\-Control}!elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-label\-\_\-get@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-label\-\_\-get}}
\index{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-label\-\_\-get@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-label\-\_\-get}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-label\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-label\-\_\-get (
\begin{DoxyParamCaption}
\item[{const Evas\-\_\-\-Object $\ast$}]{obj, }
\item[{int}]{index}
\end{DoxyParamCaption}
)}\label{group__SegmentControl_ga8b5e0e545fbb12da9e2b2886ab6f2176}


Get the label of item. 


\begin{DoxyParams}{Parameters}
{\em obj} & The segment control object. \\
\hline
{\em index} & The index of the segment item. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The label of the item at {\ttfamily index}.
\end{DoxyReturn}
The return value is a pointer to the label associated to the item when it was created, with function \hyperlink{group__SegmentControl_ga4518c4d42e4760b7d4edbab26b854fb1}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-add()}, or later with function elm\-\_\-object\-\_\-item\-\_\-text\-\_\-set. If no label was passed as argument, it will return {\ttfamily N\-U\-L\-L}.

\begin{DoxySeeAlso}{See Also}
\hyperlink{group__General_gab7192654621dd090be86c94678635ea4}{elm\-\_\-object\-\_\-item\-\_\-text\-\_\-set()} for more details. 

\hyperlink{group__SegmentControl_ga4518c4d42e4760b7d4edbab26b854fb1}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-add()} 
\end{DoxySeeAlso}


References elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-label\-\_\-get.

\index{Segment\-Control@{Segment\-Control}!elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-object\-\_\-get@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-object\-\_\-get}}
\index{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-object\-\_\-get@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-object\-\_\-get}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-object\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}Evas\-\_\-\-Object$\ast$ elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-object\-\_\-get (
\begin{DoxyParamCaption}
\item[{const {\bf Elm\-\_\-\-Object\-\_\-\-Item} $\ast$}]{it}
\end{DoxyParamCaption}
)}\label{group__SegmentControl_ga17aabbed7c87da9e8300aa4146dee8b1}


Get the real Evas(\-Edje) object created to implement the view of a given segment\-\_\-control {\ttfamily item}. 


\begin{DoxyParams}{Parameters}
{\em it} & The segment control item. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The base Edje object associated with {\ttfamily it}.
\end{DoxyReturn}
Base object is the {\ttfamily Evas\-\_\-\-Object} that represents that item. \index{Segment\-Control@{Segment\-Control}!elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get}}
\index{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Elm\-\_\-\-Object\-\_\-\-Item}$\ast$ elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get (
\begin{DoxyParamCaption}
\item[{const Evas\-\_\-\-Object $\ast$}]{obj}
\end{DoxyParamCaption}
)}\label{group__SegmentControl_ga5e6b30f69da59e21b7c5e794f5c433a2}


Get the selected item. 


\begin{DoxyParams}{Parameters}
{\em obj} & The segment control object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The selected item or {\ttfamily N\-U\-L\-L} if none of segment items is selected.
\end{DoxyReturn}
The selected item can be unselected with function \hyperlink{group__SegmentControl_gab3872d64d98b637ee6936562a1e52768}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-set()}.

The selected item always will be highlighted on segment control. 

References elm\-\_\-obj\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get.

\index{Segment\-Control@{Segment\-Control}!elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-set@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-set}}
\index{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-set@{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-set}!SegmentControl@{Segment\-Control}}
\subsubsection[{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}void elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-set (
\begin{DoxyParamCaption}
\item[{{\bf Elm\-\_\-\-Object\-\_\-\-Item} $\ast$}]{it, }
\item[{Eina\-\_\-\-Bool}]{select}
\end{DoxyParamCaption}
)}\label{group__SegmentControl_gab3872d64d98b637ee6936562a1e52768}


Set the selected state of an item. 


\begin{DoxyParams}{Parameters}
{\em it} & The segment control item \\
\hline
{\em select} & The selected state\\
\hline
\end{DoxyParams}
This sets the selected state of the given item {\ttfamily it}. {\ttfamily E\-I\-N\-A\-\_\-\-T\-R\-U\-E} for selected, {\ttfamily E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E} for not selected.

If a new item is selected the previously selected will be unselected. Selected item can be got with function \hyperlink{group__SegmentControl_ga5e6b30f69da59e21b7c5e794f5c433a2}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get()}.

The selected item always will be highlighted on segment control.

\begin{DoxySeeAlso}{See Also}
\hyperlink{group__SegmentControl_ga5e6b30f69da59e21b7c5e794f5c433a2}{elm\-\_\-segment\-\_\-control\-\_\-item\-\_\-selected\-\_\-get()} 
\end{DoxySeeAlso}
