GTK+ Reference Manual | ||||
---|---|---|---|---|
#include <gtk/gtk.h> GtkCellRendererProgress; GtkCellRenderer* gtk_cell_renderer_progress_new (void);
GObject +----GInitiallyUnowned +----GtkObject +----GtkCellRenderer +----GtkCellRendererProgress
GtkCellRendererProgress renders a numeric value as a progress par in a cell. Additionally, it can display a text on top of the progress bar.
The GtkCellRendererProgress cell renderer was added in GTK+ 2.6.
GtkCellRenderer* gtk_cell_renderer_progress_new (void);
Creates a new GtkCellRendererProgress.
Returns : | the new cell renderer |
Since 2.6
text
" property"text" gchararray : Read / Write
The "text" property determines the label which will be drawn
over the progress bar. Setting this property to NULL
causes the default
label to be displayed. Setting this property to an empty string causes
no label to be displayed.
Default value: NULL
Since 2.6
value
" property"value" gint : Read / Write
The "value" property determines the percentage to which the progress bar will be "filled in".
Allowed values: [0,100]
Default value: 0
Since 2.6