Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

etk_progress_bar.h File Reference


Detailed Description


Data Structures

struct  Etk_Progress_Bar
 [Widget] A widget used to indicates the progress of an operation More...

Defines

#define ETK_PROGRESS_BAR_TYPE   (etk_progress_bar_type_get())
#define ETK_PROGRESS_BAR(obj)   (ETK_OBJECT_CAST((obj), ETK_PROGRESS_BAR_TYPE, Etk_Progress_Bar))
#define ETK_IS_PROGRESS_BAR(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_PROGRESS_BAR_TYPE))

Enumerations

enum  Etk_Progress_Bar_Direction {
  ETK_PROGRESS_BAR_LEFT_TO_RIGHT,
  ETK_PROGRESS_BAR_RIGHT_TO_LEFT
}
 Possible growth directions for the progress bar (left to right by default). More...

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).