QWaylandXdgShell Class

Provides an extension for desktop-style user interfaces. More...

Header: #include <QWaylandXdgShell>
qmake: QT += waylandcompositor
Inherits: QWaylandCompositorExtensionTemplate<QWaylandXdgShell>

This class is under development and is subject to change.

Public Functions

QWaylandXdgShell(QWaylandCompositor *compositor)

Reimplemented Public Functions

virtual void initialize()

Public Slots

void closeAllPopups()
uint ping(QWaylandClient *client)
  • 1 public slot inherited from QObject


void createXdgPopup(QWaylandSurface *surface, QWaylandSurface *parent, QWaylandInputDevice *seat, const QPoint &position, const QWaylandResource &resource)
void createXdgSurface(QWaylandSurface *surface, const QWaylandResource &resource)
void pong(uint serial)
void xdgPopupCreated(QWaylandXdgPopup *xdgPopup)
void xdgSurfaceCreated(QWaylandXdgSurface *xdgSurface)

Static Public Members

QByteArray interfaceName()
  • 11 static public members inherited from QObject

Additional Inherited Members

Detailed Description

Provides an extension for desktop-style user interfaces.

The QWaylandXdgShell extension provides desktop functionality such as minimize, maximize, and resize using the xdg-shell protocol. It creates an QWaylandXdgSurface for each Wayland surface.

Member Function Documentation


Constructs a QWaylandXdgShell object.

QWaylandXdgShell::QWaylandXdgShell(QWaylandCompositor *compositor)

Constructs a QWaylandXdgShell object for the provided compositor.

[slot] void QWaylandXdgShell::closeAllPopups()

[signal] void QWaylandXdgShell::createXdgPopup(QWaylandSurface *surface, QWaylandSurface *parent, QWaylandInputDevice *seat, const QPoint &position, const QWaylandResource &resource)

[signal] void QWaylandXdgShell::createXdgSurface(QWaylandSurface *surface, const QWaylandResource &resource)

[virtual] void QWaylandXdgShell::initialize()

Initializes the shell extension.

[static] QByteArray QWaylandXdgShell::interfaceName()

[slot] uint QWaylandXdgShell::ping(QWaylandClient *client)

Sends a ping event to the client. If the client replies to the event the pong signal will be emitted.

[signal] void QWaylandXdgShell::pong(uint serial)

[signal] void QWaylandXdgShell::xdgPopupCreated(QWaylandXdgPopup *xdgPopup)

[signal] void QWaylandXdgShell::xdgSurfaceCreated(QWaylandXdgSurface *xdgSurface)

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.