public class Lwjgl3Window extends Object implements Disposable
| Modifier and Type | Method and Description |
|---|---|
void |
closeWindow()
Closes this window and pauses and disposes the associated
ApplicationListener. |
void |
dispose() |
boolean |
equals(Object obj) |
void |
focusWindow()
Brings the window to front and sets input focus.
|
ApplicationListener |
getListener() |
int |
getPositionX() |
int |
getPositionY() |
long |
getWindowHandle() |
Lwjgl3WindowListener |
getWindowListener() |
int |
hashCode() |
void |
iconifyWindow()
Minimizes (iconifies) the window.
|
void |
maximizeWindow()
Maximizes the window.
|
void |
postRunnable(Runnable runnable)
Post a
Runnable to this window's event queue. |
void |
restoreWindow()
De-minimizes (de-iconifies) and de-maximizes the window.
|
void |
setIcon(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(CharSequence title) |
void |
setVisible(boolean visible)
Sets the visibility of the window.
|
void |
setWindowListener(Lwjgl3WindowListener listener) |
public ApplicationListener getListener()
ApplicationListener associated with this windowpublic Lwjgl3WindowListener getWindowListener()
Lwjgl3WindowListener set on this windowpublic void setWindowListener(Lwjgl3WindowListener listener)
public void postRunnable(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 void restoreWindow()
public void maximizeWindow()
public void focusWindow()
public void setIcon(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(CharSequence title)
public void setSizeLimits(int minWidth,
int minHeight,
int maxWidth,
int maxHeight)
public long getWindowHandle()
public void dispose()
dispose in interface DisposableCopyright © 2021. All rights reserved.