public class XRandR
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
XRandR.Screen
Encapsulates the configuration of a monitor.
|
Constructor and Description |
---|
XRandR() |
Modifier and Type | Method and Description |
---|---|
static XRandR.Screen[] |
getConfiguration() |
static XRandR.Screen[] |
getResolutions(java.lang.String name) |
static java.lang.String[] |
getScreenNames() |
static void |
restoreConfiguration()
Restores the configuration for all connected display devices.
|
static void |
saveConfiguration()
Saves the current configuration for all connected display devices.
|
static void |
setConfiguration(boolean disableOthers,
XRandR.Screen... screens) |
public static XRandR.Screen[] getConfiguration()
public static void setConfiguration(boolean disableOthers, XRandR.Screen... screens)
disableOthers
- if screens not included in screens should be turned off (true) or left alone (false)screens
- The desired screen set, may not be null
java.lang.IllegalArgumentException
- if no screens are specifiedpublic static void saveConfiguration()
public static void restoreConfiguration()
public static java.lang.String[] getScreenNames()
public static XRandR.Screen[] getResolutions(java.lang.String name)
name
- null
if there is no such screenCopyright © 2002-2009 lwjgl.org. All Rights Reserved.