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 SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidfindBestMode(int width, int height) static Monitorget(long handle) static @UnmodifiableView Collection<Monitor> getAll()longgetModeAt(int index) intReturn the number of supported video modes for this Monitor.getName()static MonitorintgetXPos()Get the x position of this monitor in virtual screen coordinates.intgetYPos()Get the y position of this monitor in virtual screen coordinates.static void
- 
Method Details- 
get
- 
getPrimary
- 
getAll
- 
addMonitorEventListener
- 
removeMonitorEventListener
- 
getHandlepublic long getHandle()
- 
getXPospublic int getXPos()Get the x position of this monitor in virtual screen coordinates.- Returns:
- the x position
 
- 
getYPospublic int getYPos()Get the y position of this monitor in virtual screen coordinates.- Returns:
- the y position
 
- 
getCurrentMode
- 
getName
- 
getModeCountpublic int getModeCount()Return the number of supported video modes for this Monitor.- Returns:
- the number of supported video modes
 
- 
getModeAt
- 
findBestMode
 
-