public class Lwjgl3Mini2DxWindow
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 |
focusWindow()
Brings the window to front and sets input focus.
|
Lwjgl3Mini2DxGraphics |
getGraphics() |
com.badlogic.gdx.ApplicationListener |
getListener() |
int |
getPositionX() |
int |
getPositionY() |
long |
getWindowHandle() |
com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener |
getWindowListener() |
int |
hashCode() |
void |
iconifyWindow()
Minimizes (iconifies) the window.
|
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(Lwjgl3Mini2DxWindowListener listener) |
public com.badlogic.gdx.ApplicationListener getListener()
ApplicationListener
associated with this windowpublic com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowListener getWindowListener()
Lwjgl3WindowListener
set on this windowpublic void setWindowListener(Lwjgl3Mini2DxWindowListener 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)
ApplicationListener
public void closeWindow()
ApplicationListener
.public void iconifyWindow()
ApplicationListener
until the window is restored.public void restoreWindow()
public void maximizeWindow()
public void focusWindow()
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 Lwjgl3Mini2DxGraphics getGraphics()
public long getWindowHandle()
public void dispose()
dispose
in interface com.badlogic.gdx.utils.Disposable
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object