QWaylandWlShell Class
The QWaylandWlShell class is an extension for desktop-style user interfaces. More...
Header: | #include <QWaylandWlShell> |
qmake: | QT += waylandcompositor |
Since: | Qt 5.8 |
Inherits: | QWaylandShellTemplate |
This class was introduced in Qt 5.8.
Public Functions
QWaylandWlShell(QWaylandCompositor *compositor) | |
QWaylandWlShell() |
Reimplemented Public Functions
virtual void | initialize() override |
- 2 public functions inherited from QWaylandShell
- 30 public functions inherited from QObject
Signals
void | wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface) |
void | wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource) |
- 1 signal inherited from QWaylandShell
- 2 signals inherited from QObject
Static Public Members
const struct wl_interface * | interface() |
- 9 static public members inherited from QObject
Related Non-Members
typedef | QObjectList |
QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
T | qobject_cast(QObject *object) |
T | qobject_cast(const QObject *object) |
Macros
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
Q_CLASSINFO(Name, Value) | |
Q_DISABLE_COPY(Class) | |
Q_DISABLE_COPY_MOVE(Class) | |
Q_DISABLE_MOVE(Class) | |
Q_EMIT | |
Q_ENUM(...) | |
Q_ENUM_NS(...) | |
Q_FLAG(...) | |
Q_FLAG_NS(...) | |
Q_GADGET | |
Q_INTERFACES(...) | |
Q_INVOKABLE | |
Q_NAMESPACE | |
Q_OBJECT | |
Q_PROPERTY(...) | |
Q_REVISION | |
Q_SET_OBJECT_NAME(Object) | |
Q_SIGNAL | |
Q_SIGNALS | |
Q_SLOT | |
Q_SLOTS |
Additional Inherited Members
- 1 property inherited from QWaylandShell
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 9 protected functions inherited from QObject
Detailed Description
The QWaylandWlShell extension provides a way to associate a QWaylandWlShellSurface with a regular Wayland surface. Using the shell surface interface, the client can request that the surface is resized, moved, and so on.
WlShell corresponds to the Wayland interface wl_shell
.
Member Function Documentation
QWaylandWlShell::QWaylandWlShell(QWaylandCompositor *compositor)
Constructs a QWaylandWlShell object for the provided compositor.
QWaylandWlShell::QWaylandWlShell()
Constructs a QWaylandWlShell object.
[signal]
void QWaylandWlShell::wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface)
This signal is emitted when the client has created a wl_shell_surface
. A common use case is to let the handler of this signal instantiate a QWaylandShellSurfaceItem or QWaylandQuickItem for displaying shellSurface in a QtQuick scene.
[signal]
void QWaylandWlShell::wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource)
This signal is emitted when the client has requested a wl_shell_surface
to be associated with surface. The handler for this signal may create a shell surface for resource and initialize it within the scope of the signal emission. Otherwise a QWaylandWlShellSurface will be created automatically.
[override virtual]
void QWaylandWlShell::initialize()
Initializes the WlShell extension.
[static]
const struct wl_interface *QWaylandWlShell::interface()
Returns the Wayland interface for the QWaylandWlShell.