public interface Lwjgl3WindowListener
Lwjgl3ApplicationConfiguration and Lwjgl3WindowConfiguration. Close events can be canceled
by returning false.| Modifier and Type | Method and 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.
|
void created(Lwjgl3Window window)
Lwjgl3Window
member functions which, for their part, involve calling GLFW functions.
For the main window, this is an immediate callback from inside
Lwjgl3Application(ApplicationListener, Lwjgl3ApplicationConfiguration).window - the window instanceLwjgl3Application.newWindow(ApplicationListener, Lwjgl3WindowConfiguration)void iconified(boolean isIconified)
ApplicationListener will be paused, and when restored it will be resumed.isIconified - True if window is iconified, false if it leaves the iconified statevoid maximized(boolean isMaximized)
isMaximized - true if window is maximized, false if it leaves the maximized statevoid focusLost()
ApplicationListener will continue to be
called.void focusGained()
boolean closeRequested()
void filesDropped(java.lang.String[] files)
files - array with absolute paths to the filesvoid refreshRequested()
Lwjgl3Graphics.requestRendering() is automatically called.