QWaylandResource Class

QWaylandResource is a container for a wl_resource . 更多...

头: #include <QWaylandResource>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor

公共函数

QWaylandResource ()
QWaylandResource (wl_resource * resource )
wl_resource * resource () const

详细描述

The QWaylandResource is a simple wrapper around the Wayland type wl_resource , and makes it possible to use wl_resource pointers in Qt Quick APIs.

另请参阅 自定义 Shell .

成员函数文档编制

QWaylandResource:: QWaylandResource ()

Constructs an invalid QWaylandResource. The resource () accessor will return null.

[explicit] QWaylandResource:: QWaylandResource ( wl_resource * resource )

Constructs a QWaylandResource which contains resource .

wl_resource *QWaylandResource:: resource () const

Returns the wl_resource pointer held by this QWaylandResource .