Interface IMContext.OnDeleteSurrounding

Enclosing class:
IMContext
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 IMContext.OnDeleteSurrounding
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onDeleteSurrounding(int offset, int n_chars)
    The ::delete-surrounding signal is emitted when the input method
    needs to delete all or part of the context surrounding the cursor.
  • Method Details

    • onDeleteSurrounding

      boolean onDeleteSurrounding(int offset, int n_chars)
      The ::delete-surrounding signal is emitted when the input method
      needs to delete all or part of the context surrounding the cursor.
      Parameters:
      offset - the character offset from the cursor position of the text to be deleted. A negative value indicates a position before the cursor.
      n_chars - the number of characters to be deleted
      Returns:
      %TRUE if the signal was handled.