APIdia Launch Partner
Top Description Constructors Methods
com.badlogic.gdx.backends.lwjgl3

public Class Lwjgl3WindowAdapter

extends Object
implements Lwjgl3WindowListener
Class Inheritance
All Implemented Interfaces
com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener

Convenience implementation of Lwjgl3WindowListener. Derive from this class and only overwrite the methods you are interested in.
Author
badlogic

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
closeRequested()

Implements com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.closeRequested.

Called when the user requested to close the window, e.g. clicking the close button or pressing the window closing keyboard shortcut.

public void
created(Lwjgl3Window window)

Implements com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.created.

Called after the GLFW window is created.

public void
filesDropped(String[] files)

Implements com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.filesDropped.

Called when external files are dropped into the window, e.g from the Desktop.

public void
focusGained()

Implements com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.focusGained.

Called when the window gained focus.

public void
focusLost()

Implements com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.focusLost.

Called when the window lost focus to another window.

public void
iconified(boolean isIconified)

Implements com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.iconified.

Called when the window is iconified (i.e. its minimize button was clicked), or when restored from the iconified state.

public void
maximized(boolean isMaximized)

Implements com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.maximized.

Called when the window is maximized, or restored from the maximized state.

public void
refreshRequested()

Implements com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.refreshRequested.

Called when the window content is damaged and needs to be refreshed.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Lwjgl3WindowAdapterback to summary
public Lwjgl3WindowAdapter()

Method Detail

closeRequestedback to summary
public boolean closeRequested()

Implements com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.closeRequested.

Doc from com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.closeRequested.

Called when the user requested to close the window, e.g. clicking the close button or pressing the window closing keyboard shortcut.

Annotations
@Override
createdback to summary
public void created(Lwjgl3Window window)

Implements com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.created.

Doc from com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.created.

Called after the GLFW window is created. Before this callback is received, it's unsafe to use any Lwjgl3Window member functions which, for their part, involve calling GLFW functions. For the main window, this is an immediate callback from inside Lwjgl3Application#Lwjgl3Application(ApplicationListener, Lwjgl3ApplicationConfiguration).

Annotations
@Override
filesDroppedback to summary
public void filesDropped(String[] files)

Implements com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.filesDropped.

Doc from com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.filesDropped.

Called when external files are dropped into the window, e.g from the Desktop.

Annotations
@Override
focusGainedback to summary
public void focusGained()

Implements com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.focusGained.

Doc from com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.focusGained.

Called when the window gained focus.

Annotations
@Override
focusLostback to summary
public void focusLost()

Implements com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.focusLost.

Doc from com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.focusLost.

Called when the window lost focus to another window. The window's ApplicationListener will continue to be called.

Annotations
@Override
iconifiedback to summary
public void iconified(boolean isIconified)

Implements com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.iconified.

Doc from com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.iconified.

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.

Annotations
@Override
maximizedback to summary
public void maximized(boolean isMaximized)

Implements com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.maximized.

Doc from com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.maximized.

Called when the window is maximized, or restored from the maximized state.

Annotations
@Override
refreshRequestedback to summary
public void refreshRequested()

Implements com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.refreshRequested.

Doc from com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener.refreshRequested.

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

Annotations
@Override