public class XRandR extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
XRandR.Screen |
Encapsulates the configuration of a monitor.
|
Constructor | Description |
---|---|
XRandR() |
Modifier and Type | Method | Description |
---|---|---|
static XRandR.Screen[] |
getConfiguration() |
|
static XRandR.Screen[] |
getResolutions(String name) |
|
static 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
IllegalArgumentException
- if no screens are specifiedpublic static void saveConfiguration()
public static void restoreConfiguration()
public static String[] getScreenNames()
public static XRandR.Screen[] getResolutions(String name)
name
- null
if there is no such screenCopyright © 2002-2009 lwjgl.org. All Rights Reserved.