Schnittstelle SpinRow.OnInput

Umschließende Klasse:
SpinRow
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface SpinRow.OnInput
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    int
    onInput(Pointer new_value)
    Emitted to convert the user's input into a double value.
  • Methodendetails

    • onInput

      int onInput(@Nonnull Pointer new_value)
      Emitted to convert the user's input into a double value.

      The signal handler is expected to use [method@Gtk.Editable.get_text] to
      retrieve the text of the spinbutton and set new_value to the new value.

      The default conversion uses [func@GLib.strtod].

      See [signal@Gtk.SpinButton::input].
      Parameter:
      new_value - return location for the new value
      Gibt zurück:
      `TRUE` for a successful conversion, `FALSE` if the input was not handled, and `GTK_INPUT_ERROR` if the conversion failed.