Class DisplayInfo

java.lang.Object
com.jme3.system.DisplayInfo

public final class DisplayInfo extends Object
This class holds information about the display that was returned by glfwGetMonitors() calls in the context class
  • Method Details

    • getDisplay

      public long getDisplay()
      Returns the monitor pointer (native), the virtual memory address used by lwjgl.
      Returns:
      the monitor pointer (native), the virtual memory address used by lwjgl
    • getWidth

      public int getWidth()
      Returns the width of the display.
      Returns:
      the width of the display.
    • getHeight

      public int getHeight()
      Returns the height of the display.
      Returns:
      the height of the display
    • getRate

      public int getRate()
      Returns the refresh rate of the display, in hertz.
      Returns:
      the refresh rate of the display, in hertz
    • isPrimary

      public boolean isPrimary()
      Determines if this display belongs to the main monitor.
      Returns:
      true if the display is primary, false otherwise.
    • getName

      public String getName()
      Returns the display name.
      Returns:
      display name
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object