libthinkpad  1.3
https://github.com/libthinkpad
Public Member Functions | List of all members
ThinkPad::DisplayManagement::ScreenResources Class Reference

The X11 screen resources unified to one interface. More...

#include <libthinkpad.h>

Public Member Functions

 ScreenResources (XServer *server)
 
vector< VideoController > * getControllers () const
 Get the list of all available controllers. More...
 
vector< VideoOutput * > * getVideoOutputs () const
 Get the list of all available video outputs. More...
 
vector< VideoOutputModeInfo * > * getVideoOutputModes () const
 Get the list of all available video output modes. More...
 
XRRScreenResources * getRawResources ()
 Get the raw X11 RandR resources, to be used in native X11 RandR API calls. More...
 
XServergetParentServer () const
 
void markControllerAsBusy (VideoController videoController)
 
void releaseController (VideoController i)
 
VideoController requestController ()
 
vector< Monitor * > * getMonitors ()
 

Detailed Description

The X11 screen resources unified to one interface.

The ScreenResources class is actually the main container of all the objects used by the display management system. The ScreenResources class contains all the output modes, the controllers and the physical outputs.

Member Function Documentation

vector< VideoController > * ThinkPad::DisplayManagement::ScreenResources::getControllers ( ) const

Get the list of all available controllers.

Returns
list of all available controllers
DisplayManagement::XServer * ThinkPad::DisplayManagement::ScreenResources::getParentServer ( ) const

Gets the parent X11 Server of the resources

Returns
the parent X11 server
XRRScreenResources * ThinkPad::DisplayManagement::ScreenResources::getRawResources ( )

Get the raw X11 RandR resources, to be used in native X11 RandR API calls.

Returns
the raw X11 RandR resources
vector< VideoOutputModeInfo * > * ThinkPad::DisplayManagement::ScreenResources::getVideoOutputModes ( ) const

Get the list of all available video output modes.

Returns
list of all output modes
vector< VideoOutput * > * ThinkPad::DisplayManagement::ScreenResources::getVideoOutputs ( ) const

Get the list of all available video outputs.

Returns
list of all video outputs

The documentation for this class was generated from the following files: