CellRendererSpin

Renders a spin button in a cell

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

More...

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Creates a new gtk.cell_renderer_spin.CellRendererSpin.

Members

Functions

self
CellRendererSpin self()

Returns this, for use in with statements.

Properties

adjustment
gtk.adjustment.Adjustment adjustment [@property getter]

Get adjustment property.

adjustment
gtk.adjustment.Adjustment adjustment [@property setter]

Set adjustment property.

climbRate
double climbRate [@property getter]

Get climbRate property.

climbRate
double climbRate [@property setter]

Set climbRate property.

digits
uint digits [@property getter]

Get digits property.

digits
uint digits [@property setter]

Set digits property.

gType
GType gType [@property getter]

Static functions

getGType
GType getGType()

Inherited Members

From CellRendererText

getGType
GType getGType()
gType
GType gType [@property getter]
self
CellRendererText self()

Returns this, for use in with statements.

alignSet
bool alignSet [@property getter]
alignSet
bool alignSet [@property setter]
alignment
pango.types.Alignment alignment [@property getter]

Get alignment property.

alignment
pango.types.Alignment alignment [@property setter]

Set alignment property.

attributes
pango.attr_list.AttrList attributes [@property getter]
attributes
pango.attr_list.AttrList attributes [@property setter]
background
string background [@property setter]
backgroundRgba
gdk.rgba.RGBA backgroundRgba [@property getter]

Get backgroundRgba property.

backgroundRgba
gdk.rgba.RGBA backgroundRgba [@property setter]

Set backgroundRgba property.

backgroundSet
bool backgroundSet [@property getter]
backgroundSet
bool backgroundSet [@property setter]
editable
bool editable [@property getter]
editable
bool editable [@property setter]
editableSet
bool editableSet [@property getter]
editableSet
bool editableSet [@property setter]
ellipsize
pango.types.EllipsizeMode ellipsize [@property getter]

Get ellipsize property.

ellipsize
pango.types.EllipsizeMode ellipsize [@property setter]

Set ellipsize property.

ellipsizeSet
bool ellipsizeSet [@property getter]
ellipsizeSet
bool ellipsizeSet [@property setter]
family
string family [@property getter]
family
string family [@property setter]
familySet
bool familySet [@property getter]
familySet
bool familySet [@property setter]
font
string font [@property getter]
font
string font [@property setter]
fontDesc
pango.font_description.FontDescription fontDesc [@property getter]
fontDesc
pango.font_description.FontDescription fontDesc [@property setter]
foreground
string foreground [@property setter]
foregroundRgba
gdk.rgba.RGBA foregroundRgba [@property getter]

Get foregroundRgba property.

foregroundRgba
gdk.rgba.RGBA foregroundRgba [@property setter]

Set foregroundRgba property.

foregroundSet
bool foregroundSet [@property getter]
foregroundSet
bool foregroundSet [@property setter]
language
string language [@property getter]
language
string language [@property setter]
languageSet
bool languageSet [@property getter]
languageSet
bool languageSet [@property setter]
markup
string markup [@property setter]
maxWidthChars
int maxWidthChars [@property getter]

Get maxWidthChars property.

maxWidthChars
int maxWidthChars [@property setter]

Set maxWidthChars property.

placeholderText
string placeholderText [@property getter]

Get placeholderText property.

placeholderText
string placeholderText [@property setter]

Set placeholderText property.

rise
int rise [@property getter]
rise
int rise [@property setter]
riseSet
bool riseSet [@property getter]
riseSet
bool riseSet [@property setter]
scale
double scale [@property getter]
scale
double scale [@property setter]
scaleSet
bool scaleSet [@property getter]
scaleSet
bool scaleSet [@property setter]
singleParagraphMode
bool singleParagraphMode [@property getter]
singleParagraphMode
bool singleParagraphMode [@property setter]
size
int size [@property getter]
size
int size [@property setter]
sizePoints
double sizePoints [@property getter]
sizePoints
double sizePoints [@property setter]
sizeSet
bool sizeSet [@property getter]
sizeSet
bool sizeSet [@property setter]
stretch
pango.types.Stretch stretch [@property getter]
stretch
pango.types.Stretch stretch [@property setter]
stretchSet
bool stretchSet [@property getter]
stretchSet
bool stretchSet [@property setter]
strikethrough
bool strikethrough [@property getter]
strikethrough
bool strikethrough [@property setter]
strikethroughSet
bool strikethroughSet [@property getter]
strikethroughSet
bool strikethroughSet [@property setter]
style
pango.types.Style style [@property getter]
style
pango.types.Style style [@property setter]
styleSet
bool styleSet [@property getter]
styleSet
bool styleSet [@property setter]
text
string text [@property getter]
text
string text [@property setter]
underline
pango.types.Underline underline [@property getter]
underline
pango.types.Underline underline [@property setter]
underlineSet
bool underlineSet [@property getter]
underlineSet
bool underlineSet [@property setter]
variant
pango.types.Variant variant [@property getter]
variant
pango.types.Variant variant [@property setter]
variantSet
bool variantSet [@property getter]
variantSet
bool variantSet [@property setter]
weight
int weight [@property getter]
weight
int weight [@property setter]
weightSet
bool weightSet [@property getter]
weightSet
bool weightSet [@property setter]
widthChars
int widthChars [@property getter]

Get widthChars property.

widthChars
int widthChars [@property setter]

Set widthChars property.

wrapMode
pango.types.WrapMode wrapMode [@property getter]

Get wrapMode property.

wrapMode
pango.types.WrapMode wrapMode [@property setter]

Set wrapMode property.

wrapWidth
int wrapWidth [@property getter]

Get wrapWidth property.

wrapWidth
int wrapWidth [@property setter]

Set wrapWidth property.

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 inflexible, 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.

connectEdited
ulong connectEdited(T callback, Flag!"After" after)

Connect to Edited signal.

Detailed Description

Deprecated: List views use widgets to display their contents. You should use gtk.spin_button.SpinButton instead