Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::XDisplay Class Reference

#include <XWindows.h>

Inheritance diagram for prapi::XDisplay:

Object List of all members.

Detailed Description

A C++ wrapper for the xlib's Display structure.


Public Methods

 XDisplay () throw (XException&)
 Open the default X display.

 XDisplay (std::string name) throw (XException&)
 Open an X display with the given name.

 XDisplay (const XDisplay &other)
 The copy constructor.

void close ()
 Close the connection to an X server.

XDisplay & operator= (const XDisplay &other)
 Assignment operator.

 operator Display * ()
 Typecast this class to a Display pointer.

 operator const Display * () const
 Typecast this class to a Display pointer (const version).


Constructor & Destructor Documentation

prapi::XDisplay::XDisplay   throw (XException&)
 

Open the default X display.

If the display cannot be opened, an exception is thrown.

prapi::XDisplay::XDisplay std::string    name throw (XException&)
 

Open an X display with the given name.

The format of the name is hostname:number.screen_number. If the display cannot be opened, an exception is thrown.


Member Function Documentation

prapi::XDisplay::operator Display *   [inline]
 

Typecast this class to a Display pointer.

This allows the use of the class in the place of the Display structure.


The documentation for this class was generated from the following files:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.