1Gtk2::Ruler(3)        User Contributed Perl Documentation       Gtk2::Ruler(3)
2
3
4

NAME

6       Gtk2::Ruler - wrapper for GtkRuler
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Widget
13                        +----Gtk2::Ruler
14

INTERFACES

16         Glib::Object::_Unregistered::AtkImplementorIface
17         Gtk2::Buildable
18         Gtk2::Orientable
19

METHODS

21   $ruler->draw_pos
22   $ruler->draw_ticks
23   metrictype = $ruler->get_metric
24   $ruler->set_metric ($metric)
25       •   $metric (Gtk2::MetricType)
26
27   (lower, upper, position, max_size) = $ruler->get_range
28   $ruler->set_range ($lower, $upper, $position, $max_size)
29       •   $lower (double)
30
31       •   $upper (double)
32
33       •   $position (double)
34
35       •   $max_size (double)
36

PROPERTIES

38       'lower' (double : default 0 : readable / writable / private / static-
39       nick / static-blurb)
40           Lower limit of ruler
41
42       'max-size' (double : default 0 : readable / writable / private /
43       static-nick / static-blurb)
44           Maximum size of the ruler
45
46       'metric' (Gtk2::MetricType : default "pixels" : readable / writable /
47       private / static-nick / static-blurb)
48           The metric used for the ruler
49
50       'position' (double : default 0 : readable / writable / private /
51       static-nick / static-blurb)
52           Position of mark on the ruler
53
54       'upper' (double : default 0 : readable / writable / private / static-
55       nick / static-blurb)
56           Upper limit of ruler
57

ENUMS AND FLAGS

59   enum Gtk2::MetricType
60       •   'pixels' / 'GTK_PIXELS'
61
62       •   'inches' / 'GTK_INCHES'
63
64       •   'centimeters' / 'GTK_CENTIMETERS'
65

SEE ALSO

67       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget
68
70       Copyright (C) 2003-2011 by the gtk2-perl team.
71
72       This software is licensed under the LGPL.  See Gtk2 for a full notice.
73
74
75
76perl v5.36.0                      2023-01-20                    Gtk2::Ruler(3)
Impressum