| GtkExtra Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
#include <gtkextra.h>
GtkPlotBar;
enum GtkPlotBarUnits;
GtkWidget* gtk_plot_bar_new (GtkOrientation orientation);
void gtk_plot_bar_construct (GtkPlotBar *bar,
GtkOrientation orientation);
void gtk_plot_bar_set_width (GtkPlotBar *bar,
gdouble width);
gdouble gtk_plot_bar_get_width (GtkPlotBar *bar);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkPlotData +----GtkPlotBar
typedef struct _GtkPlotBar GtkPlotBar;
The GtkPlotBar struct contains only private data. It should only be accessed through the functions described below.
typedef enum
{
GTK_PLOT_BAR_POINTS,
GTK_PLOT_BAR_RELATIVE,
GTK_PLOT_BAR_ABSOLUTE,
} GtkPlotBarUnits;
GtkWidget* gtk_plot_bar_new (GtkOrientation orientation);
Create a new GtkPlotBar widget.
|
GTK_ORIENTATION_HORIZONTAL or GTK_ORIENTATION_VERTICAL. |
Returns : |
a new GtkWidget. |
void gtk_plot_bar_construct (GtkPlotBar *bar, GtkOrientation orientation);
Initializes a GtkPlotBar structure.
|
a GtkPlotBar widget. |
|
GTK_ORIENTATION_HORIZONTAL or GTK_ORIENTATION_VERTICAL. |
void gtk_plot_bar_set_width (GtkPlotBar *bar, gdouble width);
Set the width of a GtkPlotBar widget.
|
a GtkPlotBar widget. |
|
widget width. |
gdouble gtk_plot_bar_get_width (GtkPlotBar *bar);
Set the width of a GtkPlotBar widget.
|
a GtkPlotBar widget. |
Returns : |
widget width. |
"orientation" property"orientation" GtkOrientation : Read / Write
Orientation.
Default value: GTK_ORIENTATION_HORIZONTAL