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

The XServer class is the main connection and relation to the X server running on 0:0, localhost. More...

#include <libthinkpad.h>

Public Member Functions

bool connect ()
 Connect to the default X11 server on localhost. More...
 
Display * getDisplay ()
 Gets the display of the X11 server. More...
 
Window getWindow ()
 Gets the default, root window of X11. More...
 

Static Public Member Functions

static XServergetDefaultXServer ()
 The connection to the X server is a singleton. More...
 

Detailed Description

The XServer class is the main connection and relation to the X server running on 0:0, localhost.

Member Function Documentation

bool ThinkPad::DisplayManagement::XServer::connect ( )

Connect to the default X11 server on localhost.

Returns
true if the connection succeeded
DisplayManagement::XServer * ThinkPad::DisplayManagement::XServer::getDefaultXServer ( )
static

The connection to the X server is a singleton.

Returns
the singleton XServer instance
Display * ThinkPad::DisplayManagement::XServer::getDisplay ( )

Gets the display of the X11 server.

Returns
the X11 display/server
Window ThinkPad::DisplayManagement::XServer::getWindow ( )

Gets the default, root window of X11.

Returns
the default, root window

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