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

#include <qwaylanddisplay.h>

Inheritance diagram for QWaylandDisplay:
QObject

Public Slots

void blockingReadEvents ()
 
void createNewScreen (struct wl_output *output, QRect geometry)
 
void flushRequests ()
 
void readEvents ()
 
- Public Slots inherited from QObject
void deleteLater ()
 Schedules this object for deletion. More...
 

Public Functions

struct wl_visual * argbPremultipliedVisual ()
 
struct wl_visual * argbVisual ()
 
struct wl_buffer * createShmBuffer (int fd, int width, int height, uint32_t stride, struct wl_visual *visual)
 
struct wl_surface * createSurface (void *handle)
 
void frameCallback (wl_display_frame_func_t func, struct wl_surface *surface, void *data)
 
QList< QWaylandInputDevice * > inputDevices () const
 
 QWaylandDisplay (void)
 
struct wl_visual * rgbVisual ()
 
QList< QPlatformScreen * > screens () const
 
void setCursor (QWaylandBuffer *buffer, int32_t x, int32_t y)
 
void syncCallback (wl_display_sync_func_t func, void *data)
 
struct wl_display * wl_display () const
 
struct wl_shell * wl_shell () const
 
 ~QWaylandDisplay (void)
 
- Public Functions inherited from QObject
bool blockSignals (bool b)
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). More...
 
const QObjectListchildren () const
 Returns a list of child objects. More...
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectInfo ()
 Dumps information about signal connections, etc. More...
 
void dumpObjectTree ()
 Dumps a tree of children to the debug output. More...
 
QList< QByteArraydynamicPropertyNames () const
 Returns the names of all properties that were dynamically added to the object using setProperty(). More...
 
virtual bool event (QEvent *)
 This virtual function receives events to an object and should return true if the event e was recognized and processed. More...
 
virtual bool eventFilter (QObject *, QEvent *)
 Filters events if this object has been installed as an event filter for the watched object. More...
 
template<typename T >
findChild (const QString &aName=QString()) const
 Returns the child of this object that can be cast into type T and that is called name, or 0 if there is no such object. More...
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. More...
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false. More...
 
void installEventFilter (QObject *)
 Installs an event filter filterObj on this object. More...
 
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false. More...
 
void killTimer (int id)
 Kills the timer with timer identifier, id. More...
 
virtual const QMetaObjectmetaObject () const
 Returns a pointer to the meta-object of this object. More...
 
void moveToThread (QThread *thread)
 Changes the thread affinity for this object and its children. More...
 
QString objectName () const
 
QObjectparent () const
 Returns a pointer to the parent object. More...
 
QVariant property (const char *name) const
 Returns the value of the object's name property. More...
 
Q_INVOKABLE QObject (QObject *parent=0)
 Constructs an object with parent object parent. More...
 
void removeEventFilter (QObject *)
 Removes an event filter object obj from this object. More...
 
void setObjectName (const QString &name)
 
void setParent (QObject *)
 Makes the object a child of parent. More...
 
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value. More...
 
void setUserData (uint id, QObjectUserData *data)
 
bool signalsBlocked () const
 Returns true if signals are blocked; otherwise returns false. More...
 
int startTimer (int interval)
 Starts a timer and returns a timer identifier, or returns zero if it could not start a timer. More...
 
QThreadthread () const
 Returns the thread in which the object lives. More...
 
QObjectUserDatauserData (uint id) const
 
virtual ~QObject ()
 Destroys the object, deleting all its child objects. More...
 

Private Functions

void displayHandleGlobal (uint32_t id, const QByteArray &interface, uint32_t version)
 
void waitForScreens ()
 

Static Private Functions

static void displayHandleGlobal (struct wl_display *display, uint32_t id, const char *interface, uint32_t version, void *data)
 
static void handleVisual (void *data, struct wl_compositor *compositor, uint32_t id, uint32_t token)
 
static void mode (void *data, struct wl_output *wl_output, uint32_t flags, int width, int height, int refresh)
 
static void outputHandleGeometry (void *data, struct wl_output *output, int32_t x, int32_t y, int32_t width, int32_t height, int subpixel, const char *make, const char *model)
 
static void shellHandleConfigure (void *data, struct wl_shell *shell, uint32_t time, uint32_t edges, struct wl_surface *surface, int32_t width, int32_t height)
 
