\hypertarget{group__Elm__SegmentControl}{}\section{Segment\+Control}
\label{group__Elm__SegmentControl}\index{Segment\+Control@{Segment\+Control}}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$ \mbox{\hyperlink{group__Elm__SegmentControl_ga6c0d5f4de78c9c66b4a09680d3c85f46}{elm\+\_\+segment\+\_\+control\+\_\+add}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$parent)
\begin{DoxyCompactList}\small\item\em Add a new segment control widget to the given parent Elementary (container) object. \end{DoxyCompactList}\end{DoxyCompactItemize}


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


 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth]{img/widget/segment_control/preview-00}}
\end{DoxyImageNoCaption}


 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth]{segment_control}}
\end{DoxyImageNoCaption}


\mbox{\hyperlink{structSegment}{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.

\mbox{\hyperlink{structSegment}{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 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.
\item {\ttfamily \char`\"{}language,changed\char`\"{}} -\/ the program\textquotesingle{}s language changed (since 1.\+9)
\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`\"{} -\/ A 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 elm\+\_\+object\+\_\+item\+\_\+del \item elm\+\_\+object\+\_\+item\+\_\+part\+\_\+text\+\_\+set \item elm\+\_\+object\+\_\+item\+\_\+part\+\_\+text\+\_\+get \item elm\+\_\+object\+\_\+item\+\_\+part\+\_\+content\+\_\+set \item elm\+\_\+object\+\_\+item\+\_\+part\+\_\+content\+\_\+get\end{DoxyItemize}
Here is an example on its usage\+: \begin{DoxyItemize}
\item segment\+\_\+control\+\_\+example \end{DoxyItemize}


\subsection{Function Documentation}
\mbox{\Hypertarget{group__Elm__SegmentControl_ga6c0d5f4de78c9c66b4a09680d3c85f46}\label{group__Elm__SegmentControl_ga6c0d5f4de78c9c66b4a09680d3c85f46}} 
\index{Segment\+Control@{Segment\+Control}!elm\+\_\+segment\+\_\+control\+\_\+add@{elm\+\_\+segment\+\_\+control\+\_\+add}}
\index{elm\+\_\+segment\+\_\+control\+\_\+add@{elm\+\_\+segment\+\_\+control\+\_\+add}!Segment\+Control@{Segment\+Control}}
\subsubsection{\texorpdfstring{elm\+\_\+segment\+\_\+control\+\_\+add()}{elm\_segment\_control\_add()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}}$\ast$ elm\+\_\+segment\+\_\+control\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{parent }\end{DoxyParamCaption})}



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\+LL}, on errors.
\end{DoxyReturn}
This function inserts a new segment control widget on the canvas. 