QWaylandXdgPopupV5 Class
The QWaylandXdgPopupV5 class provides menus for an xdg surface. More...
Header: | #include <QWaylandXdgPopupV5> |
qmake: | QT += waylandcompositor |
Since: | Qt 5.8 |
Inherits: | QWaylandShellSurfaceTemplate |
This class is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Properties
- parentSurface : QWaylandSurface* const
- position : const QPoint
- shell : QWaylandXdgShellV5* const
- surface : QWaylandSurface* const
- 1 property inherited from QWaylandShellSurface
- 1 property inherited from QObject
Public Functions
QWaylandXdgPopupV5() | |
QWaylandXdgPopupV5(QWaylandXdgShellV5 *xdgShell, QWaylandSurface *surface, QWaylandSurface *parentSurface, const QPoint &position, const QWaylandResource &resource) | |
QQmlListProperty<QObject> | data() |
void | initialize(QWaylandXdgShellV5 *shell, QWaylandSurface *surface, QWaylandSurface *parentSurface, const QPoint &position, const QWaylandResource &resource) |
QWaylandSurface * | parentSurface() const |
QPoint | position() const |
void | sendPopupDone() |
QWaylandXdgShellV5 * | shell() const |
QWaylandSurface * | surface() const |
Reimplemented Public Functions
virtual QWaylandQuickShellIntegration * | createIntegration(QWaylandQuickShellSurfaceItem *item) override |
virtual Qt::WindowType | windowType() const override |
- 2 public functions inherited from QWaylandShellSurface
- 31 public functions inherited from QObject
Signals
void | parentSurfaceChanged() |
void | positionChanged() |
void | shellChanged() |
void | surfaceChanged() |
- 1 signal inherited from QWaylandShellSurface
- 2 signals inherited from QObject
Static Public Members
void | appendFunction(QQmlListProperty<QObject> *list, QObject *object) |
QObject * | atFunction(QQmlListProperty<QObject> *list, int index) |
void | clearFunction(QQmlListProperty<QObject> *list) |
int | countFunction(QQmlListProperty<QObject> *list) |
QWaylandXdgPopupV5 * | fromResource(::wl_resource *resource) |
const struct wl_interface * | interface() |
QByteArray | interfaceName() |
QWaylandSurfaceRole * | role() |
const QMetaObject | staticMetaObject |
- 9 static public members inherited from QObject
Additional Inherited Members
Detailed Description
The QWaylandXdgPopupV5 class provides menus for an xdg surface.
This class is part of the QWaylandXdgShellV5 extension and provides a way to extend the functionality of an existing QWaylandSurface with features specific to desktop-style menus for an xdg surface.
It corresponds to the Wayland interface xdg_popup.
Property Documentation
parentSurface : QWaylandSurface* const
This property holds the surface associated with the parent of this QWaylandXdgPopupV5.
Access functions:
QWaylandSurface * | parentSurface() const |
Notifier signal:
void | parentSurfaceChanged() |
position : const QPoint
This property holds the location of the upper left corner of the surface relative to the upper left corner of the parent surface, in surface local coordinates.
Access functions:
QPoint | position() const |
Notifier signal:
void | positionChanged() |
shell : QWaylandXdgShellV5* const
This property holds the shell associated with this QWaylandXdgPopupV5.
Access functions:
QWaylandXdgShellV5 * | shell() const |
Notifier signal:
void | shellChanged() |
surface : QWaylandSurface* const
This property holds the surface associated with this QWaylandXdgPopupV5.
Access functions:
QWaylandSurface * | surface() const |
Notifier signal:
void | surfaceChanged() |
Member Function Documentation
QWaylandXdgPopupV5::QWaylandXdgPopupV5()
Constructs a QWaylandXdgPopupV5.
QWaylandXdgPopupV5::QWaylandXdgPopupV5(QWaylandXdgShellV5 *xdgShell, QWaylandSurface *surface, QWaylandSurface *parentSurface, const QPoint &position, const QWaylandResource &resource)
Constructs a QWaylandXdgPopupV5, associating it with xdgShell at the specified position for surface, and initializes it with the given parentSurface and resource.
[static]
void QWaylandXdgPopupV5::appendFunction(QQmlListProperty<QObject> *list, QObject *object)
[static]
QObject *QWaylandXdgPopupV5::atFunction(QQmlListProperty<QObject> *list, int index)
[static]
void QWaylandXdgPopupV5::clearFunction(QQmlListProperty<QObject> *list)
[static]
int QWaylandXdgPopupV5::countFunction(QQmlListProperty<QObject> *list)
[override virtual]
QWaylandQuickShellIntegration *QWaylandXdgPopupV5::createIntegration(QWaylandQuickShellSurfaceItem *item)
QQmlListProperty<QObject> QWaylandXdgPopupV5::data()
[static]
QWaylandXdgPopupV5 *QWaylandXdgPopupV5::fromResource(::wl_resource *resource)
void QWaylandXdgPopupV5::initialize(QWaylandXdgShellV5 *shell, QWaylandSurface *surface, QWaylandSurface *parentSurface, const QPoint &position, const QWaylandResource &resource)
Initializes the QWaylandXdgPopupV5, associating it with the given shell, surface, parentSurface, position, and resource.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[static]
const struct wl_interface *QWaylandXdgPopupV5::interface()
Returns the Wayland interface for the QWaylandXdgPopupV5.
[static]
QByteArray QWaylandXdgPopupV5::interfaceName()
[static]
QWaylandSurfaceRole *QWaylandXdgPopupV5::role()
Returns the surface role for the QWaylandXdgPopupV5.
void QWaylandXdgPopupV5::sendPopupDone()
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[override virtual]
Qt::WindowType QWaylandXdgPopupV5::windowType() const
© 2021 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.