static int sourceUpdate (uint32_t mask, void *data)
 

Properties

struct wl_visual * argb_visual
 
struct wl_compositor * mCompositor
 
struct wl_displaymDisplay
 
int mFd
 
QList< QWaylandInputDevice * > mInputDevices
 
QSocketNotifiermReadNotifier
 
QList< QPlatformScreen * > mScreens
 
bool mScreensInitialized
 
struct wl_shellmShell
 
struct wl_shm * mShm
 
uint32_t mSocketMask
 
struct wl_visual * premultiplied_argb_visual
 
struct wl_visual * rgb_visual
 

Static Private Attributes

static const struct wl_compositor_listener compositorListener
 
static const struct wl_output_listener outputListener
 
static const struct wl_shell_listener shellListener
 

Additional Inherited Members

- Signals inherited from QObject
void destroyed (QObject *=0)
 This signal is emitted immediately before the object obj is destroyed, and can not be blocked. More...
 
- Static Public Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 Creates a connection of the given type from the signal in the sender object to the method in the receiver object. More...
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 Disconnects signal in object sender from method in object receiver. More...
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
static QString tr (const char *sourceText, const char *comment=0, int n=-1)
 
static QString trUtf8 (const char *sourceText, const char *comment=0, int n=-1)
 
- Static Public Variables inherited from QObject
static const QMetaObject staticMetaObject
 This variable stores the meta-object for the class. More...
 
- Protected Functions inherited from QObject
virtual void childEvent (QChildEvent *)
 This event handler can be reimplemented in a subclass to receive child events. More...
 
virtual void connectNotify (const char *signal)
 This virtual function is called when something has been connected to signal in this object. More...
 
virtual void customEvent (QEvent *)
 This event handler can be reimplemented in a subclass to receive custom events. More...
 
virtual void disconnectNotify (const char *signal)
 This virtual function is called when something has been disconnected from signal in this object. More...
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal. More...
 
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns 0. More...
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *)
 This event handler can be reimplemented in a subclass to receive timer events for the object. More...
 
- Protected Variables inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Variables inherited from QObject
static const QMetaObject staticQtMetaObject
 

Detailed Description

Definition at line 125 of file qwaylanddisplay.cpp.

Constructors and Destructors

◆ QWaylandDisplay()

QWaylandDisplay::QWaylandDisplay ( void  )

Definition at line 129 of file qwaylanddisplay.cpp.

131 {
132  mDisplay = wl_display_connect(NULL);
133  if (mDisplay == NULL) {
134  qErrnoWarning(errno, "Failed to create display");
135  qFatal("No wayland connection available.");
136  }
137 
138  wl_display_add_global_listener(mDisplay, QWaylandDisplay::displayHandleGlobal, this);
139 
140 #ifdef QT_WAYLAND_GL_SUPPORT
141  mEglIntegration = QWaylandGLIntegration::createGLIntegration(this);
142 #endif
143 
144 #ifdef QT_WAYLAND_WINDOWMANAGER_SUPPORT
145  mWindowManagerIntegration = QWaylandWindowManagerIntegration::createIntegration(this);
146 #endif
147 
149 
150  qRegisterMetaType<uint32_t>("uint32_t");
151 
152 #ifdef QT_WAYLAND_GL_SUPPORT
153  mEglIntegration->initialize();
154 #endif
155 
157 
158  mFd = wl_display_get_fd(mDisplay, sourceUpdate, this);
159 
161  connect(mReadNotifier, SIGNAL(activated(int)), this, SLOT(readEvents()));
162 
163  waitForScreens();
164 }
static QWaylandWindowManagerIntegration * createIntegration(QWaylandDisplay *waylandDisplay)
void displayHandleGlobal(uint32_t id, const QByteArray &interface, uint32_t version)
static QAbstractEventDispatcher * instance(QThread *thread=0)
Returns a pointer to the event dispatcher object for the specified thread.
#define SLOT(a)
Definition: qobjectdefs.h:226
The QSocketNotifier class provides support for monitoring activity on a file descriptor.
#define SIGNAL(a)
Definition: qobjectdefs.h:227
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
Definition: qobject.cpp:2580
static int sourceUpdate(uint32_t mask, void *data)
static QWaylandGLIntegration * createGLIntegration(QWaylandDisplay *waylandDisplay)
Q_CORE_EXPORT void qFatal(const char *,...)
struct wl_visual * argb_visual
struct wl_visual * premultiplied_argb_visual
QSocketNotifier * mReadNotifier
struct wl_display * mDisplay
int errno
void qErrnoWarning(const char *msg,...)
Definition: qglobal.cpp:2954
struct wl_visual * rgb_visual

