=head1 NAME

Gtk2::SpinButton

=head1 HIERARCHY

  Glib::Object
  +----Gtk2::Object
        +----Gtk2::Widget
              +----Gtk2::Entry
                    +----Gtk2::SpinButton

=head1 INTERFACES

  Gtk2::Atk::ImplementorIface
  Gtk2::CellEditable
  Gtk2::Editable


=head1 METHODS

=head2 widget = Gtk2::SpinButton-E<gt>B<new> ($adjustment, $climb_rate, $digits)

=over

=over

=item * $adjustment (Gtk2::Adjustment) 

=item * $climb_rate (double) 

=item * $digits (integer) 

=back

=back

=head2 widget = Gtk2::SpinButton-E<gt>B<new_with_range> ($min, $max, $step)

=over

=over

=item * $min (double) 

=item * $max (double) 

=item * $step (double) 

=back

=back

=head2 adjustment = $spin_button-E<gt>B<get_adjustment> 

=over

=back

=head2 $spin_button-E<gt>B<set_adjustment> ($adjustment)

=over

=over

=item * $adjustment (Gtk2::Adjustment) 

=back

=back

=head2 $spin_button-E<gt>B<configure> ($adjustment, $climb_rate, $digits)

=over

=over

=item * $adjustment (Gtk2::Adjustment) 

=item * $climb_rate (double) 

=item * $digits (integer) 

=back

=back

=head2 integer = $spin_button-E<gt>B<get_digits> 

=over

=back

=head2 $spin_button-E<gt>B<set_digits> ($digits)

=over

=over

=item * $digits (integer) 

=back

=back

=head2 (step, page) = $spin_button-E<gt>B<get_increments> 

=over

=back

=head2 $spin_button-E<gt>B<set_increments> ($step, $page)

=over

=over

=item * $step (double) 

=item * $page (double) 

=back

=back

=head2 boolean = $spin_button-E<gt>B<get_numeric> 

=over

=back

=head2 $spin_button-E<gt>B<set_numeric> ($numeric)

=over

=over

=item * $numeric (boolean) 

=back

=back

=head2 (min, max) = $spin_button-E<gt>B<get_range> 

=over

=back

=head2 $spin_button-E<gt>B<set_range> ($min, $max)

=over

=over

=item * $min (double) 

=item * $max (double) 

=back

=back

=head2 boolean = $spin_button-E<gt>B<get_snap_to_ticks> 

=over

=back

=head2 $spin_button-E<gt>B<set_snap_to_ticks> ($snap_to_ticks)

=over

=over

=item * $snap_to_ticks (boolean) 

=back

=back

=head2 $spin_button-E<gt>B<spin> ($direction, $increment)

=over

=over

=item * $direction (Gtk2::SpinType) 

=item * $increment (double) 

=back

=back

=head2 $spin_button-E<gt>B<update> 

=over

=back

=head2 spinbuttonupdatepolicy = $spin_button-E<gt>B<get_update_policy> 

=over

=back

=head2 $spin_button-E<gt>B<set_update_policy> ($policy)

=over

=over

=item * $policy (Gtk2::SpinButtonUpdatePolicy) 

=back

=back

=head2 integer = $spin_button-E<gt>B<get_value_as_int> 

=over

=back

=head2 double = $spin_button-E<gt>B<get_value> 

=over

=back

=head2 $spin_button-E<gt>B<set_value> ($value)

=over

=over

=item * $value (double) 

=back

=back

=head2 boolean = $spin_button-E<gt>B<get_wrap> 

=over

=back

=head2 $spin_button-E<gt>B<set_wrap> ($wrap)

=over

=over

=item * $wrap (boolean) 

=back

=back


=head1 PROPERTIES

=over

=item 'adjustment' (Gtk2::Adjustment : readable / writable)

The adjustment that holds the value of the spinbutton

=item 'climb-rate' (double : readable / writable)

The acceleration rate when you hold down a button

=item 'digits' (Glib::UInt : readable / writable)

The number of decimal places to display

=item 'numeric' (boolean : readable / writable)

Whether non-numeric characters should be ignored

=item 'snap-to-ticks' (boolean : readable / writable)

Whether erroneous values are automatically changed to a spin button's nearest step increment

=item 'update-policy' (Gtk2::SpinButtonUpdatePolicy : readable / writable)

Whether the spin button should update always, or only when the value is legal

=item 'value' (double : readable / writable)

Reads the current value, or sets a new value

=item 'wrap' (boolean : readable / writable)

Whether a spin button should wrap upon reaching its limits

=back


=head1 SIGNALS

=over

=item B<value-changed> (Gtk2::SpinButton)

=item B<change-value> (Gtk2::SpinButton, Gtk2::ScrollType)

=item integer = B<input> (Gtk2::SpinButton, gpointer)

=item boolean = B<output> (Gtk2::SpinButton)

=back


=head1 ENUMS AND FLAGS

=head2 flags Gtk2::Gdk::EventMask

=over

=item * 'exposure-mask' / 'GDK_EXPOSURE_MASK'

=item * 'pointer-motion-mask' / 'GDK_POINTER_MOTION_MASK'

=item * 'pointer-motion-hint-mask' / 'GDK_POINTER_MOTION_HINT_MASK'

=item * 'button-motion-mask' / 'GDK_BUTTON_MOTION_MASK'

=item * 'button1-motion-mask' / 'GDK_BUTTON1_MOTION_MASK'

=item * 'button2-motion-mask' / 'GDK_BUTTON2_MOTION_MASK'

=item * 'button3-motion-mask' / 'GDK_BUTTON3_MOTION_MASK'

=item * 'button-press-mask' / 'GDK_BUTTON_PRESS_MASK'

=item * 'button-release-mask' / 'GDK_BUTTON_RELEASE_MASK'

=item * 'key-press-mask' / 'GDK_KEY_PRESS_MASK'

=item * 'key-release-mask' / 'GDK_KEY_RELEASE_MASK'

=item * 'enter-notify-mask' / 'GDK_ENTER_NOTIFY_MASK'

=item * 'leave-notify-mask' / 'GDK_LEAVE_NOTIFY_MASK'

=item * 'focus-change-mask' / 'GDK_FOCUS_CHANGE_MASK'

=item * 'structure-mask' / 'GDK_STRUCTURE_MASK'

=item * 'property-change-mask' / 'GDK_PROPERTY_CHANGE_MASK'

=item * 'visibility-notify-mask' / 'GDK_VISIBILITY_NOTIFY_MASK'

=item * 'proximity-in-mask' / 'GDK_PROXIMITY_IN_MASK'

=item * 'proximity-out-mask' / 'GDK_PROXIMITY_OUT_MASK'

=item * 'substructure-mask' / 'GDK_SUBSTRUCTURE_MASK'

=item * 'scroll-mask' / 'GDK_SCROLL_MASK'

=item * 'all-events-mask' / 'GDK_ALL_EVENTS_MASK'

=back



=head1 SEE ALSO

L<Gtk2>, L<Glib::Object>, L<Gtk2::Object>, L<Gtk2::Widget>, L<Gtk2::Entry>

=head1 COPYRIGHT

Copyright (C) 2003-2005 by the gtk2-perl team.

This software is licensed under the LGPL.  See L<Gtk2> for a full notice.


=cut

