QWaylandShellSurfaceTemplate is a convenience class for creating custom shell surface classes. 更多...
头: | #include <QWaylandShellSurfaceTemplate> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
qmake: | QT += waylandcompositor |
继承: | QWaylandShellSurface |
继承者: | QWaylandIviSurface , QWaylandWlShellSurface ,和 QWaylandXdgSurface |
T * | findIn (QWaylandObject * container ) |
QWaylandShellSurfaceTemplate is a template class which inherits from QWaylandShellSurface and is convenience for building custom shell extensions.
It provides the connection between Qt Wayland Compositor and the class generated by
qtwaylandscanner
, based on the XML description of the extension protocol.
It provides two specific pieces of convenience:
wl_interface
pointer for the qtwaylandscanner-generated base class.
The same usage pattern applies as for QWaylandCompositorExtensionTemplate .
另请参阅 自定义 Shell .
[static]
T
*QWaylandShellSurfaceTemplate::
findIn
(
QWaylandObject
*
container
)
If any instance of the interface has been registered with
container
, this is returned. Otherwise null is returned. The look-up is based on the generated
interfaceName()
which matches the interface name in the protocol description.