1Gtk2::Scale(3) User Contributed Perl Documentation Gtk2::Scale(3)
2
3
4
6 Gtk2::Scale - wrapper for GtkScale
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gtk2::Widget
13 +----Gtk2::Range
14 +----Gtk2::Scale
15
17 Glib::Object::_Unregistered::AtkImplementorIface
18 Gtk2::Buildable
19 Gtk2::Orientable
20
22 $scale->add_mark ($value, $position, $markup)
23 · $value (double)
24
25 · $position (Gtk2::PositionType)
26
27 · $markup (string or undef)
28
29 Since: gtk+ 2.16
30
31 $scale->clear_marks
32 Since: gtk+ 2.16
33
34 integer = $scale->get_digits
35 $scale->set_digits ($digits)
36 · $digits (integer)
37
38 boolean = $scale->get_draw_value
39 $scale->set_draw_value ($draw_value)
40 · $draw_value (boolean)
41
42 layout = $scale->get_layout
43 Since: gtk+ 2.4
44
45 (x, y) = $scale->get_layout_offsets
46 Since: gtk+ 2.4
47
48 positiontype = $scale->get_value_pos
49 $scale->set_value_pos ($pos)
50 · $pos (Gtk2::PositionType)
51
53 'digits' (integer : default 1 : readable / writable / private)
54 The number of decimal places that are displayed in the value
55
56 'draw-value' (boolean : default true : readable / writable / private)
57 Whether the current value is displayed as a string next to the
58 slider
59
60 'value-pos' (Gtk2::PositionType : default "top" : readable / writable /
61 private)
62 The position in which the current value is displayed
63
65 'slider-length' (integer : default 31 : readable / private)
66 Length of scale's slider
67
68 'value-spacing' (integer : default 2 : readable / private)
69 Space between value text and the slider/trough area
70
72 string = format-value (Gtk2::Scale, double)
73
75 enum Gtk2::PositionType
76 · 'left' / 'GTK_POS_LEFT'
77
78 · 'right' / 'GTK_POS_RIGHT'
79
80 · 'top' / 'GTK_POS_TOP'
81
82 · 'bottom' / 'GTK_POS_BOTTOM'
83
85 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
86 Gtk2::Range
87
89 Copyright (C) 2003-2011 by the gtk2-perl team.
90
91 This software is licensed under the LGPL. See Gtk2 for a full notice.
92
93
94
95perl v5.28.1 2019-02-02 Gtk2::Scale(3)