XdgPopup QML Type

XdgPopup represents the popup specific parts of and xdg surface. 更多...

import 语句: import QtWayland.Compositor.XdgShell
实例化: QWaylandXdgPopup

特性

方法

详细描述

This type is part of the XdgShell extension and provides a way to extend extend the functionality of an XdgSurface with features specific to desktop-style menus for an xdg surface.

It corresponds to the Wayland interface xdg_popup .

特性文档编制

[read-only] anchorEdges : enumeration

This property holds 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.TopEdge 矩形上边缘。
Qt.LeftEdge 矩形左边缘。
Qt.RightEdge 矩形右边缘。
Qt.BottomEdge 矩形下边缘。

[read-only] anchorRect : rect

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


[read-only] configuredGeometry : rect

The window geometry the popup received in the configure event. Relative to the upper left corner of the parent surface.


[read-only] flipConstraints : enumeration

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

可能的值:

常量 描述
Qt.Horizontal Horizontal
Qt.Vertical Vertical

[read-only] gravityEdges : rect

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

可能的值包括:

常量 描述
Qt.TopEdge The surface should slide towards the top of the screen.
Qt.LeftEdge The surface should slide towards the left of the screen.
Qt.RightEdge The surface should slide towards the right of the screen.
Qt.BottomEdge The surface should slide towards the bottom of the screen.

[read-only] offset : point

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


[read-only] parentXdgSurface : XdgSurface

此特性保持 XdgSurface associated with the parent of this XdgPopup .


[read-only] positionerSize : size

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


[read-only] resizeConstraints : enumeration

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

可能的值:

常量 描述
Qt.Horizontal Horizontal
Qt.Vertical Vertical

[read-only] slideConstraints : enumeration

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

可能的值:

常量 描述
Qt.Horizontal Horizontal
Qt.Vertical Vertical

[read-only] unconstrainedPosition : point

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.


[read-only] xdgSurface : XdgSurface

此特性保持 XdgSurface associated with this XdgPopup .


方法文档编制

int sendConfigure ( rect 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 XdgSurface 还。


void sendPopupDone ()

Dismiss the popup. According to the xdg-shell protocol this should make the client destroy the popup.