1Gtk2::Ruler(3) User Contributed Perl Documentation Gtk2::Ruler(3)
2
3
4
6 Gtk2::Ruler - wrapper for GtkRuler
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gtk2::Widget
13 +----Gtk2::Ruler
14
16 Glib::Object::_Unregistered::AtkImplementorIface
17 Gtk2::Buildable
18 Gtk2::Orientable
19
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
38 'lower' (double : default 0 : readable / writable / private)
39 Lower limit of ruler
40
41 'max-size' (double : default 0 : readable / writable / private)
42 Maximum size of the ruler
43
44 'metric' (Gtk2::MetricType : default "pixels" : readable / writable /
45 private)
46 The metric used for the ruler
47
48 'position' (double : default 0 : readable / writable / private)
49 Position of mark on the ruler
50
51 'upper' (double : default 0 : readable / writable / private)
52 Upper limit of ruler
53
55 enum Gtk2::MetricType
56 · 'pixels' / 'GTK_PIXELS'
57
58 · 'inches' / 'GTK_INCHES'
59
60 · 'centimeters' / 'GTK_CENTIMETERS'
61
63 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget
64
66 Copyright (C) 2003-2011 by the gtk2-perl team.
67
68 This software is licensed under the LGPL. See Gtk2 for a full notice.
69
70
71
72perl v5.28.0 2018-07-18 Gtk2::Ruler(3)