Renders a spin button in a cell. More...
Inherits Gtk::CellRendererText.
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 < Gtk::Adjustment* > | property_adjustment () |
The adjustment that holds the value of the spinbutton. | |
Glib::PropertyProxy_ReadOnly < Gtk::Adjustment* > | property_adjustment () const |
The adjustment that holds the value of the spinbutton. | |
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::CellRendererSpin* | wrap (GtkCellRendererSpin* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
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.
virtual Gtk::CellRendererSpin::~CellRendererSpin | ( | ) | [virtual] |
Gtk::CellRendererSpin::CellRendererSpin | ( | ) |
const GtkCellRendererSpin* Gtk::CellRendererSpin::gobj | ( | ) | const [inline] |
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::CellRendererText.
GtkCellRendererSpin* Gtk::CellRendererSpin::gobj | ( | ) | [inline] |
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::CellRendererText.
Glib::PropertyProxy_ReadOnly<Gtk::Adjustment*> Gtk::CellRendererSpin::property_adjustment | ( | ) | const |
The adjustment that holds the value of the spinbutton.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy<Gtk::Adjustment*> Gtk::CellRendererSpin::property_adjustment | ( | ) |
The adjustment that holds the value of the spinbutton.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly<double> Gtk::CellRendererSpin::property_climb_rate | ( | ) | const |
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.
Glib::PropertyProxy<double> Gtk::CellRendererSpin::property_climb_rate | ( | ) |
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.
Glib::PropertyProxy_ReadOnly<guint> Gtk::CellRendererSpin::property_digits | ( | ) | const |
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.
Glib::PropertyProxy<guint> Gtk::CellRendererSpin::property_digits | ( | ) |
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.
Gtk::CellRendererSpin* wrap | ( | GtkCellRendererSpin * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |