public class Lwjgl3Window
extends java.lang.Object
implements com.badlogic.gdx.utils.Disposable
| Modifier and Type | Method and Description |
|---|---|
void |
closeWindow()
Closes this window and pauses and disposes the associated
ApplicationListener. |
void |
dispose() |
boolean |
equals(java.lang.Object obj) |
void |
flash() |
void |
focusWindow()
Brings the window to front and sets input focus.
|
com.badlogic.gdx.ApplicationListener |
getListener() |
int |
getPositionX() |
int |
getPositionY() |
long |
getWindowHandle() |
Lwjgl3WindowListener |
getWindowListener() |
int |
hashCode() |
void |
iconifyWindow()
Minimizes (iconifies) the window.
|
boolean |
isFocused() |
boolean |
isIconified()
Whether the window is iconfieid
|
void |
maximizeWindow()
Maximizes the window.
|
void |
postRunnable(java.lang.Runnable runnable)
Post a
Runnable to this window's event queue. |
void |
restoreWindow()
De-minimizes (de-iconifies) and de-maximizes the window.
|
void |
setIcon(com.badlogic.gdx.graphics.Pixmap... image)
Sets the icon that will be used in the window's title bar.
|
void |
setPosition(int x,
int y)
Sets the position of the window in logical coordinates.
|
void |
setSizeLimits(int minWidth,
int minHeight,
int maxWidth,
int maxHeight)
Sets minimum and maximum size limits for the window.
|
void |
setTitle(java.lang.CharSequence title) |
void |
setVisible(boolean visible)
Sets the visibility of the window.
|
void |
setWindowListener(Lwjgl3WindowListener listener) |
public com.badlogic.gdx.ApplicationListener getListener()
ApplicationListener associated with this windowpublic Lwjgl3WindowListener getWindowListener()
Lwjgl3WindowListener set on this windowpublic void setWindowListener(Lwjgl3WindowListener listener)
public void postRunnable(java.lang.Runnable runnable)
Runnable to this window's event queue. Use this if you access statics like Gdx.graphics in your
runnable instead of Application.postRunnable(Runnable).public void setPosition(int x,
int y)
public int getPositionX()
public int getPositionY()
public void setVisible(boolean visible)
ApplicationListenerpublic void closeWindow()
ApplicationListener.public void iconifyWindow()
ApplicationListener until the window is
restored.public boolean isIconified()
public void restoreWindow()
public void maximizeWindow()
public void focusWindow()
public boolean isFocused()
public void setIcon(com.badlogic.gdx.graphics.Pixmap... image)
image - One or more images. The one closest to the system's desired size will be scaled. Good sizes include 16x16,
32x32 and 48x48. Pixmap format RGBA8888 is preferred so
the images will not have to be copied and converted. The chosen image is copied, and the provided Pixmaps are not
disposed.public void setTitle(java.lang.CharSequence title)
public void setSizeLimits(int minWidth,
int minHeight,
int maxWidth,
int maxHeight)
public long getWindowHandle()
public void dispose()
dispose in interface com.badlogic.gdx.utils.Disposablepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void flash()