Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: CellRendererSpin

[22:7] extends: object

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.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • CellRendererSpin ()

    Creates a new GtkCellRendererSpin.

  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asCellRendererText ()

    Wraps this handle as CellRendererText.

    • @r A CellRendererText object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setAdjustment (object Value)

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

    • @p Value is the new property value.
    • @r None.
  • setClimbrate (double Value)

    The acceleration rate when you hold down a button.

    • @p Value is the new property value.
    • @r None.
  • setDigits (int Value)

    The number of decimal places to display.

    • @p Value is the new property value.
    • @r None.

class: CellRendererSpinMeta

[165:14] static extends: object

Generated metadata helpers for CellRendererSpin class surfaces.

Methods

  • properties ()

    Returns property metadata for CellRendererSpin.

    • @r A list.