QWaylandQuickShellSurfaceItem Class
The QWaylandQuickShellSurfaceItem class provides a Qt Quick item that represents a QWaylandShellSurface. More...
Header: | #include <QWaylandQuickShellSurfaceItem> |
qmake: | QT += waylandcompositor |
Since: | Qt 5.8 |
Inherits: | QWaylandQuickItem |
Properties
- moveItem : QQuickItem *
- shellSurface : QWaylandShellSurface *
- 12 properties inherited from QWaylandQuickItem
- 23 properties inherited from QQuickItem
Public Functions
QWaylandQuickShellSurfaceItem(QQuickItem *parent = nullptr) | |
QQuickItem * | moveItem() const |
void | setMoveItem(QQuickItem *moveItem) |
void | setShellSurface(QWaylandShellSurface *shellSurface) |
QWaylandShellSurface * | shellSurface() const |
- 29 public functions inherited from QWaylandQuickItem
- 95 public functions inherited from QQuickItem
Signals
void | moveItemChanged() |
void | shellSurfaceChanged() |
- 13 signals inherited from QWaylandQuickItem
- 1 signal inherited from QQuickItem
Reimplemented Protected Functions
virtual void | mouseMoveEvent(QMouseEvent *event) override |
virtual void | mouseReleaseEvent(QMouseEvent *event) override |
- 2 protected functions inherited from QWaylandQuickItem
- 33 protected functions inherited from QQuickItem
Additional Inherited Members
- 4 public slots inherited from QWaylandQuickItem
- 1 public slot inherited from QQuickItem
- 2 protected functions inherited from QWaylandQuickItem
- 33 protected functions inherited from QQuickItem
Detailed Description
The QWaylandQuickShellSurfaceItem class provides a Qt Quick item that represents a QWaylandShellSurface.
This class is used to render wl_shell
, xdg_shell
or ivi_application
surfaces as part of a Qt Quick scene. It handles moving and resizing triggered by clicking on the window decorations.
See also QWaylandQuickItem, QWaylandWlShellSurface, QWaylandXdgSurfaceV5, and QWaylandIviSurface.
Property Documentation
moveItem : QQuickItem *
This property holds the move item for this QWaylandQuickShellSurfaceItem. This is the item that will be moved when the clients request the QWaylandShellSurface to be moved, maximized, resized etc. This property is useful when implementing server-side decorations.
Access functions:
QQuickItem * | moveItem() const |
void | setMoveItem(QQuickItem *moveItem) |
Notifier signal:
void | moveItemChanged() |
shellSurface : QWaylandShellSurface *
This property holds the QWaylandShellSurface rendered by this QWaylandQuickShellSurfaceItem. It may either be a QWaylandXdgSurfaceV5, QWaylandWlShellSurface or QWaylandIviSurface depending on which shell protocol is in use.
Access functions:
QWaylandShellSurface * | shellSurface() const |
void | setShellSurface(QWaylandShellSurface *shellSurface) |
Notifier signal:
void | shellSurfaceChanged() |
Member Function Documentation
QWaylandQuickShellSurfaceItem::QWaylandQuickShellSurfaceItem(QQuickItem *parent = nullptr)
Constructs a QWaylandQuickWlShellSurfaceItem with the given parent.