![]() |
![]() |
![]() |
Buzztard Bt-Edit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
#include "bt-edit.h" struct BtRuler; GtkWidget * gtk_vumeter_new (gboolean vertical
); void bt_ruler_set_metric (BtRuler *ruler
,GtkMetricType metric
); GtkMetricType bt_ruler_get_metric (BtRuler *ruler
); void bt_ruler_set_range (BtRuler *ruler
,gdouble lower
,gdouble upper
,gdouble position
,gdouble max_size
); void bt_ruler_get_range (BtRuler *ruler
,gdouble *lower
,gdouble *upper
,gdouble *position
,gdouble *max_size
);
"draw-pos" gboolean : Read / Write "lower" gdouble : Read / Write "max-size" gdouble : Read / Write "metric" GtkMetricType : Read / Write "position" gdouble : Read / Write "upper" gdouble : Read / Write
The Ruler widget is utilized around other widgets such as a text widget or a graph. The ruler is used to show the location of the mouse on the window and to show the size of the window in specified units. The available units of measurement are GTK_PIXELS, GTK_INCHES and GTK_CENTIMETERS. GTK_PIXELS is the default unit of measurement. The ruler widget can be oriented vertically or horizontally.
GtkWidget * gtk_vumeter_new (gboolean vertical
);
Creates a new VUMeter widget.
|
TRUE for a vertical VUMeter, FALSE for horizontal VUMeter. |
Returns : |
the new GtkWidget |
GtkMetricType bt_ruler_get_metric (BtRuler *ruler
);
Gets the units used for a BtRuler. See bt_ruler_set_metric()
.
|
a BtRuler |
Returns : |
the units currently used for ruler
|
void bt_ruler_set_range (BtRuler *ruler
,gdouble lower
,gdouble upper
,gdouble position
,gdouble max_size
);
This sets the range of the ruler.
|
the gtkruler |
|
the lower limit of the ruler |
|
the upper limit of the ruler |
|
the mark on the ruler |
|
the maximum size of the ruler used when calculating the space to leave for the text |
void bt_ruler_get_range (BtRuler *ruler
,gdouble *lower
,gdouble *upper
,gdouble *position
,gdouble *max_size
);
Retrieves values indicating the range and current position of a BtRuler.
See bt_ruler_set_range()
.
|
a BtRuler |
|
location to store lower limit of the ruler, or NULL . [allow-none]
|
|
location to store upper limit of the ruler, or NULL . [allow-none]
|
|
location to store the current position of the mark on the ruler, or NULL . [allow-none]
|
|
location to store the maximum size of the ruler used when calculating
the space to leave for the text, or NULL . |
"draw-pos"
property "draw-pos" gboolean : Read / Write
Wheter the position should be marked at the ruler.
Default value: TRUE
"max-size"
property "max-size" gdouble : Read / Write
Maximum size of the ruler.
Default value: 0
"metric"
property "metric" GtkMetricType : Read / Write
The metric used for the ruler.
Default value: GTK_PIXELS
"position"
property "position" gdouble : Read / Write
Position of mark on the ruler.
Default value: 0