QWaylandXdgPopup Class

The QWaylandXdgPopup class represents the popup specific parts of an xdg surface. 更多...

头: #include <QWaylandXdgPopup>
qmake: QT += waylandcompositor
Since: Qt 5.12
继承: QObject

特性

公共函数

Qt::Edges anchorEdges () const
QRect anchorRect () const
QRect configuredGeometry () const
Qt::Orientations flipConstraints () const
Qt::Edges gravityEdges () const
QPoint offset () const
QWaylandXdgSurface * parentXdgSurface () const
QSize positionerSize () const
Qt::Orientations resizeConstraints () const
uint sendConfigure (const QRect & geometry )
Qt::Orientations slideConstraints () const
QPoint unconstrainedPosition () const
QWaylandXdgSurface * xdgSurface () const

信号

void configuredGeometryChanged ()

静态公共成员

QWaylandSurfaceRole * role ()
const QMetaObject staticMetaObject

额外继承成员

详细描述

The QWaylandXdgPopup class represents the popup specific parts of an xdg surface.

此类属于 QWaylandXdgShell extension and provides a way to extend the functionality of a QWaylandXdgSurface with features specific to desktop-style menus for an xdg surface.

It corresponds to the Wayland interface xdg_popup .

特性文档编制

anchorEdges : const Qt::Edges

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

anchorRect : const QRect

Returns the anchor rectangle relative to the parent window geometry that the child surface should be placed relative to.

访问函数:

QRect anchorRect () const

configuredGeometry : const QRect

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 ()

flipConstraints : const Qt::Orientations

This property holds the orientations in which the child should flip to fit within the screen.

访问函数:

Qt::Orientations flipConstraints () const

gravityEdges : const Qt::Edges

Specifies in what direction the surface should be positioned, relative to the anchor point.

访问函数:

Qt::Edges gravityEdges () const

offset : const QPoint

Returns the surface position relative to the position of the anchor on the anchor rectangle and the anchor on the surface.

访问函数:

QPoint offset () const

parentXdgSurface : QWaylandXdgSurface * const

此特性保持 QWaylandXdgSurface associated with the parent of this QWaylandXdgPopup .

访问函数:

QWaylandXdgSurface * parentXdgSurface () const

positionerSize : const QSize

Returns the size requested for the window geometry by the positioner object.

访问函数:

QSize positionerSize () const

resizeConstraints : const Qt::Orientations

This property holds the orientations in which the child should resize to fit within the screen.

访问函数:

Qt::Orientations resizeConstraints () const

slideConstraints : const Qt::Orientations

This property holds the orientations in which the child should slide to fit within the screen.

访问函数:

Qt::Orientations slideConstraints () const

unconstrainedPosition : const QPoint

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

xdgSurface : QWaylandXdgSurface * const

此特性保持 QWaylandXdgSurface associated with this QWaylandXdgPopup .

访问函数:

QWaylandXdgSurface * xdgSurface () const

成员函数文档编制

[static] QWaylandSurfaceRole *QWaylandXdgPopup:: role ()

Returns the surface role for the QWaylandPopup.

uint QWaylandXdgPopup:: sendConfigure (const QRect & geometry )

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 QWaylandXdgSurface 还。

注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .