Interface TextView.OnMoveViewport

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.OnMoveViewport
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onMoveViewport(int step, int count)
    Gets emitted to move the viewport.
  • Method Details

    • onMoveViewport

      void onMoveViewport(int step, int count)
      Gets emitted to move the viewport.

      The ::move-viewport signal is a [keybinding signal](class.SignalAction.html),
      which can be bound to key combinations to allow the user to move the viewport,
      i.e. change what part of the text view is visible in a containing scrolled
      window.

      There are no default bindings for this signal.
      Parameters:
      step - the granularity of the movement, as a `GtkScrollStep`
      count - the number of @step units to move