Qt 4.8
Public Functions | Properties | List of all members
QXlibDisplay Class Reference

#include <qxlibdisplay.h>

Public Functions

QString displayName () const
 
void flush () const
 
DisplaynativeDisplay () const
 
 QXlibDisplay (Display *display)
 
void sync () const
 
 ~QXlibDisplay ()
 

Properties

DisplaymDisplay
 
QString mDisplayName
 

Detailed Description

Definition at line 47 of file qxlibdisplay.h.

Constructors and Destructors

◆ QXlibDisplay()

QXlibDisplay::QXlibDisplay ( Display display)

Definition at line 44 of file qxlibdisplay.cpp.

45  : mDisplay(display)
46 {
47  if (!mDisplay) {
48  qFatal("Cannot connect to X server");
49  }
51 }
Display * mDisplay
Definition: qxlibdisplay.h:59
static QString fromLocal8Bit(const char *, int size=-1)
Returns a QString initialized with the first size characters of the 8-bit string str.
Definition: qstring.cpp:4245
QString mDisplayName
Definition: qxlibdisplay.h:60
Q_GUI_EXPORT EGLDisplay display()
Definition: qegl.cpp:589
Q_CORE_EXPORT void qFatal(const char *,...)

◆ ~QXlibDisplay()

QXlibDisplay::~QXlibDisplay ( )

Definition at line 53 of file qxlibdisplay.cpp.

54 {
55  XCloseDisplay(mDisplay);
56 }
Display * mDisplay
Definition: qxlibdisplay.h:59

Functions

◆ displayName()

QString QXlibDisplay::displayName ( ) const

Definition at line 58 of file qxlibdisplay.cpp.

Referenced by QTestLiteStaticInfoPrivate::initializeAllAtoms().

59 {
60  { return mDisplayName; }
61 }
QString mDisplayName
Definition: qxlibdisplay.h:60

◆ flush()

void QXlibDisplay::flush ( ) const

◆ nativeDisplay()

Display * QXlibDisplay::nativeDisplay ( ) const

◆ sync()

void QXlibDisplay::sync ( ) const

Definition at line 70 of file qxlibdisplay.cpp.

Referenced by QXlibWindowSurface::flush(), and QXlibClipboard::getDataInFormat().

71 {
72  XSync(mDisplay, False);
73 }
Display * mDisplay
Definition: qxlibdisplay.h:59

Properties

◆ mDisplay

Display* QXlibDisplay::mDisplay
private

Definition at line 59 of file qxlibdisplay.h.

Referenced by flush(), nativeDisplay(), QXlibDisplay(), sync(), and ~QXlibDisplay().

◆ mDisplayName

QString QXlibDisplay::mDisplayName
private

Definition at line 60 of file qxlibdisplay.h.

Referenced by displayName(), and QXlibDisplay().


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