◆ ~QWaylandDisplay()

QWaylandDisplay::~QWaylandDisplay ( void  )

Definition at line 166 of file qwaylanddisplay.cpp.

167 {
168  close(mFd);
169 #ifdef QT_WAYLAND_GL_SUPPORT
170  delete mEglIntegration;
171 #endif
172  wl_display_destroy(mDisplay);
173 }
struct wl_display * mDisplay

Functions

◆ argbPremultipliedVisual()

struct wl_visual * QWaylandDisplay::argbPremultipliedVisual ( )

Definition at line 92 of file qwaylanddisplay.cpp.

Referenced by screens(), and QWaylandScreen::visual().

93 {
95 }
struct wl_visual * premultiplied_argb_visual

◆ argbVisual()

struct wl_visual * QWaylandDisplay::argbVisual ( )

◆ blockingReadEvents

void QWaylandDisplay::blockingReadEvents ( )
slot

Definition at line 221 of file qwaylanddisplay.cpp.

Referenced by inputDevices(), QWaylandDisplay(), QWaylandWindow::waitForFrameSync(), and waitForScreens().

222 {
223  wl_display_iterate(mDisplay, WL_DISPLAY_READABLE);
224 }
struct wl_display * mDisplay

◆ createNewScreen

void QWaylandDisplay::createNewScreen ( struct wl_output *  output,
QRect  geometry 
)
slot

Definition at line 175 of file qwaylanddisplay.cpp.

Referenced by inputDevices(), and outputHandleGeometry().

176 {
177  QWaylandScreen *waylandScreen = new QWaylandScreen(this,output,geometry);
178  mScreens.append(waylandScreen);
179 }
QList< QPlatformScreen * > mScreens
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507

◆ createShmBuffer()

struct wl_buffer * QWaylandDisplay::createShmBuffer ( int  fd,
int  width,
int  height,
uint32_t  stride,
struct wl_visual *  visual 
)

Definition at line 74 of file qwaylanddisplay.cpp.

Referenced by QWaylandShmBuffer::QWaylandShmBuffer(), and screens().

78 {
79  return wl_shm_create_buffer(mShm, fd, width, height, stride, visual);
80 }
struct wl_shm * mShm

◆ createSurface()

struct wl_surface * QWaylandDisplay::createSurface ( void *  handle)

Definition at line 67 of file qwaylanddisplay.cpp.

Referenced by screens(), and QWaylandWindow::setVisible().

68 {
69  struct wl_surface * surface = wl_compositor_create_surface(mCompositor);
70  wl_surface_set_user_data(surface, handle);
71  return surface;
72 }
struct wl_compositor * mCompositor

◆ displayHandleGlobal() [1/2]

void QWaylandDisplay::displayHandleGlobal ( uint32_t  id,
const QByteArray interface,
uint32_t  version 
)
private

Definition at line 290 of file qwaylanddisplay.cpp.

Referenced by displayHandleGlobal(), inputDevices(), and QWaylandDisplay().

293 {
294  Q_UNUSED(version);
295  if (interface == "wl_output") {
296  struct wl_output *output = wl_output_create(mDisplay, id, 1);
297  wl_output_add_listener(output, &outputListener, this);
298  } else if (interface == "wl_compositor") {
299  mCompositor = wl_compositor_create(mDisplay, id, 1);
300  wl_compositor_add_listener(mCompositor,
301  &compositorListener, this);
302  } else if (interface == "wl_shm") {
303  mShm = wl_shm_create(mDisplay, id, 1);
304  } else if (interface == "wl_shell"){
305  mShell = wl_shell_create(mDisplay, id, 1);
306  wl_shell_add_listener(mShell, &shellListener, this);
307  } else if (interface == "wl_input_device") {
308  QWaylandInputDevice *inputDevice =
309  new QWaylandInputDevice(mDisplay, id);
310  mInputDevices.append(inputDevice);
311  } else if (interface == "wl_selection_offer") {
312  QPlatformIntegration *plat = QApplicationPrivate::platformIntegration();
313  QWaylandClipboard *clipboard = static_cast<QWaylandClipboard *>(plat->clipboard());
314  clipboard->createSelectionOffer(id);
315  }
316 }
static QWaylandClipboard * clipboard
void createSelectionOffer(uint32_t id)
static const struct wl_output_listener outputListener
struct wl_shell * mShell
struct wl_compositor * mCompositor
static const struct wl_shell_listener shellListener
virtual QPlatformClipboard * clipboard() const
Accessor for the platform integrations clipboard.
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
QList< QWaylandInputDevice * > mInputDevices
struct wl_shm * mShm
The QPlatformIntegration class is the entry for WindowSystem specific functionality.
static const struct wl_compositor_listener compositorListener
struct wl_display * mDisplay
#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

