man Gtk2::SpinButton () - Gtk2::SpinButton

NAME

Gtk2::SpinButton

HIERARCHY

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

INTERFACES

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

METHODS

$spin_button->set_adjustment ($adjustment)

$spin_button->set_digits ($digits)

$spin_button->set_numeric ($numeric)

$spin_button->set_snap_to_ticks ($snap_to_ticks)

$spin_button->update

$spin_button->set_update_policy ($policy)

$spin_button->set_value ($value)

$spin_button->set_wrap ($wrap)

PROPERTIES

'adjustment' (Gtk2::Adjustment : readable / writable / private)
The adjustment that holds the value of the spinbutton
'climb-rate' (double : readable / writable / private)
The acceleration rate when you hold down a button
'digits' (Glib::UInt : readable / writable / private)
The number of decimal places to display
'numeric' (boolean : readable / writable / private)
Whether non-numeric characters should be ignored
'snap-to-ticks' (boolean : readable / writable / private)
Whether erroneous values are automatically changed to a spin button's nearest step increment
'update-policy' (Gtk2::SpinButtonUpdatePolicy : readable / writable / private)
Whether the spin button should update always, or only when the value is legal
'value' (double : readable / writable / private)
Reads the current value, or sets a new value
'wrap' (boolean : readable / writable / private)
Whether a spin button should wrap upon reaching its limits

SIGNALS

value-changed (Gtk2::SpinButton)
change-value (Gtk2::SpinButton, Gtk2::ScrollType)
integer = input (Gtk2::SpinButton, gpointer)
boolean = output (Gtk2::SpinButton)

ENUMS AND FLAGS

enum Gtk2::ScrollType

* 'none' / 'GTK_SCROLL_NONE'
* 'jump' / 'GTK_SCROLL_JUMP'
* 'step-backward' / 'GTK_SCROLL_STEP_BACKWARD'
* 'step-forward' / 'GTK_SCROLL_STEP_FORWARD'
* 'page-backward' / 'GTK_SCROLL_PAGE_BACKWARD'
* 'page-forward' / 'GTK_SCROLL_PAGE_FORWARD'
* 'step-up' / 'GTK_SCROLL_STEP_UP'
* 'step-down' / 'GTK_SCROLL_STEP_DOWN'
* 'page-up' / 'GTK_SCROLL_PAGE_UP'
* 'page-down' / 'GTK_SCROLL_PAGE_DOWN'
* 'step-left' / 'GTK_SCROLL_STEP_LEFT'
* 'step-right' / 'GTK_SCROLL_STEP_RIGHT'
* 'page-left' / 'GTK_SCROLL_PAGE_LEFT'
* 'page-right' / 'GTK_SCROLL_PAGE_RIGHT'
* 'start' / 'GTK_SCROLL_START'
* 'end' / 'GTK_SCROLL_END'

enum Gtk2::SpinButtonUpdatePolicy

* 'always' / 'GTK_UPDATE_ALWAYS'
* 'if-valid' / 'GTK_UPDATE_IF_VALID'

enum Gtk2::SpinType

* 'step-forward' / 'GTK_SPIN_STEP_FORWARD'
* 'step-backward' / 'GTK_SPIN_STEP_BACKWARD'
* 'page-forward' / 'GTK_SPIN_PAGE_FORWARD'
* 'page-backward' / 'GTK_SPIN_PAGE_BACKWARD'
* 'home' / 'GTK_SPIN_HOME'
* 'end' / 'GTK_SPIN_END'
* 'user-defined' / 'GTK_SPIN_USER_DEFINED'

SEE ALSO

Gtk2, Glib::Object, Glib::Object::_Unregistered::GInitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Entry

COPYRIGHT

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

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