The QWaylandXdgPopupV5 class provides menus for an xdg surface 更多...
| 头: | #include <QWaylandXdgPopupV5> |
| qmake: | QT += waylandcompositor |
| Since: | 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 |
| void | parentSurfaceChanged () |
| void | positionChanged () |
| void | shellChanged () |
| void | surfaceChanged () |
| QByteArray | interfaceName () |
| QWaylandSurfaceRole * | role () |
The QWaylandXdgPopupV5 class provides menus for an xdg surface
此类属于 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.
This property holds the surface associated with the parent of this QWaylandXdgPopupV5 .
访问函数:
| QWaylandSurface * | parentSurface () const |
通知程序信号:
| void | parentSurfaceChanged () |
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 | 位置 () const |
通知程序信号:
| void | positionChanged () |
This property holds the shell associated with this QWaylandXdgPopupV5 .
访问函数:
| QWaylandXdgShellV5 * | shell () const |
通知程序信号:
| void | shellChanged () |
This property holds the surface associated with this QWaylandXdgPopupV5 .
访问函数:
| QWaylandSurface * | surface () const |
通知程序信号:
| void | surfaceChanged () |
构造 QWaylandXdgPopupV5 .
构造 QWaylandXdgPopupV5 , associating it with xdgShell at the specified position for surface , and initializes it with the given parentSurface and resource .
初始化 QWaylandXdgPopupV5 , associating it with the given shell , surface , parentSurface , position ,和 resource .
[static]
QByteArray
QWaylandXdgPopupV5::
interfaceName
()
[static]
QWaylandSurfaceRole
*QWaylandXdgPopupV5::
role
()
Returns the surface role for the QWaylandXdgPopupV5 .
[override virtual]
Qt::WindowType
QWaylandXdgPopupV5::
windowType
() const