◆ displayHandleGlobal() [2/2]

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

Definition at line 279 of file qwaylanddisplay.cpp.

284 {
285  Q_UNUSED(display);
286  QWaylandDisplay *that = static_cast<QWaylandDisplay *>(data);
287  that->displayHandleGlobal(id, QByteArray(interface), version);
288 }
void displayHandleGlobal(uint32_t id, const QByteArray &interface, uint32_t version)
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
Q_GUI_EXPORT EGLDisplay display()
Definition: qegl.cpp:589
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

◆ flushRequests

void QWaylandDisplay::flushRequests ( )
slot

Definition at line 191 of file qwaylanddisplay.cpp.

Referenced by QWaylandXCompositeEGLContext::geometryChanged(), inputDevices(), QWaylandDisplay(), QWaylandWindow::waitForFrameSync(), waitForScreens(), and QWaylandXCompositeGLXContext::waitForSync().

192 {
193  if (mSocketMask & WL_DISPLAY_WRITABLE)
194  wl_display_iterate(mDisplay, WL_DISPLAY_WRITABLE);
195 }
struct wl_display * mDisplay

◆ frameCallback()

void QWaylandDisplay::frameCallback ( wl_display_frame_func_t  func,
struct wl_surface *  surface,
void *  data 
)

Definition at line 186 of file qwaylanddisplay.cpp.

Referenced by QWaylandWindow::damage(), and screens().

187 {
188  wl_display_frame_callback(mDisplay, surface, func, data);
189 }
static const char * data(const QByteArray &arr)
struct wl_display * mDisplay

◆ handleVisual()

void QWaylandDisplay::handleVisual ( void *  data,
struct wl_compositor *  compositor,
uint32_t  id,
uint32_t  token 
)
staticprivate

Definition at line 318 of file qwaylanddisplay.cpp.

Referenced by mode().

321 {
322  QWaylandDisplay *self = static_cast<QWaylandDisplay *>(data);
323 
324  switch (token) {
325  case WL_COMPOSITOR_VISUAL_ARGB32:
326  self->argb_visual = wl_visual_create(self->mDisplay, id, 1);
327  break;
328  case WL_COMPOSITOR_VISUAL_PREMULTIPLIED_ARGB32:
329  self->premultiplied_argb_visual =
330  wl_visual_create(self->mDisplay, id, 1);
331  break;
332  case WL_COMPOSITOR_VISUAL_XRGB32:
333  self->rgb_visual = wl_visual_create(self->mDisplay, id, 1);
334  break;
335  }
336 }
static const char * data(const QByteArray &arr)
struct wl_visual * argb_visual

◆ inputDevices()

QList<QWaylandInputDevice *> QWaylandDisplay::inputDevices ( ) const
inline

Definition at line 92 of file qwaylanddisplay.h.

Referenced by QWaylandSelection::QWaylandSelection(), QWaylandClipboard::setMimeData(), and QWaylandWindow::~QWaylandWindow().

92 { return mInputDevices; }
QList< QWaylandInputDevice * > mInputDevices

◆ mode()

void QWaylandDisplay::mode ( void *  data,
struct wl_output *  wl_output,
uint32_t  flags,
int  width,
int  height,
int  refresh 
)
staticprivate

Definition at line 247 of file qwaylanddisplay.cpp.

253 {
254  Q_UNUSED(data);
255  Q_UNUSED(wl_output);
256  Q_UNUSED(flags);
257  Q_UNUSED(width);
258  Q_UNUSED(height);
259  Q_UNUSED(refresh);
260 }
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

◆ outputHandleGeometry()

