Next:
Gtk2::Statusbar
Previous:
Gtk2::Socket
 [Gtk2-Perl - Table of Contents][Gtk2-Perl - Index]

Gtk2::SpinButton



NAME

Gtk2::SpinButton

HIERARCHY

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

INTERFACES

  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable
  Gtk2::CellEditable
  Gtk2::Editable

METHODS

widget = Gtk2::SpinButton->new ($adjustment, $climb_rate, $digits)

widget = Gtk2::SpinButton->new_with_range ($min, $max, $step)

adjustment = $spin_button->get_adjustment

$spin_button->set_adjustment ($adjustment)

$spin_button->configure ($adjustment, $climb_rate, $digits)

integer = $spin_button->get_digits

$spin_button->set_digits ($digits)

(step, page) = $spin_button->get_increments

$spin_button->set_increments ($step, $page)

boolean = $spin_button->get_numeric

$spin_button->set_numeric ($numeric)

(min, max) = $spin_button->get_range

$spin_button->set_range ($min, $max)

boolean = $spin_button->get_snap_to_ticks

$spin_button->set_snap_to_ticks ($snap_to_ticks)

$spin_button->spin ($direction, $increment)

$spin_button->update

spinbuttonupdatepolicy = $spin_button->get_update_policy

$spin_button->set_update_policy ($policy)

integer = $spin_button->get_value_as_int

double = $spin_button->get_value

$spin_button->set_value ($value)

boolean = $spin_button->get_wrap

$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)
wrapped (Gtk2::SpinButton)

ENUMS AND FLAGS

enum Gtk2::ScrollType

enum Gtk2::SpinButtonUpdatePolicy

enum Gtk2::SpinType

SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Entry

COPYRIGHT

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

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


[Top] Generated by Marek::Pod::HTML 0.49 on Wed Dec 16 23:03:41 2009