Class Monitor

java.lang.Object
io.github.ocelot.window.Monitor

public class Monitor extends Object
A monitor detected by GLFW that can be used in window creation.
  • Constructor Details

    • Monitor

      public Monitor(long handle)
  • Method Details

    • refreshVideoModes

      public void refreshVideoModes()
      Queries GLFW for the position and valid video modes of this monitor.
    • getCurrentMode

      public VideoMode getCurrentMode()
      Returns:
      The current video mode of the monitor
    • getX

      public int getX()
      Returns:
      The absolute x position of this monitor
    • getY

      public int getY()
      Returns:
      The absolute y position of this monitor
    • getVideoModes

      public List<VideoMode> getVideoModes()
      Returns:
      A view of all possible video modes for this monitor
    • getHandle

      public long getHandle()
      Returns:
      The GLFW id for this monitor
    • toString

      public String toString()
      Overrides:
      toString in class Object