Package com.jme3.system
Class Displays
java.lang.Object
com.jme3.system.Displays
This class holds all information about all displays that where return from the glfwGetMonitors()
call. It stores them into an ArrayList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
addNewMonitor
(long displaysID) get
(int pos) Call to get display information on a certain display.void
Set information about this display stored in displayPos display in the array list.void
setPrimaryDisplay
(int displayPos) This function will mark a certain display as the primary display.int
size()
This function returns the size of the display ArrayList
-
Constructor Details
-
Displays
public Displays()
-
-
Method Details
-
addNewMonitor
public int addNewMonitor(long displaysID) -
size
public int size()This function returns the size of the display ArrayList- Returns:
- the
-
get
Call to get display information on a certain display.- Parameters:
pos
- the position in the ArrayList of the display information that you want to get.- Returns:
- returns the DisplayInfo data for the display called for.
-
setInfo
Set information about this display stored in displayPos display in the array list.- Parameters:
displayPos
- ArrayList position of display to updatename
- name of the displaywidth
- the current width the display is displayingheight
- the current height the display is displayingrate
- the current refresh rate the display is set to
-
setPrimaryDisplay
public void setPrimaryDisplay(int displayPos) This function will mark a certain display as the primary display.- Parameters:
displayPos
- the position in the ArrayList of which display is the primary display
-