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

NAME

6       Gtk2::Scale - wrapper for GtkScale
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Widget
13                        +----Gtk2::Range
14                             +----Gtk2::Scale
15

INTERFACES

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

METHODS

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

PROPERTIES

53       'digits' (integer : default 1 : readable / writable / private / static-
54       nick / static-blurb)
55           The number of decimal places that are displayed in the value
56
57       'draw-value' (boolean : default true : readable / writable / private /
58       static-nick / static-blurb)
59           Whether the current value is displayed as a string next to the
60           slider
61
62       'value-pos' (Gtk2::PositionType : default "top" : readable / writable /
63       private / static-nick / static-blurb)
64           The position in which the current value is displayed
65

STYLE PROPERTIES

67       'slider-length' (integer : default 31 : readable / private / static-
68       nick / static-blurb)
69           Length of scale's slider
70
71       'value-spacing' (integer : default 2 : readable / private / static-nick
72       / static-blurb)
73           Space between value text and the slider/trough area
74

SIGNALS

76       string = format-value (Gtk2::Scale, double)
77

ENUMS AND FLAGS

79   enum Gtk2::PositionType
80       •   'left' / 'GTK_POS_LEFT'
81
82       •   'right' / 'GTK_POS_RIGHT'
83
84       •   'top' / 'GTK_POS_TOP'
85
86       •   'bottom' / 'GTK_POS_BOTTOM'
87

SEE ALSO

89       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
90       Gtk2::Range
91
93       Copyright (C) 2003-2011 by the gtk2-perl team.
94
95       This software is licensed under the LGPL.  See Gtk2 for a full notice.
96
97
98
99perl v5.34.0                      2021-07-22                    Gtk2::Scale(3)
Impressum