이 페이지에서

QWaylandShellSurfaceTemplate Class

template <typename T> class QWaylandShellSurfaceTemplate

QWaylandShellSurfaceTemplate는 사용자 정의 셸 표면 클래스를 생성하기 위한 편의 클래스입니다. 더 보기...

헤더: #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는 QWaylandShellSurface 를 상속받는 템플릿 클래스로, 사용자 정의 셸 확장 기능을 구축하는 데 유용합니다.

이 클래스는 확장 프로토콜의 XML 설명을 기반으로 Qt Wayland Compositor 와 qtwaylandscanner 에 의해 생성된 클래스 간의 연결을 제공합니다.

이 클래스는 두 가지 구체적인 편의 기능을 제공합니다:

  • QWaylandCompositorExtension::extensionInterface() 메서드를 재구현하여, qtwaylandscanner로 생성된 기본 클래스에 대한 wl_interface 포인터를 반환합니다.
  • 제공된 컨테이너에서 확장 인스턴스를 검색하고, 발견되면 이를 반환하는 정적 findIn() 함수입니다.

QWaylandCompositorExtensionTemplate 와 동일한 사용 패턴이 적용되며, 여기서 T 는 하위 클래스 자체를 가리킵니다.

'사용자 정의 셸'항목도 참조하십시오 .

멤버 함수 문서

[static] T *QWaylandShellSurfaceTemplate::findIn(QWaylandObject *container)

해당 인터페이스의 인스턴스가 ` container`에 등록되어 있는 경우, 해당 인스턴스가 반환됩니다. 그렇지 않은 경우 null이 반환됩니다. 조회는 프로토콜 설명에 있는 인터페이스 이름과 일치하는, 생성된 ` interfaceName() `를 기반으로 수행됩니다.

© 2026 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.