Interface Lwjgl3WindowListener

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean closeRequested()
      Called when the user requested to close the window, e.g.
      void created​(Lwjgl3Window window)
      Called after the GLFW window is created.
      void filesDropped​(java.lang.String[] files)
      Called when external files are dropped into the window, e.g from the Desktop.
      void focusGained()
      Called when the window gained focus.
      void focusLost()
      Called when the window lost focus to another window.
      void iconified​(boolean isIconified)
      Called when the window is iconified (i.e.
      void maximized​(boolean isMaximized)
      Called when the window is maximized, or restored from the maximized state.
      void refreshRequested()
      Called when the window content is damaged and needs to be refreshed.
    • Method Detail

      • iconified

        void iconified​(boolean isIconified)
        Called when the window is iconified (i.e. its minimize button was clicked), or when restored from the iconified state. When a window becomes iconified, its ApplicationListener will be paused, and when restored it will be resumed.
        Parameters:
        isIconified - True if window is iconified, false if it leaves the iconified state
      • maximized

        void maximized​(boolean isMaximized)
        Called when the window is maximized, or restored from the maximized state.
        Parameters:
        isMaximized - true if window is maximized, false if it leaves the maximized state
      • focusLost

        void focusLost()
        Called when the window lost focus to another window. The window's ApplicationListener will continue to be called.
      • focusGained

        void focusGained()
        Called when the window gained focus.
      • closeRequested

        boolean closeRequested()
        Called when the user requested to close the window, e.g. clicking the close button or pressing the window closing keyboard shortcut.
        Returns:
        whether the window should actually close
      • filesDropped

        void filesDropped​(java.lang.String[] files)
        Called when external files are dropped into the window, e.g from the Desktop.
        Parameters:
        files - array with absolute paths to the files
      • refreshRequested

        void refreshRequested()
        Called when the window content is damaged and needs to be refreshed. When this occurs, Lwjgl3Graphics.requestRendering() is automatically called.