Provides an extension that allows to inhibit the idle behavior of the compositor. 更多...
头: | #include <QWaylandIdleInhibitManagerV1> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
qmake: | QT += waylandcompositor |
实例化: | IdleInhibitManagerV1 |
继承: | QWaylandCompositorExtensionTemplate |
QWaylandIdleInhibitManagerV1 () | |
QWaylandIdleInhibitManagerV1 (QWaylandCompositor * compositor ) | |
virtual | ~QWaylandIdleInhibitManagerV1 () |
virtual void | initialize () override |
const struct wl_interface * | interface () |
The QWaylandIdleInhibitV1 extension provides a way for a client to inhibit the idle behavior of the compositor when a specific surface is visually relevant to the user.
QWaylandIdleInhibitManagerV1 corresponds to the Wayland interface,
zwp_idle_inhibit_manager_v1
.
Inhibited surfaces have the
QWaylandSurface::inhibitsIdle
特性被设为
true
.
另请参阅 QWaylandSurface::inhibitsIdle .
Constructs a QWaylandIdleInhibitManagerV1 object.
[explicit]
QWaylandIdleInhibitManagerV1::
QWaylandIdleInhibitManagerV1
(
QWaylandCompositor
*
compositor
)
Constructs a QWaylandIdleInhibitManagerV1 object for the provided compositor .
[虚拟]
QWaylandIdleInhibitManagerV1::
~QWaylandIdleInhibitManagerV1
()
销毁 QWaylandIdleInhibitManagerV1 对象。
[override virtual]
void
QWaylandIdleInhibitManagerV1::
initialize
()
重实现: QWaylandCompositorExtension::initialize ().
Initializes the extension.
[static]
const
struct
wl_interface
*QWaylandIdleInhibitManagerV1::
interface
()
返回 Wayland 接口为 QWaylandIdleInhibitManagerV1 .