gtkmm  3.4.0
Public Member Functions | Related Functions
Gtk::CellRendererSpin Class Reference

Renders a spin button in a cell. More...

Inheritance diagram for Gtk::CellRendererSpin:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~CellRendererSpin ()
GtkCellRendererSpin* gobj ()
 Provides access to the underlying C GtkObject.
const GtkCellRendererSpin* gobj () const
 Provides access to the underlying C GtkObject.
 CellRendererSpin ()
Glib::PropertyProxy
< Glib::RefPtr< Adjustment > > 
property_adjustment ()
 The adjustment that holds the value of the spin button.
Glib::PropertyProxy_ReadOnly
< Glib::RefPtr< Adjustment > > 
property_adjustment () const
 The adjustment that holds the value of the spin button.
Glib::PropertyProxy< double > property_climb_rate ()
 The acceleration rate when you hold down a button.
Glib::PropertyProxy_ReadOnly
< double > 
property_climb_rate () const
 The acceleration rate when you hold down a button.
Glib::PropertyProxy< guint > property_digits ()
 The number of decimal places to display.
Glib::PropertyProxy_ReadOnly
< guint > 
property_digits () const
 The number of decimal places to display.

Related Functions

(Note that these are not member functions.)

Gtk::CellRendererSpinwrap (GtkCellRendererSpin* object, bool take_copy=false)
 A Glib::wrap() method for this object.

Detailed Description

Renders a spin button in a cell.

Gtk::CellRendererSpin renders text in a cell like Gtk::CellRendererText, from which it is derived. But while Gtk::CellRendererText offers a simple entry to edit the text, Gtk::CellRendererSpin offers a Gtk::SpinButton widget. Of course, that means that the text must 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::CellRendererSpin also has properties for the climb rate and the number of digits to display. Other Gtk::SpinButton properties can be set in a handler for the start-editing signal.

Since gtkmm 2.12:

Constructor & Destructor Documentation


Member Function Documentation

GtkCellRendererSpin* Gtk::CellRendererSpin::gobj ( ) [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::CellRendererText.

const GtkCellRendererSpin* Gtk::CellRendererSpin::gobj ( ) const [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::CellRendererText.

The adjustment that holds the value of the spin button.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

The adjustment that holds the value of the spin button.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

The acceleration rate when you hold down a button.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

The acceleration rate when you hold down a button.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

The number of decimal places to display.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

The number of decimal places to display.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Friends And Related Function Documentation

Gtk::CellRendererSpin* wrap ( GtkCellRendererSpin *  object,
bool  take_copy = false 
) [related]

A Glib::wrap() method for this object.

Parameters:
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.

The documentation for this class was generated from the following file: