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