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

#include <qwaylandreadbackglxintegration.h>

Inheritance diagram for QWaylandReadbackGlxIntegration:
QWaylandGLIntegration

Public Functions

QWaylandWindowcreateEglWindow (QWidget *widget)
 
void initialize ()
 
 QWaylandReadbackGlxIntegration (QWaylandDisplay *waylandDispaly)
 
Window rootWindow () const
 
int screen () const
 
QWaylandDisplaywaylandDisplay () const
 
DisplayxDisplay () const
 
 ~QWaylandReadbackGlxIntegration ()
 
- Public Functions inherited from QWaylandGLIntegration
 QWaylandGLIntegration ()
 
virtual ~QWaylandGLIntegration ()
 

Properties

DisplaymDisplay
 
Window mRootWindow
 
int mScreen
 
QWaylandDisplaymWaylandDisplay
 

Additional Inherited Members

- Static Public Functions inherited from QWaylandGLIntegration
static QWaylandGLIntegrationcreateGLIntegration (QWaylandDisplay *waylandDisplay)
 

Detailed Description

Definition at line 55 of file qwaylandreadbackglxintegration.h.

Constructors and Destructors

◆ QWaylandReadbackGlxIntegration()

QWaylandReadbackGlxIntegration::QWaylandReadbackGlxIntegration ( QWaylandDisplay waylandDispaly)

Definition at line 48 of file qwaylandreadbackglxintegration.cpp.

Referenced by createEglWindow().

50  , mWaylandDisplay(waylandDispaly)
51 {
52  qDebug() << "Using Readback-GLX";
53  char *display_name = getenv("DISPLAY");
54  mDisplay = XOpenDisplay(display_name);
55  mScreen = XDefaultScreen(mDisplay);
56  mRootWindow = XDefaultRootWindow(mDisplay);
57  XSync(mDisplay, False);
58 }
Q_CORE_EXPORT void qDebug(const char *,...)

◆ ~QWaylandReadbackGlxIntegration()

QWaylandReadbackGlxIntegration::~QWaylandReadbackGlxIntegration ( )

Definition at line 60 of file qwaylandreadbackglxintegration.cpp.

61 {
62  XCloseDisplay(mDisplay);
63 }

Functions

◆ createEglWindow()

QWaylandWindow * QWaylandReadbackGlxIntegration::createEglWindow ( QWidget widget)
virtual

Implements QWaylandGLIntegration.

Definition at line 69 of file qwaylandreadbackglxintegration.cpp.

70 {
71  return new QWaylandReadbackGlxWindow(widget,this);
72 }

◆ initialize()

void QWaylandReadbackGlxIntegration::initialize ( )
virtual

Implements QWaylandGLIntegration.

Definition at line 65 of file qwaylandreadbackglxintegration.cpp.

66 {
67 }

◆ rootWindow()

Window QWaylandReadbackGlxIntegration::rootWindow ( ) const

◆ screen()

int QWaylandReadbackGlxIntegration::screen ( ) const

◆ waylandDisplay()

QWaylandDisplay * QWaylandReadbackGlxIntegration::waylandDisplay ( ) const

◆ xDisplay()

Display * QWaylandReadbackGlxIntegration::xDisplay ( ) const

Properties

◆ mDisplay

Display* QWaylandReadbackGlxIntegration::mDisplay
private

◆ mRootWindow

Window QWaylandReadbackGlxIntegration::mRootWindow
private

Definition at line 76 of file qwaylandreadbackglxintegration.h.

Referenced by QWaylandReadbackGlxIntegration(), and rootWindow().

◆ mScreen

int QWaylandReadbackGlxIntegration::mScreen
private

Definition at line 75 of file qwaylandreadbackglxintegration.h.

Referenced by QWaylandReadbackGlxIntegration(), and screen().

◆ mWaylandDisplay

QWaylandDisplay* QWaylandReadbackGlxIntegration::mWaylandDisplay
private

Definition at line 72 of file qwaylandreadbackglxintegration.h.

Referenced by waylandDisplay().


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