CellRendererSpin

#GtkCellRendererSpin renders text in a cell like #GtkCellRendererText from which it is derived. But while #GtkCellRendererText offers a simple entry to edit the text, #GtkCellRendererSpin offers a #GtkSpinButton 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. #GtkCellRendererSpin also has properties for the #GtkCellRendererSpin:climb-rate and the number of #GtkCellRendererSpin:digits to display. Other #GtkSpinButton properties can be set in a handler for the #GtkCellRenderer::editing-started signal.

The #GtkCellRendererSpin cell renderer was added in GTK+ 2.10.

Constructors

this
this(GtkCellRendererSpin* gtkCellRendererSpin, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new #GtkCellRendererSpin.

Members

Functions

getCellRendererSpinStruct
GtkCellRendererSpin* getCellRendererSpinStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

getType
GType getType()

Variables

gtkCellRendererSpin
GtkCellRendererSpin* gtkCellRendererSpin;

the main Gtk struct

Inherited Members

From CellRendererText

gtkCellRendererText
GtkCellRendererText* gtkCellRendererText;

the main Gtk struct

getCellRendererTextStruct
GtkCellRendererText* getCellRendererTextStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
getType
GType getType()
setFixedHeightFromFont
void setFixedHeightFromFont(int numberOfRows)

Sets the height of a renderer to explicitly be determined by the “font” and “y_pad” property set on it. Further changes in these properties do not affect the height, so they must be accompanied by a subsequent call to this function. Using this function is unflexible, and should really only be used if calculating the size of a cell is too slow (ie, a massive number of cells displayed). If @number_of_rows is -1, then the fixed height is unset, and the height is determined by the properties again.

OnEditedDelegateWrapper
class OnEditedDelegateWrapper
Undocumented in source.
onEditedListeners
OnEditedDelegateWrapper[] onEditedListeners;
Undocumented in source.
addOnEdited
gulong addOnEdited(void delegate(string, string, CellRendererText) dlg, ConnectFlags connectFlags)

This signal is emitted after @renderer has been edited.

callBackEdited
void callBackEdited(GtkCellRendererText* cellrenderertextStruct, char* path, char* newText, OnEditedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackEditedDestroy
void callBackEditedDestroy(OnEditedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta