Interface TextView.OnDeleteFromCursor

Enclosing class:
TextView
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 TextView.OnDeleteFromCursor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onDeleteFromCursor(int type, int count)
    Gets emitted when the user initiates a text deletion.
  • Method Details

    • onDeleteFromCursor

      void onDeleteFromCursor(int type, int count)
      Gets emitted when the user initiates a text deletion.

      The ::delete-from-cursor signal is a [keybinding signal](class.SignalAction.html).

      If the @type is %GTK_DELETE_CHARS, GTK deletes the selection
      if there is one, otherwise it deletes the requested number
      of characters.

      The default bindings for this signal are <kbd>Delete</kbd> for
      deleting a character, <kbd>Ctrl</kbd>-<kbd>Delete</kbd> for
      deleting a word and <kbd>Ctrl</kbd>-<kbd>Backspace</kbd> for
      deleting a word backwards.
      Parameters:
      type - the granularity of the deletion, as a `GtkDeleteType`
      count - the number of @type units to delete