1Gtk2::SpinButton(3) User Contributed Perl Documentation Gtk2::SpinButton(3)
2
3
4
6 Gtk2::SpinButton - wrapper for GtkSpinButton
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gtk2::Widget
13 +----Gtk2::Entry
14 +----Gtk2::SpinButton
15
17 Glib::Object::_Unregistered::AtkImplementorIface
18 Gtk2::Buildable
19 Gtk2::Editable
20 Gtk2::CellEditable
21
23 widget = Gtk2::SpinButton->new ($adjustment, $climb_rate, $digits)
24 · $adjustment (Gtk2::Adjustment)
25
26 · $climb_rate (double)
27
28 · $digits (integer)
29
30 widget = Gtk2::SpinButton->new_with_range ($min, $max, $step)
31 · $min (double)
32
33 · $max (double)
34
35 · $step (double)
36
37 adjustment = $spin_button->get_adjustment
38 $spin_button->set_adjustment ($adjustment)
39 · $adjustment (Gtk2::Adjustment)
40
41 $spin_button->configure ($adjustment, $climb_rate, $digits)
42 · $adjustment (Gtk2::Adjustment)
43
44 · $climb_rate (double)
45
46 · $digits (integer)
47
48 integer = $spin_button->get_digits
49 $spin_button->set_digits ($digits)
50 · $digits (integer)
51
52 (step, page) = $spin_button->get_increments
53 $spin_button->set_increments ($step, $page)
54 · $step (double)
55
56 · $page (double)
57
58 boolean = $spin_button->get_numeric
59 $spin_button->set_numeric ($numeric)
60 · $numeric (boolean)
61
62 (min, max) = $spin_button->get_range
63 $spin_button->set_range ($min, $max)
64 · $min (double)
65
66 · $max (double)
67
68 boolean = $spin_button->get_snap_to_ticks
69 $spin_button->set_snap_to_ticks ($snap_to_ticks)
70 · $snap_to_ticks (boolean)
71
72 $spin_button->spin ($direction, $increment)
73 · $direction (Gtk2::SpinType)
74
75 · $increment (double)
76
77 $spin_button->update
78 spinbuttonupdatepolicy = $spin_button->get_update_policy
79 $spin_button->set_update_policy ($policy)
80 · $policy (Gtk2::SpinButtonUpdatePolicy)
81
82 integer = $spin_button->get_value_as_int
83 double = $spin_button->get_value
84 $spin_button->set_value ($value)
85 · $value (double)
86
87 boolean = $spin_button->get_wrap
88 $spin_button->set_wrap ($wrap)
89 · $wrap (boolean)
90
92 'adjustment' (Gtk2::Adjustment : default undef : readable / writable /
93 private)
94 The adjustment that holds the value of the spinbutton
95
96 'climb-rate' (double : default 0 : readable / writable / private)
97 The acceleration rate when you hold down a button
98
99 'digits' (Glib::UInt : default 0 : readable / writable / private)
100 The number of decimal places to display
101
102 'numeric' (boolean : default false : readable / writable / private)
103 Whether non-numeric characters should be ignored
104
105 'snap-to-ticks' (boolean : default false : readable / writable /
106 private)
107 Whether erroneous values are automatically changed to a spin
108 button's nearest step increment
109
110 'update-policy' (Gtk2::SpinButtonUpdatePolicy : default "always" :
111 readable / writable / private)
112 Whether the spin button should update always, or only when the
113 value is legal
114
115 'value' (double : default 0 : readable / writable / private)
116 Reads the current value, or sets a new value
117
118 'wrap' (boolean : default false : readable / writable / private)
119 Whether a spin button should wrap upon reaching its limits
120
122 'shadow-type' (Gtk2::ShadowType : default "in" : readable / private)
123 Style of bevel around the spin button
124
126 change-value (Gtk2::SpinButton, Gtk2::ScrollType)
127 integer = input (Gtk2::SpinButton, gpointer)
128 boolean = output (Gtk2::SpinButton)
129 value-changed (Gtk2::SpinButton)
130 wrapped (Gtk2::SpinButton)
131
133 enum Gtk2::ScrollType
134 · 'none' / 'GTK_SCROLL_NONE'
135
136 · 'jump' / 'GTK_SCROLL_JUMP'
137
138 · 'step-backward' / 'GTK_SCROLL_STEP_BACKWARD'
139
140 · 'step-forward' / 'GTK_SCROLL_STEP_FORWARD'
141
142 · 'page-backward' / 'GTK_SCROLL_PAGE_BACKWARD'
143
144 · 'page-forward' / 'GTK_SCROLL_PAGE_FORWARD'
145
146 · 'step-up' / 'GTK_SCROLL_STEP_UP'
147
148 · 'step-down' / 'GTK_SCROLL_STEP_DOWN'
149
150 · 'page-up' / 'GTK_SCROLL_PAGE_UP'
151
152 · 'page-down' / 'GTK_SCROLL_PAGE_DOWN'
153
154 · 'step-left' / 'GTK_SCROLL_STEP_LEFT'
155
156 · 'step-right' / 'GTK_SCROLL_STEP_RIGHT'
157
158 · 'page-left' / 'GTK_SCROLL_PAGE_LEFT'
159
160 · 'page-right' / 'GTK_SCROLL_PAGE_RIGHT'
161
162 · 'start' / 'GTK_SCROLL_START'
163
164 · 'end' / 'GTK_SCROLL_END'
165
166 enum Gtk2::SpinButtonUpdatePolicy
167 · 'always' / 'GTK_UPDATE_ALWAYS'
168
169 · 'if-valid' / 'GTK_UPDATE_IF_VALID'
170
171 enum Gtk2::SpinType
172 · 'step-forward' / 'GTK_SPIN_STEP_FORWARD'
173
174 · 'step-backward' / 'GTK_SPIN_STEP_BACKWARD'
175
176 · 'page-forward' / 'GTK_SPIN_PAGE_FORWARD'
177
178 · 'page-backward' / 'GTK_SPIN_PAGE_BACKWARD'
179
180 · 'home' / 'GTK_SPIN_HOME'
181
182 · 'end' / 'GTK_SPIN_END'
183
184 · 'user-defined' / 'GTK_SPIN_USER_DEFINED'
185
187 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
188 Gtk2::Entry
189
191 Copyright (C) 2003-2011 by the gtk2-perl team.
192
193 This software is licensed under the LGPL. See Gtk2 for a full notice.
194
195
196
197perl v5.28.0 2018-07-18 Gtk2::SpinButton(3)