QWaylandWlShell Class
QWaylandWlShell 클래스는 데스크톱 스타일 사용자 인터페이스를 위한 확장입니다. 더 보기...
헤더: | #include <QWaylandWlShell> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
qmake: | QT += waylandcompositor |
QML에서: | WlShell |
상속합니다: | QWaylandShellTemplate |
공용 함수
QWaylandWlShell() | |
QWaylandWlShell(QWaylandCompositor *compositor) |
재구현된 공용 함수
virtual void | initialize() override |
시그널
void | wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface) |
void | wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource) |
정적 공용 멤버
const struct wl_interface * | interface() |
자세한 설명
QWaylandWlShell 확장은 QWaylandWlShellSurface 를 일반 Wayland 서페이스와 연결하는 방법을 제공합니다. 클라이언트는 셸 서페이스 인터페이스를 사용하여 서페이스의 크기 조정, 이동 등을 요청할 수 있습니다.
WlShell 는 Wayland 인터페이스 wl_shell
에 해당합니다.
멤버 함수 문서
QWaylandWlShell::QWaylandWlShell()
QWaylandWlShell 객체를 생성합니다.
QWaylandWlShell::QWaylandWlShell(QWaylandCompositor *compositor)
제공된 compositor 에 대한 QWaylandWlShell 객체를 생성합니다.
[override virtual]
void QWaylandWlShell::initialize()
다시 구현합니다: QWaylandCompositorExtension::initialize().
WlShell 확장자를 초기화합니다.
[static]
const struct wl_interface *QWaylandWlShell::interface()
QWaylandWlShell 에 대한 웨이랜드 인터페이스를 반환합니다.
[signal]
void QWaylandWlShell::wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface)
이 신호는 클라이언트가 wl_shell_surface
을 만들었을 때 발생합니다. 일반적인 사용 사례는 이 신호의 핸들러가 QWaylandShellSurfaceItem 또는 QWaylandQuickItem 을 인스턴스화하여 QtQuick 장면에 shellSurface 을 표시하는 것입니다.
[signal]
void QWaylandWlShell::wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource)
이 신호는 클라이언트가 wl_shell_surface
를 surface 에 연결하도록 요청했을 때 전송됩니다. 이 신호의 핸들러는 resource 에 대한 셸 서페이스를 생성하고 신호 방출 범위 내에서 초기화할 수 있습니다. 그렇지 않으면 QWaylandWlShellSurface 이 자동으로 생성됩니다.
© 2025 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.