Interface SpinButton.OnInput

Enclosing class:
SpinButton
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface SpinButton.OnInput
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    onInput(Pointer new_value)
    Emitted to convert the users input into a double value.
  • Method Details

    • onInput

      int onInput(@Nonnull Pointer new_value)
      Emitted to convert the users 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 g_strtod().
      Parameters:
      new_value - return location for the new value
      Returns:
      %TRUE for a successful conversion, %FALSE if the input was not handled, and %GTK_INPUT_ERROR if the conversion failed.