IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QWaylandXdgPopupV6 Class

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

This class was introduced in Qt 5.10.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QWaylandXdgPopupV6 Class

  • Header: QWaylandXdgPopupV6

  • Since: Qt 5.10

  • qmake: QT += waylandcompositor

  • Inherits: QObject

Detailed Description

This class is part of the 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.

Property Documentation

 

[read-only] 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.

Access functions:

  • anchorEdges() const

[read-only] anchorRect : const QRect

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

Access functions:

  • anchorRect() const

[read-only] configuredGeometry : const QRect

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

Access functions:

  • configuredGeometry() const

Notifier signal:

  • void configuredGeometryChanged()

[read-only] flipConstraints : const Qt::Orientations

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

Access functions:

  • flipConstraints() const

[read-only] gravityEdges : const Qt::Edges

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

Access functions:

  • gravityEdges() const

[read-only] offset : const QPoint

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

Access functions:

  • offset() const

[read-only] parentXdgSurface : QWaylandXdgSurfaceV6* const

This property holds the QWaylandXdgSurfaceV6 associated with the parent of this QWaylandXdgPopupV6.

Access functions:

  • *parentXdgSurface() const

[read-only] positionerSize : const QSize

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

Access functions:

  • positionerSize() const

[read-only] resizeConstraints : const Qt::Orientations

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

Access functions:

  • resizeConstraints() const

[read-only] slideConstraints : const Qt::Orientations

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

Access functions:

  • slideConstraints() const

[read-only] 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.

Access functions:

  • unconstrainedPosition() const

[read-only] xdgSurface : QWaylandXdgSurfaceV6* const

This property holds the QWaylandXdgSurfaceV6 associated with this QWaylandXdgPopupV6.

Access functions:

  • *xdgSurface() const

Member Function Documentation

 

[static] QWaylandSurfaceRole *QWaylandXdgPopupV6::role()

Returns the surface role for the QWaylandPopupV6.

uint QWaylandXdgPopupV6::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 QWaylandXdgSurfaceV6 as well.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+