## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Cell_Renderer_Spin

- Goto spec source

# Description

    package Gtk.Cell_Renderer_Spin is

Gtk_Cell_Renderer_Spin renders text in a cell like Gtk_Cell_Renderer_Text from which it is derived. But while Gtk_Cell_Renderer_Text offers a simple entry to edit the text, Gtk_Cell_Renderer_Spin offers a Gtk_Spin_Button widget. Of course, that means that the text has to be parseable as a floating point number.

The range of the spinbutton is taken from the adjustment property of the cell renderer, which can be set explicitly or mapped to a column in the tree model, like all properties of cell renders. Gtk_Cell_Renderer_Spin also has properties for the climb rate and the number of digits to display.

Other Gtk_Spin_Button properties can be set in a handler for the start-editing signal.

The Gtk_Cell_Renderer_Spin cell renderer was added in GTK+ 2.10.

Binding from C File version 2.16.6

# Classes

### Gtk_Cell_Renderer_Spin_Record

- Goto declaration in source
- Goto full declaration in source

    type Gtk_Cell_Renderer_Spin_Record is
         new Gtk.Cell_Renderer_Text.Gtk_Cell_Renderer_Text_Record with private;

#### Ancestors:

Gtk.Cell_Renderer_Text.Gtk_Cell_Renderer_Text_Record
Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record
Glib.Object.GObject_Record

#### Primitive operations:

Glib.Object.Deallocate

- To API doc
- To spec

(Inherited)
Glib.Object.Get_Type

- To API doc
- To spec

(Inherited)
Glib.Object.Notify

- To API doc
- To spec

(Inherited)
Glib.Object.Ref

- To API doc
- To spec

(Inherited)
Glib.Object.Ref_Sink

- To API doc
- To spec

(Inherited)
Glib.Object.Unref

- To API doc
- To spec

(Inherited)
Gtk.Cell_Renderer.Activate

- To API doc
- To spec

(Inherited)
Gtk.Cell_Renderer.Get_Fixed_Size

- To API doc
- To spec

(Inherited)
Gtk.Cell_Renderer.Get_Size

- To API doc
- To spec

(Inherited)
Gtk.Cell_Renderer.Render

- To API doc
- To spec

(Inherited)
Gtk.Cell_Renderer.Set_Fixed_Size

- To API doc
- To spec

(Inherited)
Gtk.Cell_Renderer.Start_Editing

- To API doc
- To spec

(Inherited)
Gtk.Cell_Renderer_Text.Set_Fixed_Height_From_Font

- To API doc
- To spec

(Inherited)

# Types

### Gtk_Cell_Renderer_Spin

- Goto declaration in source

    type Gtk_Cell_Renderer_Spin is
         access all Gtk_Cell_Renderer_Spin_Record'Class;

# Constants & Global variables

### Adjustment_Property

- Goto declaration in source

(Glib.Properties.Property_Object)

    Adjustment_Property : constant Glib.Properties.Property_Object;

### Climb_Rate_Property

- Goto declaration in source

(Glib.Properties.Property_Double)

    Climb_Rate_Property : constant Glib.Properties.Property_Double;

### Digits_Property

- Goto declaration in source

(Glib.Properties.Property_Uint)

    Digits_Property     : constant Glib.Properties.Property_Uint;

# Subprograms & Entries

### Gtk_New

- Goto spec in source

    procedure Gtk_New (Widget: out Gtk_Cell_Renderer_Spin);

Creates a new Gtk_Cell_Renderer_Spin.

### Initialize

- Goto spec in source

    procedure Initialize (Widget: access Gtk_Cell_Renderer_Spin_Record'Class);

Creates a new Gtk_Cell_Renderer_Spin.

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return GType;

Return the internal value associated with this widget.