Interface Window

All Superinterfaces:
Attachable, Audio, Canvas, Positionable
All Known Implementing Classes:
SwingWindow

public interface Window extends Canvas, Audio, Attachable
Represents a context frame, which can act as a canvas. Moreover, the camera can be attached to any positionable entity.
  • Method Details

    • getFocus

      Button getFocus()
      Returns:
      (Button): whether the windows is active
    • getMouse

      Mouse getMouse()
      Returns:
      (Mouse): associated mouse controller
    • getKeyboard

      Keyboard getKeyboard()
      Returns:
      (Keyboard): associated keyboard controller
    • isCloseRequested

      boolean isCloseRequested()
      Returns:
      (boolean): whether the user tried to close the window
    • update

      void update()
    • dispose

      void dispose()
      Destroys and closes the window