Main Page
Object Hierarchy
Data Structures
Related Pages
etk_progress_bar.c File Reference
Detailed Description
Functions
Etk_Widget
*
etk_progress_bar_new
(void)
Creates a new progress bar.
Etk_Widget
*
etk_progress_bar_new_with_text
(const char *text)
Creates a new progress bar with a text.
void
etk_progress_bar_text_set
(
Etk_Progress_Bar
*progress_bar, const char *text)
Sets the text of the progress bar.
const char *
etk_progress_bar_text_get
(
Etk_Progress_Bar
*progress_bar)
Gets the text of the progress bar.
void
etk_progress_bar_fraction_set
(
Etk_Progress_Bar
*progress_bar, double fraction)
Sets the fraction (percentage) of the progress bar.
double
etk_progress_bar_fraction_get
(
Etk_Progress_Bar
*progress_bar)
Gets the fraction (percentage) of the progress bar.
void
etk_progress_bar_pulse
(
Etk_Progress_Bar
*progress_bar)
Causes the progress bar to enter pulse mode, subsequent calls simply move the bar around.
void
etk_progress_bar_pulse_step_set
(
Etk_Progress_Bar
*progress_bar, double pulse_step)
Set the step-size for the pulse mode, between 0.0 and 1.0. The step-size is the fraction of total progress to move the filler when it is pulsed.
double
etk_progress_bar_pulse_step_get
(
Etk_Progress_Bar
*progress_bar)
Get the step-size for the pulse mode.
void
etk_progress_bar_direction_set
(
Etk_Progress_Bar
*progress_bar,
Etk_Progress_Bar_Direction
direction)
Sets the growth direction of the progress bar (left to right, or right to left).
Etk_Progress_Bar_Direction
etk_progress_bar_direction_get
(
Etk_Progress_Bar
*progress_bar)
Gets the growth direction of the progress bar (left to right, or right to left).