\section{Progress bar}
\label{group__Progressbar}\index{Progress bar@{Progress bar}}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Evas\+\_\+\+Object $\ast$ \hyperlink{group__Progressbar_ga73ec06c9c8eb7e5f0263a132432e8cc3}{elm\+\_\+progressbar\+\_\+add} (Evas\+\_\+\+Object $\ast$parent)
\begin{DoxyCompactList}\small\item\em Add a new progress bar 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]{progressbar_inheritance_tree}}
\end{DoxyImageNoCaption}


The progress bar is a widget for visually representing the progress status of a given job/task.

A progress bar may be horizontal or vertical. It may display an icon besides it, as well as primary and {\bfseries units} labels. The former is meant to label the widget as a whole, while the latter, which is formatted with floating point values (and thus accepts a {\ttfamily printf}-\/style format string, like {\ttfamily \char`\"{}\%1.\+2f
units\char`\"{}}), is meant to label the widget\textquotesingle{}s {\bfseries progress value}. Label, icon and unit strings/objects are {\bfseries optional} for progress bars.

A progress bar may be {\bfseries inverted}, in which case it gets its values inverted, i.\+e., high values being on the left or top and low values on the right or bottom, for horizontal and vertical modes respectively.

The {\bfseries span} of the progress, as set by elm\+\_\+progressbar\+\_\+span\+\_\+size\+\_\+set(), is its length (horizontally or vertically), unless one puts size hints on the widget to expand on desired directions, by any container. That length will be scaled by the object or applications scaling factor. Applications can query the progress bar for its value with elm\+\_\+progressbar\+\_\+value\+\_\+get().

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

This widget emits the following signals, besides the ones sent from Layout\+: \begin{DoxyItemize}
\item {\ttfamily \char`\"{}changed\char`\"{}} -\/ when the value is changed (since 1.\+7) \item {\ttfamily \char`\"{}focused\char`\"{}} -\/ When the progressbar has received focus. (since 1.\+8) \item {\ttfamily \char`\"{}unfocused\char`\"{}} -\/ When the progressbar has lost focus. (since 1.\+8) \item {\ttfamily \char`\"{}language,changed\char`\"{}} -\/ the program\textquotesingle{}s language changed (since 1.\+9)\end{DoxyItemize}
This widget has the following styles\+:
\begin{DoxyItemize}
\item {\ttfamily \char`\"{}default\char`\"{}} 
\item {\ttfamily \char`\"{}wheel\char`\"{}} (simple style, no text, no progression, only \char`\"{}pulse\char`\"{} effect is available)
\end{DoxyItemize}

Default content parts of the progressbar widget that you can use for are\+: \begin{DoxyItemize}
\item \char`\"{}icon\char`\"{} -\/ An icon of the progressbar\end{DoxyItemize}
Default text parts of the progressbar widget that you can use for are\+: \begin{DoxyItemize}
\item \char`\"{}default\char`\"{} -\/ A label of the progressbar\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}\end{DoxyItemize}
Here is an example on its usage\+: \begin{DoxyItemize}
\item \hyperlink{progressbar_example}{Progress bar widget example} \end{DoxyItemize}


\subsection{Function Documentation}
\index{Progress bar@{Progress bar}!elm\+\_\+progressbar\+\_\+add@{elm\+\_\+progressbar\+\_\+add}}
\index{elm\+\_\+progressbar\+\_\+add@{elm\+\_\+progressbar\+\_\+add}!Progress bar@{Progress bar}}
\subsubsection[{\texorpdfstring{elm\+\_\+progressbar\+\_\+add(\+Evas\+\_\+\+Object $\ast$parent)}{elm_progressbar_add(Evas_Object *parent)}}]{\setlength{\rightskip}{0pt plus 5cm}Evas\+\_\+\+Object$\ast$ elm\+\_\+progressbar\+\_\+add (
\begin{DoxyParamCaption}
\item[{Evas\+\_\+\+Object $\ast$}]{parent}
\end{DoxyParamCaption}
)}\label{group__Progressbar_ga73ec06c9c8eb7e5f0263a132432e8cc3}


Add a new progress bar widget to the given parent Elementary (container) object. 


\begin{DoxyParams}{Parameters}
{\em parent} & The parent object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a new progress bar widget handle or {\ttfamily N\+U\+LL}, on errors
\end{DoxyReturn}
This function inserts a new progress bar widget on the canvas. 

References elm\+\_\+config\+\_\+scale\+\_\+get().

