---
name: "Gtk_SpinButton"
section: "3"
platform: "linux"
package: "libgtkmm-dev"
version: "1.0.3-1.1"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk_SpinButton"
---

# Gtk\_SpinButton(3)

## NAME - Gtk\_SpinButton

numeric Entry with up/down buttons

## HEADER REQUIRED

**#include \<gtk--/spinbutton.h&gt;\>**

## BASE CLASSES

[Gtk\_Entry(3)](/Gtk_Entry/3.md)

## PROPERTIES

- *adjustment*

  Type: GtkAdjustment\*\

- *panel*

  Type: GdkWindow\*\

- *shadow\_type*

  Type: GtkShadowType\

- *timer*

  Type: guint32\

- *ev\_time*

  Type: guint32\

- *climb\_rate*

  Type: gfloat\

- *timer\_step*

  Type: gfloat\

- *update\_policy*

  Type: GtkSpinButtonUpdatePolicy\

- *in\_child*

  Type: guint:2\

- *click\_child*

  Type: guint:2\

- *button*

  Type: guint:2\

- *need\_timer*

  Type: guint:1\

- *timer\_calls*

  Type: guint:3\

- *digits*

  Type: guint:3\

- *numeric*

  Type: guint:1\

- *wrap*

  Type: guint:1\

- *snap\_to\_ticks*

  Type: guint:1\

-

   .IP

## PUBLIC MEMBER INDEX

```
Gtk_SpinButton(gfloat climb_rate=0, gint digits=0);
  create instance
Gtk_SpinButton(Gtk_Adjustment &adjustment, gfloat climb_rate=0, gint digits=0);
Gtk_SpinButton(GtkSpinButton *castitem);
~Gtk_SpinButton();
void  set_adjustment(const Gtk_Adjustment &adjustment);
  set a new range/value
const Gtk_Adjustment*  get_adjustment() const;
  get range/value
void  set_digits(gint digits);
  set number of decimals
gfloat  get_value_as_float() const;
  get value
gint  get_value_as_int() const;
  get value
void  set_value(gfloat value);
  set value
void  set_update_policy(GtkSpinButtonUpdatePolicy policy);
void  set_wrap(bool wrap);
void  set_numeric(bool numeric);
void  spin(GtkSpinType direction, gfloat step);
void  set_shadow_type(GtkShadowType shadow_type);
void  set_snap_to_ticks(bool snap_to_ticks);
GtkSpinButton*  gtkobj();
const GtkSpinButton*  gtkobj() const;
static bool  isGtkSpinButton(Gtk_Object *checkcast);
```

## PROTECTED MEMBER INDEX

```
friend  CppClassType;
typedef GtkSpinButton  BaseObjectType;
typedef GtkSpinButtonClass  BaseClassType;
virtual void * get_parent_class();
Gtk_ObjectHandle  adjustment_;
```

## PRIVATE MEMBER INDEX

```
static CppClassType  spin_button_class;
GtkType  get_type();
```

## PUBLIC MEMBER DESCRIPTIONS

## PROTECTED MEMBER DESCRIPTIONS

## PRIVATE MEMBER DESCRIPTIONS
