org.lwjgl.opengl
Class XRandR

java.lang.Object
  extended by org.lwjgl.opengl.XRandR

public class XRandR
extends java.lang.Object

Utility for working with the xrandr commmand-line utility. Assumes xrandr v1.2 or higher.

Author:
ryanm

Nested Class Summary
static class XRandR.Screen
          Encapsulates the configuration of a monitor.
 
Constructor Summary
XRandR()
           
 
Method Summary
static XRandR.Screen[] getConfiguration()
           
static XRandR.Screen[] getResolutions(java.lang.String name)
           
static java.lang.String[] getScreenNames()
           
static void setConfiguration(XRandR.Screen[] screens)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XRandR

public XRandR()
Method Detail

getConfiguration

public static XRandR.Screen[] getConfiguration()
Returns:
The current screen configuration, or an empty array if xrandr is not supported

setConfiguration

public static void setConfiguration(XRandR.Screen[] screens)
Parameters:
screens - The desired screen set, may not be null

getScreenNames

public static java.lang.String[] getScreenNames()
Returns:
the name of connected screens, or an empty array if xrandr is not supported

getResolutions

public static XRandR.Screen[] getResolutions(java.lang.String name)
Parameters:
name -
Returns:
the possible resolutions of the named screen, or null if there is no such screen


Copyright © 2002-2009 lwjgl.org. All Rights Reserved.