Package icyllis.modernui.core
Class Monitor
java.lang.Object
icyllis.modernui.core.Monitor
Represents a currently connected Monitor (sometimes known as Display).
All methods must be called on the main thread and after GLFW initialization.
This class can only be used when the application runs independently.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
findBestMode
(int width, int height) static Monitor
get
(long handle) static @UnmodifiableView Collection
<Monitor> getAll()
long
getModeAt
(int index) int
Return the number of supported video modes for this Monitor.getName()
static Monitor
int
getXPos()
Get the x position of this monitor in virtual screen coordinates.int
getYPos()
Get the y position of this monitor in virtual screen coordinates.static void
-
Method Details
-
get
-
getPrimary
-
getAll
-
addMonitorEventListener
-
removeMonitorEventListener
-
getHandle
public long getHandle() -
getXPos
public int getXPos()Get the x position of this monitor in virtual screen coordinates.- Returns:
- the x position
-
getYPos
public int getYPos()Get the y position of this monitor in virtual screen coordinates.- Returns:
- the y position
-
getCurrentMode
-
getName
-
getModeCount
public int getModeCount()Return the number of supported video modes for this Monitor.- Returns:
- the number of supported video modes
-
getModeAt
-
findBestMode
-