Interface WindowListener

All Superinterfaces:
BasePaneListener<Window>
All Known Implementing Classes:
WindowListenerAdapter

public interface WindowListener extends BasePaneListener<Window>
Extended BasePaneListener for Window that exposes additional events that are specific to windows
  • Method Details

    • onResized

      void onResized(Window window, TerminalSize oldSize, TerminalSize newSize)
      Called whenever the window's size has changed, no matter if it was done by the window manager or the user
      Parameters:
      window - Window that was resized
      oldSize - Previous size of the window
      newSize - New size of the window
    • onMoved

      void onMoved(Window window, TerminalPosition oldPosition, TerminalPosition newPosition)
      Called whenever the window's position has changed, no matter if it was done by the window manager or the user
      Parameters:
      window - Window that was repositioned
      oldPosition - Previous position of the window
      newPosition - New position of the window