Index

Package: Cell_Renderer_Spin

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

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

Ancestors:

Primitive operations:

Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
Gtk.Cell_Renderer.Activate (Inherited)
Gtk.Cell_Renderer.Get_Fixed_Size (Inherited)
Gtk.Cell_Renderer.Get_Size (Inherited)
Gtk.Cell_Renderer.Render (Inherited)
Gtk.Cell_Renderer.Set_Fixed_Size (Inherited)
Gtk.Cell_Renderer.Start_Editing (Inherited)
Gtk.Cell_Renderer_Text.Set_Fixed_Height_From_Font (Inherited)

Types

Gtk_Cell_Renderer_Spin

type Gtk_Cell_Renderer_Spin is
     access all Gtk_Cell_Renderer_Spin_Record'Class;

Constants & Global variables

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Widget: out Gtk_Cell_Renderer_Spin);
Creates a new Gtk_Cell_Renderer_Spin.

Initialize

procedure Initialize 
(Widget: access Gtk_Cell_Renderer_Spin_Record'Class);
Creates a new Gtk_Cell_Renderer_Spin.

Get_Type

function Get_Type return GType;
Return the internal value associated with this widget.