1Gtk2::SpinButton(3) User Contributed Perl Documentation Gtk2::SpinButton(3)
2
3
4
6 Gtk2::SpinButton
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 : readable / writable / private)
93 The adjustment that holds the value of the spinbutton
94
95 'climb-rate' (double : readable / writable / private)
96 The acceleration rate when you hold down a button
97
98 'digits' (Glib::UInt : readable / writable / private)
99 The number of decimal places to display
100
101 'numeric' (boolean : readable / writable / private)
102 Whether non-numeric characters should be ignored
103
104 'snap-to-ticks' (boolean : readable / writable / private)
105 Whether erroneous values are automatically changed to a spin
106 button's nearest step increment
107
108 'update-policy' (Gtk2::SpinButtonUpdatePolicy : readable / writable /
109 private)
110 Whether the spin button should update always, or only when the
111 value is legal
112
113 'value' (double : readable / writable / private)
114 Reads the current value, or sets a new value
115
116 'wrap' (boolean : readable / writable / private)
117 Whether a spin button should wrap upon reaching its limits
118
120 value-changed (Gtk2::SpinButton)
121 change-value (Gtk2::SpinButton, Gtk2::ScrollType)
122 integer = input (Gtk2::SpinButton, gpointer)
123 boolean = output (Gtk2::SpinButton)
124 wrapped (Gtk2::SpinButton)
125
127 enum Gtk2::ScrollType
128 · 'none' / 'GTK_SCROLL_NONE'
129
130 · 'jump' / 'GTK_SCROLL_JUMP'
131
132 · 'step-backward' / 'GTK_SCROLL_STEP_BACKWARD'
133
134 · 'step-forward' / 'GTK_SCROLL_STEP_FORWARD'
135
136 · 'page-backward' / 'GTK_SCROLL_PAGE_BACKWARD'
137
138 · 'page-forward' / 'GTK_SCROLL_PAGE_FORWARD'
139
140 · 'step-up' / 'GTK_SCROLL_STEP_UP'
141
142 · 'step-down' / 'GTK_SCROLL_STEP_DOWN'
143
144 · 'page-up' / 'GTK_SCROLL_PAGE_UP'
145
146 · 'page-down' / 'GTK_SCROLL_PAGE_DOWN'
147
148 · 'step-left' / 'GTK_SCROLL_STEP_LEFT'
149
150 · 'step-right' / 'GTK_SCROLL_STEP_RIGHT'
151
152 · 'page-left' / 'GTK_SCROLL_PAGE_LEFT'
153
154 · 'page-right' / 'GTK_SCROLL_PAGE_RIGHT'
155
156 · 'start' / 'GTK_SCROLL_START'
157
158 · 'end' / 'GTK_SCROLL_END'
159
160 enum Gtk2::SpinButtonUpdatePolicy
161 · 'always' / 'GTK_UPDATE_ALWAYS'
162
163 · 'if-valid' / 'GTK_UPDATE_IF_VALID'
164
165 enum Gtk2::SpinType
166 · 'step-forward' / 'GTK_SPIN_STEP_FORWARD'
167
168 · 'step-backward' / 'GTK_SPIN_STEP_BACKWARD'
169
170 · 'page-forward' / 'GTK_SPIN_PAGE_FORWARD'
171
172 · 'page-backward' / 'GTK_SPIN_PAGE_BACKWARD'
173
174 · 'home' / 'GTK_SPIN_HOME'
175
176 · 'end' / 'GTK_SPIN_END'
177
178 · 'user-defined' / 'GTK_SPIN_USER_DEFINED'
179
181 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
182 Gtk2::Entry
183
185 Copyright (C) 2003-2008 by the gtk2-perl team.
186
187 This software is licensed under the LGPL. See Gtk2 for a full notice.
188
189
190
191perl v5.12.0 2010-05-02 Gtk2::SpinButton(3)