Interface Editable.OnInsertText

Enclosing class:
Editable
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 Editable.OnInsertText
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onInsertText(Str text, int length, Pointer position)
    Emitted when text is inserted into the widget by the user.
  • Method Details

    • onInsertText

      void onInsertText(@Nonnull Str text, int length, @Nonnull Pointer position)
      Emitted when text is inserted into the widget by the user.

      The default handler for this signal will normally be responsible
      for inserting the text, so by connecting to this signal and then
      stopping the signal with g_signal_stop_emission(), it is possible
      to modify the inserted text, or prevent it from being inserted entirely.
      Parameters:
      text - the new text to insert
      length - the length of the new text, in bytes, or -1 if new_text is nul-terminated
      position - the position, in characters, at which to insert the new text. this is an in-out parameter. After the signal emission is finished, it should point after the newly inserted text.