void QWaylandDisplay::outputHandleGeometry ( void *  data,
struct wl_output *  output,
int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height,
int  subpixel,
const char *  make,
const char *  model 
)
staticprivate

Definition at line 234 of file qwaylanddisplay.cpp.

Referenced by mode().

241 {
242  QWaylandDisplay *waylandDisplay = static_cast<QWaylandDisplay *>(data);
243  QRect outputRect = QRect(x, y, physicalWidth, physicalHeight);
244  waylandDisplay->createNewScreen(output,outputRect);
245 }
void createNewScreen(struct wl_output *output, QRect geometry)
static const char * data(const QByteArray &arr)
The QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:58

◆ readEvents

void QWaylandDisplay::readEvents ( )
slot

Definition at line 197 of file qwaylanddisplay.cpp.

Referenced by QWaylandXCompositeEGLContext::geometryChanged(), inputDevices(), QWaylandDisplay(), and QWaylandXCompositeGLXContext::waitForSync().

198 {
199 // verify that there is still data on the socket
200  fd_set fds;
201  FD_ZERO(&fds);
202  FD_SET(mFd, &fds);
203  fd_set nds;
204  FD_ZERO(&nds);
205  fd_set rs = fds;
206  fd_set ws = nds;
207  fd_set es = nds;
208  timeval timeout;
209  timeout.tv_sec = 0;
210  timeout.tv_usec = 0;
211  int ret = ::select(mFd+1, &rs, &ws, &es, &timeout );
212 
213  if (ret <= 0) {
214  //qDebug("QWaylandDisplay::readEvents() No data... blocking avoided");
215  return;
216  }
217 
218  wl_display_iterate(mDisplay, WL_DISPLAY_READABLE);
219 }
Q_CORE_EXPORT QTextStream & ws(QTextStream &s)
int select(int, fd_set *, fd_set *, fd_set *, struct timeval *)
struct wl_display * mDisplay

◆ rgbVisual()

struct wl_visual * QWaylandDisplay::rgbVisual ( )

Definition at line 82 of file qwaylanddisplay.cpp.

Referenced by screens().

83 {
84  return rgb_visual;
85 }
struct wl_visual * rgb_visual

◆ screens()

QList<QPlatformScreen *> QWaylandDisplay::screens ( ) const
inline

Definition at line 67 of file qwaylanddisplay.h.

Referenced by QWaylandIntegration::screens().

67 { return mScreens; }
QList< QPlatformScreen * > mScreens

◆ setCursor()

void QWaylandDisplay::setCursor ( QWaylandBuffer buffer,
int32_t  x,
int32_t  y 
)

Definition at line 183 of file qwaylandcursor.cpp.

Referenced by QWaylandCursor::changeCursor(), and screens().

184 {
185  /* Qt doesn't tell us which input device we should set the cursor
186  * for, so set it for all devices. */
187  for (int i = 0; i < mInputDevices.count(); i++) {
188  QWaylandInputDevice *inputDevice = mInputDevices.at(i);
189  inputDevice->attach(buffer, x, y);
190  }
191 }
void attach(QWaylandBuffer *buffer, int x, int y)
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
QList< QWaylandInputDevice * > mInputDevices

◆ shellHandleConfigure()

void QWaylandDisplay::shellHandleConfigure ( void *  data,
struct wl_shell shell,
uint32_t  time,
uint32_t  edges,
struct wl_surface *  surface,
int32_t  width,
int32_t  height 
)
staticprivate

Definition at line 111 of file qwaylanddisplay.cpp.

115 {
116  Q_UNUSED(data);
117  Q_UNUSED(shell);
118  Q_UNUSED(time);
119  Q_UNUSED(edges);
120  QWaylandWindow *ww = (QWaylandWindow *) wl_surface_get_user_data(surface);
121 
122  ww->configure(time, edges, 0, 0, width, height);
123 }
void configure(uint32_t time, uint32_t edges, int32_t x, int32_t y, int32_t width, int32_t height)
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

◆ sourceUpdate()

int QWaylandDisplay::sourceUpdate ( uint32_t  mask,
void *  data 
)
staticprivate

Definition at line 226 of file qwaylanddisplay.cpp.

Referenced by QWaylandDisplay().

227 {
228  QWaylandDisplay *waylandDisplay = static_cast<QWaylandDisplay *>(data);
229  waylandDisplay->mSocketMask = mask;
230 
231  return 0;
232 }
static const char * data(const QByteArray &arr)

