QWaylandXdgDecorationManagerV1 Class

Provides an extension for negotiation of server-side and client-side window decorations. More...

Header: #include <QWaylandXdgDecorationManagerV1>
CMake: find_package(Qt6 COMPONENTS Waylandcompositor REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Waylandcompositor)
qmake: QT += waylandcompositor
Since: Qt 5.12
Inherits: QWaylandCompositorExtensionTemplate

Properties

Public Functions

QWaylandXdgDecorationManagerV1()
QWaylandXdgToplevel::DecorationMode preferredMode() const
void setPreferredMode(QWaylandXdgToplevel::DecorationMode preferredMode)

Reimplemented Public Functions

virtual void initialize() override

Signals

Static Public Members

const struct wl_interface *interface()

Detailed Description

The QWaylandXdgDecorationManagerV1 extension provides a way for a compositor to announce support for server-side window decorations, and for xdg-shell clients to communicate whether they prefer client-side or server-side decorations.

QWaylandXdgDecorationManagerV1 corresponds to the Wayland interface, zxdg_decoration_manager_v1.

See also QWaylandXdgToplevel::decorationMode.

Property Documentation

preferredMode : QWaylandXdgToplevel::DecorationMode

This property holds the decoration mode the compositor prefers.

This is the mode used for clients that don't indicate a preference for server-side or client-side decorations.

Access functions:

QWaylandXdgToplevel::DecorationMode preferredMode() const
void setPreferredMode(QWaylandXdgToplevel::DecorationMode preferredMode)

Notifier signal:

void preferredModeChanged()

Member Function Documentation

QWaylandXdgDecorationManagerV1::QWaylandXdgDecorationManagerV1()

Constructs a QWaylandXdgDecorationManagerV1 object.

[override virtual] void QWaylandXdgDecorationManagerV1::initialize()

Initializes the extension.

[static] const struct wl_interface *QWaylandXdgDecorationManagerV1::interface()

Returns the Wayland interface for the QWaylandXdgDecorationManagerV1.

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.