summaryrefslogtreecommitdiff
path: root/docs/reference/gtk/tmpl/gtkruler.sgml
blob: 679d2843066b4ec6975db544692e1e832bffe0ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!-- ##### SECTION Title ##### -->
GtkRuler

<!-- ##### SECTION Short_Description ##### -->
Base class for horizontal or vertical rulers

<!-- ##### SECTION Long_Description ##### -->
<para>
The GTKRuler widget is a base class for horizontal and vertical rulers. Rulers
are used to show the mouse pointer's location in a window. The ruler can either
be horizontal or vertical on the window. Within the ruler a small triangle
indicates the location of the mouse relative to the horixontal or vertical
ruler. See #GtkHRuler to learn how to create a new horizontal ruler. See
#GtkVRuler to learn how to create a new vertical ruler.
</para>

<!-- ##### SECTION See_Also ##### -->
<para>
#GtkHRuler, #GtkVRuler
</para>

<!-- ##### STRUCT GtkRuler ##### -->
<para>
All distances are in 1/72nd's of an inch. (According to Adobe thats a point, but
points are really 1/72.27 in.)
</para>


<!-- ##### STRUCT GtkRulerMetric ##### -->
<para>
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. 
</para>

@metric_name: 
@abbrev: 
@pixels_per_unit: 
@ruler_scale: 
@subdivide: 

<!-- ##### FUNCTION gtk_ruler_set_metric ##### -->
<para>
This calls the #GTKMetricType to set the ruler to units defined. Available units
are GTK_PIXELS, GTK_INCHES, or GTK_CENTIMETERS. The default unit of measurement
is GTK_PIXELS.
</para>

@ruler: the gtkruler
@metric: the unit of measurement


<!-- ##### FUNCTION gtk_ruler_set_range ##### -->
<para>
This sets the range of the ruler using gfloat lower, gfloat upper, gfloat position, and gfloat max_size. 
</para>

@ruler: the gtkruler
@lower: the upper limit of the ruler
@upper: the lower limit of the ruler
@position: the mark on the ruler
@max_size: the maximum size of the ruler


<!-- ##### ARG GtkRuler:lower ##### -->
<para>

</para>

<!-- ##### ARG GtkRuler:upper ##### -->
<para>

</para>

<!-- ##### ARG GtkRuler:position ##### -->
<para>

</para>

<!-- ##### ARG GtkRuler:max-size ##### -->
<para>

</para>