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

QWaylandXdgSurface Class

The QWaylandXdgSurface class provides desktop-style compositor-specific features to an xdg surface.

This class was introduced in Qt 5.12.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QWaylandXdgSurface Class

  • Header: QWaylandXdgSurface

  • Since: Qt 5.12

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Waylandcompositor)

    target_link_libraries(mytarget PRIVATE Qt6::Waylandcompositor)

  • qmake: QT += waylandcompositor

  • Inherited By:

  • Instantiated By: qml-xdgsurface.xml

Detailed Description

This class is part of the QWaylandXdgShell extension and provides a way to extend the functionality of an existing QWaylandSurface with features specific to desktop-style compositors, such as resizing and moving the surface.

It corresponds to the Wayland interface xdg_surface.

Property Documentation

 

[read-only] popup : QWaylandXdgPopup* const

Access functions:

  • *popup() const

Notifier signal:

  • void popupCreated()

See Also

[read-only] shell : QWaylandXdgShell* const

This property holds the shell associated with this QWaylandXdgSurface.

Access functions:

  • *shell() const

Notifier signal:

  • void shellChanged()

[read-only] surface : QWaylandSurface* const

This property holds the surface associated with this QWaylandXdgSurface.

Access functions:

  • *surface() const

Notifier signal:

  • void surfaceChanged()

[read-only] toplevel : QWaylandXdgToplevel* const

This property holds the properties and methods that are specific to the toplevel QWaylandXdgSurface.

Access functions:

  • *toplevel() const

Notifier signal:

  • void toplevelCreated()

See Also

[read-only] windowGeometry : const QRect

This property holds the window geometry of the QWaylandXdgSurface. The window geometry describes the window's visible bounds from the user's perspective. The geometry includes title bars and borders if drawn by the client, but excludes drop shadows. It is meant to be used for aligning and tiling windows.

Access functions:

  • windowGeometry() const

Notifier signal:

  • void windowGeometryChanged()

Member Function Documentation

 

[explicit] QWaylandXdgSurface::QWaylandXdgSurface()

Constructs a QWaylandXdgSurface.

[explicit] QWaylandXdgSurface::QWaylandXdgSurface(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &res)

Constructs a QWaylandXdgSurface for surface and initializes it with the given xdgShell, surface, and resource res.

[static] QWaylandXdgSurface *QWaylandXdgSurface::fromResource(::wl_resource *resource)

Returns the QWaylandXdgSurface corresponding to the resource.

void QWaylandXdgSurface::initialize(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &resource)

Initializes the QWaylandXdgSurface, associating it with the given xdgShell, surface and resource.

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