1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Base class for horizontal or vertical rulers
7 <!-- ##### SECTION Long_Description ##### -->
10 This widget is considered too specialized/little-used for
11 GTK+, and will in the future be moved to some other package. If
12 your application needs this widget, feel free to use it, as the
13 widget does work and is useful in some applications; it's just not
14 of general interest. However, we are not accepting new features for
15 the widget, and it will eventually move out of the GTK+
20 The GTKRuler widget is a base class for horizontal and vertical rulers. Rulers
21 are used to show the mouse pointer's location in a window. The ruler can either
22 be horizontal or vertical on the window. Within the ruler a small triangle
23 indicates the location of the mouse relative to the horizontal or vertical
24 ruler. See #GtkHRuler to learn how to create a new horizontal ruler. See
25 #GtkVRuler to learn how to create a new vertical ruler.
28 <!-- ##### SECTION See_Also ##### -->
30 #GtkHRuler, #GtkVRuler
33 <!-- ##### SECTION Stability_Level ##### -->
36 <!-- ##### STRUCT GtkRuler ##### -->
38 All distances are in 1/72nd's of an inch. (According to Adobe thats a point, but
39 points are really 1/72.27 in.)
43 <!-- ##### ARG GtkRuler:lower ##### -->
48 <!-- ##### ARG GtkRuler:max-size ##### -->
53 <!-- ##### ARG GtkRuler:metric ##### -->
58 <!-- ##### ARG GtkRuler:position ##### -->
63 <!-- ##### ARG GtkRuler:upper ##### -->
68 <!-- ##### STRUCT GtkRulerMetric ##### -->
70 This should be points_per_unit. This is the size of the unit in 1/72nd's of an inch and has nothing to do with screen pixels.
79 <!-- ##### FUNCTION gtk_ruler_set_metric ##### -->
81 This calls the #GTKMetricType to set the ruler to units defined. Available units
82 are GTK_PIXELS, GTK_INCHES, or GTK_CENTIMETERS. The default unit of measurement
87 @metric: the unit of measurement
90 <!-- ##### FUNCTION gtk_ruler_set_range ##### -->
102 <!-- ##### FUNCTION gtk_ruler_get_metric ##### -->
111 <!-- ##### FUNCTION gtk_ruler_get_range ##### -->