QWaylandCompositorExtension Class

QWaylandCompositorExtension은 컴포저 확장을 위한 베이스 클래스입니다. 더 보기...

헤더: #include <QWaylandCompositorExtension>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
상속합니다: QWaylandObject
상속 대상

QWaylandCompositorExtensionTemplateQWaylandShellSurface

공용 함수

QWaylandCompositorExtension()
QWaylandCompositorExtension(QWaylandObject *container)
QWaylandObject *extensionContainer() const
virtual const struct wl_interface *extensionInterface() const = 0
virtual void initialize()
void setExtensionContainer(QWaylandObject *container)

상세 설명

QWaylandCompositorExtension은 연결의 컴포저 측에서 Wayland 확장을 구현하기 위한 베이스 클래스입니다. 다른 확장 컨테이너가 명시적으로 설정되어 있지 않으면 QWaylandObject 에서 상속된다는 가정 하에 자동으로 부모 객체에 추가됩니다.

예를 들어, 글로벌 확장을 등록하려면 QWaylandCompositorExtension에서 상속하고 QWaylandCompositor 객체를 확장 컨테이너로 전달할 수 있습니다.

QWaylandCompositorExtensionTemplate사용자 지정 셸도참조하십시오 .

멤버 함수 문서

QWaylandCompositorExtension::QWaylandCompositorExtension()

컨테이너가 없는 QWaylandCompositorExtension을 생성합니다.

setExtensionContainer()도 참조하세요 .

QWaylandCompositorExtension::QWaylandCompositorExtension(QWaylandObject *container)

QWaylandCompositorExtension을 생성하고 확장에 추가합니다 container. container 은 QWaylandCompositorExtension의 부모가 되지 않습니다.

이 확장은 나중에 initialize()이 호출될 때 container 에 추가됩니다. 이 작업이 자동으로 수행되려면 현재 스레드에서 이벤트 루프가 실행 중이어야 합니다.

QWaylandCompositorExtension은 소멸되면 다시 제거됩니다.

QWaylandObject *QWaylandCompositorExtension::extensionContainer() const

이 확장 컨테이너를 반환합니다 QWaylandCompositorExtension 또는 설정되지 않은 경우 null을 반환합니다.

setExtensionContainer()도 참조하세요 .

[pure virtual] const struct wl_interface *QWaylandCompositorExtension::extensionInterface() const

QWaylandCompositorExtension 에 해당하는 wl_interface 을 반환하도록 다시 구현해야 하는 순수 가상 함수입니다.

[virtual] void QWaylandCompositorExtension::initialize()

QWaylandCompositorExtension 를 초기화합니다. 기본 구현은 설정된 것이 없는 경우 부모 객체를 확장 컨테이너로 채택하고 부모가 QWaylandObject 에서 상속하는 경우 기본 구현은 확장 컨테이너에서 관리하는 확장 목록에 QWaylandCompositorExtension 도 추가합니다.

사용자 정의 초기화 코드를 제공하려면 하위 클래스에서 이 함수를 재정의하세요.

void QWaylandCompositorExtension::setExtensionContainer(QWaylandObject *container)

QWaylandCompositorExtension 의 확장 컨테이너를 container 로 설정합니다. initialize() 전에 호출해야 하며 QWaylandCompositorExtension 이 초기화되면 변경할 수 없습니다.

extensionContainer()도 참조하세요 .

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