This class creates and provides connection with X server. Raises exception if can not connect to X server. On Windows and Mac OS X (in case when Cocoa used) platforms this class do nothing. WARRNING: Do not close display connection manualy!
#include <Aspect_DisplayConnection.hxx>
Public Member Functions |
| | Aspect_DisplayConnection () |
| | Default constructor. Creates connection with display name taken from "DISPLAY" environment variable.
|
| | ~Aspect_DisplayConnection () |
| | Destructor. Close opened connection.
|
| | Aspect_DisplayConnection (const TCollection_AsciiString &theDisplayName) |
| | Constructor. Creates connection with display specified in theDisplayName. Display name should be in format "hostname:number" or "hostname:number.screen_number", where: hostname - Specifies the name of the host machine on which the display is physically attached. number - Specifies the number of the display server on that host machine. screen_number - Specifies the screen to be used on that server. Optional variable.
|
| Display * | GetDisplay () |
| TCollection_AsciiString | GetDisplayName () |
Constructor & Destructor Documentation
| Aspect_DisplayConnection::Aspect_DisplayConnection |
( |
| ) |
|
| Aspect_DisplayConnection::~Aspect_DisplayConnection |
( |
| ) |
|
Member Function Documentation
| Display* Aspect_DisplayConnection::GetDisplay |
( |
| ) |
|
- Returns:
- pointer to Display structure that serves as the connection to the X server.
- Returns:
- display name for this connection.
The documentation for this class was generated from the following file: