Provides an extension for negotiation of server-side and client-side window decorations. 更多...
头: | #include <QWaylandXdgDecorationManagerV1> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
qmake: | QT += waylandcompositor |
实例化: | XdgDecorationManagerV1 |
继承: | QWaylandCompositorExtensionTemplate |
QWaylandXdgDecorationManagerV1 () | |
QWaylandXdgToplevel::DecorationMode | preferredMode () const |
void | setPreferredMode (QWaylandXdgToplevel::DecorationMode preferredMode ) |
virtual void | initialize () override |
void | preferredModeChanged () |
const struct wl_interface * | interface () |
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
.
另请参阅 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.
访问函数:
QWaylandXdgToplevel::DecorationMode | preferredMode () const |
void | setPreferredMode (QWaylandXdgToplevel::DecorationMode preferredMode ) |
通知程序信号:
void | preferredModeChanged () |
[explicit]
QWaylandXdgDecorationManagerV1::
QWaylandXdgDecorationManagerV1
()
Constructs a QWaylandXdgDecorationManagerV1 object.
[override virtual]
void
QWaylandXdgDecorationManagerV1::
initialize
()
重实现: QWaylandCompositorExtension::initialize ().
Initializes the extension.
[static]
const
struct
wl_interface
*QWaylandXdgDecorationManagerV1::
interface
()
返回 Wayland 接口为 QWaylandXdgDecorationManagerV1 .