◆ syncCallback()

void QWaylandDisplay::syncCallback ( wl_display_sync_func_t  func,
void *  data 
)

Definition at line 181 of file qwaylanddisplay.cpp.

Referenced by screens().

182 {
183  wl_display_sync_callback(mDisplay, func, data);
184 }
static const char * data(const QByteArray &arr)
struct wl_display * mDisplay

◆ waitForScreens()

void QWaylandDisplay::waitForScreens ( )
private

Definition at line 272 of file qwaylanddisplay.cpp.

Referenced by inputDevices(), and QWaylandDisplay().

273 {
274  flushRequests();
275  while (mScreens.isEmpty())
277 }
QList< QPlatformScreen * > mScreens
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
Definition: qlist.h:152

◆ wl_display()

struct wl_display* QWaylandDisplay::wl_display ( ) const
inline

◆ wl_shell()

struct wl_shell* QWaylandDisplay::wl_shell ( ) const
inline

Definition at line 90 of file qwaylanddisplay.h.

Referenced by QWaylandSelection::QWaylandSelection().

90 { return mShell; }
struct wl_shell * mShell

Properties

◆ argb_visual

struct wl_visual* QWaylandDisplay::argb_visual
private

Definition at line 119 of file qwaylanddisplay.h.

Referenced by argbVisual(), and handleVisual().

◆ compositorListener

const struct wl_compositor_listener QWaylandDisplay::compositorListener
staticprivate

Definition at line 122 of file qwaylanddisplay.h.

Referenced by displayHandleGlobal(), and mode().

◆ mCompositor

struct wl_compositor* QWaylandDisplay::mCompositor
private

Definition at line 107 of file qwaylanddisplay.h.

Referenced by createSurface(), and displayHandleGlobal().

◆ mDisplay

struct wl_display* QWaylandDisplay::mDisplay
private

◆ mFd

int QWaylandDisplay::mFd
private

Definition at line 114 of file qwaylanddisplay.h.

Referenced by QWaylandDisplay(), readEvents(), and ~QWaylandDisplay().

◆ mInputDevices

QList<QWaylandInputDevice *> QWaylandDisplay::mInputDevices
private

Definition at line 111 of file qwaylanddisplay.h.

Referenced by displayHandleGlobal(), and inputDevices().

◆ mReadNotifier

QSocketNotifier* QWaylandDisplay::mReadNotifier
private

Definition at line 113 of file qwaylanddisplay.h.

Referenced by QWaylandDisplay().

◆ mScreens

QList<QPlatformScreen *> QWaylandDisplay::mScreens
private

Definition at line 110 of file qwaylanddisplay.h.

Referenced by createNewScreen(), screens(), and waitForScreens().

◆ mScreensInitialized

bool QWaylandDisplay::mScreensInitialized
private

Definition at line 115 of file qwaylanddisplay.h.

◆ mShell

struct wl_shell* QWaylandDisplay::mShell
private

Definition at line 109 of file qwaylanddisplay.h.

Referenced by displayHandleGlobal(), and wl_shell().

◆ mShm

struct wl_shm* QWaylandDisplay::mShm
private

Definition at line 108 of file qwaylanddisplay.h.

Referenced by createShmBuffer(), and displayHandleGlobal().

◆ mSocketMask

uint32_t QWaylandDisplay::mSocketMask
private

Definition at line 117 of file qwaylanddisplay.h.

Referenced by flushRequests(), and sourceUpdate().

◆ outputListener

const struct wl_output_listener QWaylandDisplay::outputListener
staticprivate

Definition at line 121 of file qwaylanddisplay.h.

Referenced by displayHandleGlobal(), and mode().

◆ premultiplied_argb_visual

struct wl_visual * QWaylandDisplay::premultiplied_argb_visual
private

Definition at line 119 of file qwaylanddisplay.h.

Referenced by argbPremultipliedVisual().

◆ rgb_visual

struct wl_visual * QWaylandDisplay::rgb_visual
private

Definition at line 119 of file qwaylanddisplay.h.

Referenced by rgbVisual().

◆ shellListener

const struct wl_shell_listener QWaylandDisplay::shellListener
staticprivate

Definition at line 158 of file qwaylanddisplay.h.

Referenced by displayHandleGlobal().


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