public class Lwjgl3WindowAdapter extends java.lang.Object implements Lwjgl3WindowListener
Lwjgl3WindowListener. Derive from this class and only overwrite the methods you are
interested in.| Constructor and Description |
|---|
Lwjgl3WindowAdapter() |
| 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.
|
public void created(Lwjgl3Window window)
Lwjgl3WindowListenerLwjgl3Window
member functions which, for their part, involve calling GLFW functions.
For the main window, this is an immediate callback from inside
Lwjgl3Application(ApplicationListener, Lwjgl3ApplicationConfiguration).created in interface Lwjgl3WindowListenerwindow - the window instanceLwjgl3Application.newWindow(ApplicationListener, Lwjgl3WindowConfiguration)public void iconified(boolean isIconified)
Lwjgl3WindowListenerApplicationListener will be paused, and when restored it will be resumed.iconified in interface Lwjgl3WindowListenerisIconified - True if window is iconified, false if it leaves the iconified statepublic void maximized(boolean isMaximized)
Lwjgl3WindowListenermaximized in interface Lwjgl3WindowListenerisMaximized - true if window is maximized, false if it leaves the maximized statepublic void focusLost()
Lwjgl3WindowListenerApplicationListener will continue to be
called.focusLost in interface Lwjgl3WindowListenerpublic void focusGained()
Lwjgl3WindowListenerfocusGained in interface Lwjgl3WindowListenerpublic boolean closeRequested()
Lwjgl3WindowListenercloseRequested in interface Lwjgl3WindowListenerpublic void filesDropped(java.lang.String[] files)
Lwjgl3WindowListenerfilesDropped in interface Lwjgl3WindowListenerfiles - array with absolute paths to the filespublic void refreshRequested()
Lwjgl3WindowListenerLwjgl3Graphics.requestRendering() is automatically called.refreshRequested in interface Lwjgl3WindowListener