Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | gtk_vumeter_new () |
void | bt_ruler_set_metric () |
GtkMetricType | bt_ruler_get_metric () |
void | bt_ruler_set_range () |
void | bt_ruler_get_range () |
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.
GtkMetricType
bt_ruler_get_metric (BtRuler *ruler
);
Gets the units used for a BtRuler. See bt_ruler_set_metric()
.
void bt_ruler_set_range (BtRuler *ruler
,gdouble lower
,gdouble upper
,gdouble position
,gdouble max_size
);
This sets the range of the ruler.
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()
.
ruler |
a BtRuler |
|
lower |
location to store lower limit of the ruler, or |
[allow-none] |
upper |
location to store upper limit of the ruler, or |
[allow-none] |
position |
location to store the current position of the mark on the ruler, or |
[allow-none] |
max_size |
location to store the maximum size of the ruler used when calculating
the space to leave for the text, or |
“draw-pos”
property “draw-pos” gboolean
Wheter the position should be marked at the ruler.
Flags: Read / Write
Default value: TRUE
“max-size”
property “max-size” gdouble
Maximum size of the ruler.
Flags: Read / Write
Default value: 0
“metric”
property “metric” GtkMetricType
The metric used for the ruler.
Flags: Read / Write
Default value: GTK_PIXELS
“position”
property “position” gdouble
Position of mark on the ruler.
Flags: Read / Write
Default value: 0