GtkSpinButton

Gamma/GTK: Using Gamma™ with GTK, Version 0.9
Prev |  | Next

# `GtkSpinButton`

`GtkSpinButton` -- facilitates entering numbers.

## Synopsis

    class GtkSpinButton GtkEntry
    {
        adjustment;           // GtkAdjustment             : Read / Write
        climb_rate;           // gfloat                    : Read / Write
        digits;               // guint                     : Read / Write
        numeric;              // gboolean                  : Read / Write
        shadow_type;          // GtkShadowType             : Read / Write
        snap_to_ticks;        // gboolean                  : Read / Write
        update_policy;        // GtkSpinButtonUpdatePolicy : Read / Write
        value;                // gfloat                    : Read / Write
        wrap;                 // gboolean                  : Read / Write
    }

## Parent Classes

`GtkObject`<-- `GtkWidget`<-- `GtkEditable`<-- `GtkEntry`<--GtkSpinButton

## Methods

`configure` (`adjustment`, `climb_rate`, `digits`)
`get_adjustment` ()
`get_value_as_float` ()
`get_value_as_int` ()
`set_adjustment` (`adjustment`)
`set_digits` (`digits`)
`set_numeric` (`numeric`)
`set_shadow_type` (`shadow_type`)
`set_snap_to_ticks` (`snap_to_ticks`)
`set_update_policy` (`policy`)
`set_value` (`value`)
`set_wrap` (`wrap`)
`spin` (`direction`, `increment`)
`update` ()

## Related Functions

`gtk_spin_button_get_type` () -- replaces GTK_TYPE_SPIN_BUTTON
`gtk_spin_button_new` (`adjustment`, `climb_rate`, `digits`)

## Example

See the Spin Button example in the Example Code Appendix.

Prev | Home | Next
`GtkSocket` | Up | `GtkStatusbar`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.