Class

Gtk.CellRendererSpin

Description [src]

final class Gtk.CellRendererSpin : Gtk.CellRendererText {
  /* No available fields */
}

Renders a spin button in a cell

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.

Hierarchy

Hierarchy for Gtk.CellRendererSpin

Constructors

gtk_cell_renderer_spin_new

Creates a new GtkCellRendererSpin.

Properties

Gtk.CellRendererSpin:adjustment

The adjustment that holds the value of the spinbutton. This must be non-NULL for the cell renderer to be editable.

Gtk.CellRendererSpin:climb-rate

The acceleration rate when you hold down a button.

Gtk.CellRendererSpin:digits

The number of decimal places to display.

Properties inherited from GtkCellRendererText (46)
Gtk.CellRendererText:align-set
No description available.
Gtk.CellRendererText:alignment

Specifies how to align the lines of text with respect to each other.

Gtk.CellRendererText:attributes
No description available.
Gtk.CellRendererText:background
No description available.
Gtk.CellRendererText:background-rgba

Background color as a GdkRGBA

Gtk.CellRendererText:background-set
No description available.
Gtk.CellRendererText:editable
No description available.
Gtk.CellRendererText:editable-set
No description available.
Gtk.CellRendererText:ellipsize

Specifies the preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string. Setting it to PANGO_ELLIPSIZE_NONE turns off ellipsizing. See the wrap-width property for another way of making the text fit into a given width.

Gtk.CellRendererText:ellipsize-set
No description available.
Gtk.CellRendererText:family
No description available.
Gtk.CellRendererText:family-set
No description available.
Gtk.CellRendererText:font
No description available.
Gtk.CellRendererText:font-desc
No description available.
Gtk.CellRendererText:foreground
No description available.
Gtk.CellRendererText:foreground-rgba

Foreground color as a GdkRGBA

Gtk.CellRendererText:foreground-set
No description available.
Gtk.CellRendererText:language
No description available.
Gtk.CellRendererText:language-set
No description available.
Gtk.CellRendererText:markup
No description available.
Gtk.CellRendererText:max-width-chars

The desired maximum width of the cell, in characters. If this property is set to -1, the width will be calculated automatically.

Gtk.CellRendererText:placeholder-text

The text that will be displayed in the GtkCellRenderer if GtkCellRendererText:editable is TRUE and the cell is empty.

Gtk.CellRendererText:rise
No description available.
Gtk.CellRendererText:rise-set
No description available.
Gtk.CellRendererText:scale
No description available.
Gtk.CellRendererText:scale-set
No description available.
Gtk.CellRendererText:single-paragraph-mode
No description available.
Gtk.CellRendererText:size
No description available.
Gtk.CellRendererText:size-points
No description available.
Gtk.CellRendererText:size-set
No description available.
Gtk.CellRendererText:stretch
No description available.
Gtk.CellRendererText:stretch-set
No description available.
Gtk.CellRendererText:strikethrough
No description available.
Gtk.CellRendererText:strikethrough-set
No description available.
Gtk.CellRendererText:style
No description available.
Gtk.CellRendererText:style-set
No description available.
Gtk.CellRendererText:text
No description available.
Gtk.CellRendererText:underline
No description available.
Gtk.CellRendererText:underline-set
No description available.
Gtk.CellRendererText:variant
No description available.
Gtk.CellRendererText:variant-set
No description available.
Gtk.CellRendererText:weight
No description available.
Gtk.CellRendererText:weight-set
No description available.
Gtk.CellRendererText:width-chars

The desired width of the cell, in characters. If this property is set to -1, the width will be calculated automatically, otherwise the cell will request either 3 characters or the property value, whichever is greater.

Gtk.CellRendererText:wrap-mode

Specifies how to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string. This property has no effect unless the wrap-width property is set.

Gtk.CellRendererText:wrap-width

Specifies the minimum width at which the text is wrapped. The wrap-mode property can be used to influence at what character positions the line breaks can be placed. Setting wrap-width to -1 turns wrapping off.

Properties inherited from GtkCellRenderer (15)
Gtk.CellRenderer:cell-background
No description available.
Gtk.CellRenderer:cell-background-rgba

Cell background as a GdkRGBA

Gtk.CellRenderer:cell-background-set
No description available.
Gtk.CellRenderer:editing
No description available.
Gtk.CellRenderer:height
No description available.
Gtk.CellRenderer:is-expanded
No description available.
Gtk.CellRenderer:is-expander
No description available.
Gtk.CellRenderer:mode
No description available.
Gtk.CellRenderer:sensitive
No description available.
Gtk.CellRenderer:visible
No description available.
Gtk.CellRenderer:width
No description available.
Gtk.CellRenderer:xalign
No description available.
Gtk.CellRenderer:xpad
No description available.
Gtk.CellRenderer:yalign
No description available.
Gtk.CellRenderer:ypad
No description available.