27 #ifndef GNT_PROGRESS_BAR_H 28 #define GNT_PROGRESS_BAR_H 33 #define GNT_TYPE_PROGRESS_BAR (gnt_progress_bar_get_type ()) 34 #define GNT_PROGRESS_BAR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNT_TYPE_PROGRESS_BAR, GntProgressBar)) 35 #define GNT_PROGRESS_BAR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GNT_TYPE_PROGRESS_BAR, GntProgressBarClass)) 36 #define GNT_IS_PROGRESS_BAR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNT_TYPE_PROGRESS_BAR)) 37 #define GNT_IS_PROGRESS_BAR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GNT_TYPE_PROGRESS_BAR)) 38 #define GNT_PROGRESS_BAR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GNT_TYPE_PROGRESS_BAR, GntProgressBarClass)) 40 typedef enum _GntProgressBarOrientation
42 GNT_PROGRESS_LEFT_TO_RIGHT,
43 GNT_PROGRESS_RIGHT_TO_LEFT,
44 GNT_PROGRESS_BOTTOM_TO_TOP,
45 GNT_PROGRESS_TOP_TO_BOTTOM,
46 } GntProgressBarOrientation;
48 typedef struct _GntProgressBar GntProgressBar;
54 void (*gnt_reserved1)(void);
55 void (*gnt_reserved2)(void);
56 void (*gnt_reserved3)(void);
57 void (*gnt_reserved4)(void);
118 GntProgressBarOrientation
void gnt_progress_bar_set_orientation(GntProgressBar *pbar, GntProgressBarOrientation orientation)
Set the orientation for a progress bar.
void gnt_progress_bar_set_show_progress(GntProgressBar *pbar, gboolean show)
Controls whether the progress value is shown.
GntProgressBarOrientation gnt_progress_bar_get_orientation(GntProgressBar *pbar)
Get the orientation for the progress bar.
G_BEGIN_DECLS GType gnt_progress_bar_get_type(void)
Get the GType for GntProgressBar.
GntWidget * gnt_progress_bar_new(void)
Create a new GntProgressBar.
void gnt_progress_bar_set_fraction(GntProgressBar *pbar, gdouble fraction)
Set the progress for a progress bar.
gdouble gnt_progress_bar_get_fraction(GntProgressBar *pbar)
Get the progress that is displayed.
gboolean gnt_progress_bar_get_show_progress(GntProgressBar *pbar)
Get a boolean describing if the progress value is shown.