The QWaylandXdgPopupV6 class represents the popup specific parts of an xdg surface. 更多...
头: | #include <QWaylandXdgPopupV6> |
qmake: | QT += waylandcompositor |
Since: | Qt 5.10 |
继承: | QObject |
该类已过时。 提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。
该类在 Qt 5.10 引入。
|
|
Qt::Edges | anchorEdges () const |
QRect | anchorRect () const |
QRect | configuredGeometry () const |
Qt::Orientations | flipConstraints () const |
Qt::Edges | gravityEdges () const |
QPoint | offset () const |
QWaylandXdgSurfaceV6 * | parentXdgSurface () const |
QSize | positionerSize () const |
Qt::Orientations | resizeConstraints () const |
uint | sendConfigure (const QRect & geometry ) |
void | sendPopupDone () |
Qt::Orientations | slideConstraints () const |
QPoint | unconstrainedPosition () const |
QWaylandXdgSurfaceV6 * | xdgSurface () const |
void | configuredGeometryChanged () |
QWaylandSurfaceRole * | role () |
此类属于 QWaylandXdgShellV6 extension and provides a way to extend the functionality of a QWaylandXdgSurfaceV6 with features specific to desktop-style menus for an xdg surface.
It corresponds to the Wayland interface
zxdg_popup_v6
.
Returns the set of edges on the anchor rect that the child surface should be placed relative to. If no edges are specified in a direction, the anchor point should be centered between the edges.
访问函数:
Qt::Edges | anchorEdges () const |
Returns the anchor rectangle relative to the parent window geometry that the child surface should be placed relative to.
访问函数:
QRect | anchorRect () const |
The window geometry the popup received in the configure event. Relative to the upper left corner of the parent surface.
访问函数:
QRect | configuredGeometry () const |
通知程序信号:
void | configuredGeometryChanged () |
This property holds the orientations in which the child should flip to fit within the screen.
访问函数:
Qt::Orientations | flipConstraints () const |
Specifies in what direction the surface should be positioned, relative to the anchor point.
访问函数:
Qt::Edges | gravityEdges () const |
Returns the surface position relative to the position of the anchor on the anchor rectangle and the anchor on the surface.
访问函数:
QPoint | offset () const |
This property holds the QWaylandXdgSurfaceV6 associated with the parent of this QWaylandXdgPopupV6 .
访问函数:
QWaylandXdgSurfaceV6 * | parentXdgSurface () const |
Returns the size requested for the window geometry by the positioner object.
访问函数:
QSize | positionerSize () const |
This property holds the orientations in which the child should resize to fit within the screen.
访问函数:
Qt::Orientations | resizeConstraints () const |
This property holds the orientations in which the child should slide to fit within the screen.
访问函数:
Qt::Orientations | slideConstraints () const |
The position of the surface relative to the parent window geometry if the surface is not constrained. I.e. when not moved to fit inside the screen or similar.
访问函数:
QPoint | unconstrainedPosition () const |
This property holds the QWaylandXdgSurfaceV6 associated with this QWaylandXdgPopupV6 .
访问函数:
QWaylandXdgSurfaceV6 * | xdgSurface () const |
[static]
QWaylandSurfaceRole
*QWaylandXdgPopupV6::
role
()
Returns the surface role for the QWaylandPopupV6.
Sends a configure event to the client. geometry contains the window geometry relative to the upper left corner of the window geometry of the parent surface.
This implicitly sends a configure event to the corresponding QWaylandXdgSurfaceV6 as well.
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
Dismiss the popup. According to the
xdg-shell-unstable-v6
protocol this should make the client destroy the popup.
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
该函数在 Qt 5.14 引入。