QWaylandXdgPopupV5 Class

The QWaylandXdgPopupV5 class provides menus for an xdg surface 更多...

头文件: #include <QWaylandXdgPopupV5>
qmake: QT += waylandcompositor
开始支持版本: Qt 5.8
基类: QWaylandShellSurfaceTemplate

属性

公有函数

QWaylandXdgPopupV5()
QWaylandXdgPopupV5(QWaylandXdgShellV5 *xdgShell, QWaylandSurface *surface, QWaylandSurface *parentSurface, const QPoint &position, const QWaylandResource &resource)
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

重新实现的公有函数

virtual Qt::WindowType windowType() const override

信号

静态公有成员

QByteArray interfaceName()
QWaylandSurfaceRole *role()

其他继承的成员

详细描述

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.

属性

parentSurface : QWaylandSurface * const

This property holds the surface associated with the parent of this QWaylandXdgPopupV5.

访问函数:

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.

访问函数:

QPoint position() const

Notifier signal:

void positionChanged()

shell : QWaylandXdgShellV5 * const

This property holds the shell associated with this QWaylandXdgPopupV5.

访问函数:

QWaylandXdgShellV5 *shell() const

Notifier signal:

void shellChanged()

surface : QWaylandSurface * const

This property holds the surface associated with this QWaylandXdgPopupV5.

访问函数:

QWaylandSurface *surface() const

Notifier signal:

void surfaceChanged()

成员函数

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.

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.

[static] QByteArray QWaylandXdgPopupV5::interfaceName()

[static] QWaylandSurfaceRole *QWaylandXdgPopupV5::role()

Returns the surface role for the QWaylandXdgPopupV5.

void QWaylandXdgPopupV5::sendPopupDone()

[override virtual] Qt::WindowType QWaylandXdgPopupV5::windowType() const