Qt 4.8
Public Functions | Static Private Functions | Properties | Static Private Attributes | List of all members
QWaylandXCompositeGLXIntegration Class Reference

#include <qwaylandxcompositeglxintegration.h>

Inheritance diagram for QWaylandXCompositeGLXIntegration:
QWaylandGLIntegration

Public Functions

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

Static Private Functions

static void rootInformation (void *data, struct wl_xcomposite *xcomposite, const char *display_name, uint32_t root_window)
 
static void wlDisplayHandleGlobal (struct wl_display *display, uint32_t id, const char *interface, uint32_t version, void *data)
 

Properties

DisplaymDisplay
 
Window mRootWindow
 
int mScreen
 
struct wl_xcomposite * mWaylandComposite
 
QWaylandDisplaymWaylandDisplay
 

Static Private Attributes

static const struct wl_xcomposite_listener xcomposite_listener
 

Additional Inherited Members

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

Detailed Description

Definition at line 102 of file qwaylandxcompositeglxintegration.cpp.

Constructors and Destructors

◆ QWaylandXCompositeGLXIntegration()

QWaylandXCompositeGLXIntegration::QWaylandXCompositeGLXIntegration ( QWaylandDisplay waylandDispaly)

Definition at line 55 of file qwaylandxcompositeglxintegration.cpp.

57  , mWaylandDisplay(waylandDispaly)
58 {
59  qDebug() << "Using XComposite-GLX";
60  wl_display_add_global_listener(waylandDispaly->wl_display(), QWaylandXCompositeGLXIntegration::wlDisplayHandleGlobal,
61  this);
62 }
static void wlDisplayHandleGlobal(struct wl_display *display, uint32_t id, const char *interface, uint32_t version, void *data)
Q_CORE_EXPORT void qDebug(const char *,...)
struct wl_display * wl_display() const

◆ ~QWaylandXCompositeGLXIntegration()

QWaylandXCompositeGLXIntegration::~QWaylandXCompositeGLXIntegration ( )

Definition at line 64 of file qwaylandxcompositeglxintegration.cpp.

65 {
66  XCloseDisplay(mDisplay);
67 }

Functions

◆ createEglWindow()

QWaylandWindow * QWaylandXCompositeGLXIntegration::createEglWindow ( QWidget widget)
virtual

Implements QWaylandGLIntegration.

Definition at line 73 of file qwaylandxcompositeglxintegration.cpp.

◆ initialize()

void QWaylandXCompositeGLXIntegration::initialize ( )
virtual

Implements QWaylandGLIntegration.

Definition at line 69 of file qwaylandxcompositeglxintegration.cpp.

70 {
71 }

◆ rootInformation()

void QWaylandXCompositeGLXIntegration::rootInformation ( void *  data,
struct wl_xcomposite *  xcomposite,
const char *  display_name,
uint32_t  root_window 
)
staticprivate

Definition at line 117 of file qwaylandxcompositeglxintegration.cpp.

118 {
119  Q_UNUSED(xcomposite);
121 
122  integration->mDisplay = XOpenDisplay(display_name);
123  integration->mRootWindow = (Window) root_window;
124  integration->mScreen = XDefaultScreen(integration->mDisplay);
125 }
static const char * data(const QByteArray &arr)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ rootWindow()

Window QWaylandXCompositeGLXIntegration::rootWindow ( ) const

◆ screen()

int QWaylandXCompositeGLXIntegration::screen ( ) const

◆ waylandDisplay()

QWaylandDisplay * QWaylandXCompositeGLXIntegration::waylandDisplay ( ) const

◆ waylandXComposite()

wl_xcomposite * QWaylandXCompositeGLXIntegration::waylandXComposite ( ) const

◆ wlDisplayHandleGlobal()

void QWaylandXCompositeGLXIntegration::wlDisplayHandleGlobal ( struct wl_display *  display,
uint32_t  id,
const char *  interface,
uint32_t  version,
void *  data 
)
staticprivate

Definition at line 106 of file qwaylandxcompositeglxintegration.cpp.

Referenced by QWaylandXCompositeGLXIntegration().

107 {
108  Q_UNUSED(version);
109  if (strcmp(interface, "wl_xcomposite") == 0) {
111  integration->mWaylandComposite = wl_xcomposite_create(display,id,1);
113  }
114 
115 }
Q_GUI_EXPORT EGLDisplay display()
Definition: qegl.cpp:589
static const char * data(const QByteArray &arr)
static struct wl_xcomposite * wl_xcomposite_create(struct wl_display *display, uint32_t id, uint32_t version)
static const struct wl_xcomposite_listener xcomposite_listener
static int wl_xcomposite_add_listener(struct wl_xcomposite *wl_xcomposite, const struct wl_xcomposite_listener *listener, void *data)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ xDisplay()

Display * QWaylandXCompositeGLXIntegration::xDisplay ( ) const

Properties

◆ mDisplay

Display* QWaylandXCompositeGLXIntegration::mDisplay
private

◆ mRootWindow

Window QWaylandXCompositeGLXIntegration::mRootWindow
private

Definition at line 81 of file qwaylandxcompositeglxintegration.h.

Referenced by rootInformation(), and rootWindow().

◆ mScreen

int QWaylandXCompositeGLXIntegration::mScreen
private

Definition at line 80 of file qwaylandxcompositeglxintegration.h.

Referenced by rootInformation(), and screen().

◆ mWaylandComposite

struct wl_xcomposite* QWaylandXCompositeGLXIntegration::mWaylandComposite
private

Definition at line 77 of file qwaylandxcompositeglxintegration.h.

Referenced by waylandXComposite(), and wlDisplayHandleGlobal().

◆ mWaylandDisplay

QWaylandDisplay* QWaylandXCompositeGLXIntegration::mWaylandDisplay
private

Definition at line 76 of file qwaylandxcompositeglxintegration.h.

Referenced by waylandDisplay().

◆ xcomposite_listener

const struct wl_xcomposite_listener QWaylandXCompositeGLXIntegration::xcomposite_listener
staticprivate

Definition at line 86 of file qwaylandxcompositeglxintegration.h.

Referenced by wlDisplayHandleGlobal().


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