QWaylandObject Class
QWaylandObject는 Wayland 확장을 포함할 수 있는 객체의 기본 클래스입니다. 더 보기...
| 헤더: | #include <QWaylandObject> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| 상속: | QObject |
| 상속받는 클래스: | QWaylandCompositor, QWaylandCompositorExtension, QWaylandKeyboard, QWaylandOutput, QWaylandPointer, QWaylandSeat, QWaylandSurface 및 QWaylandTouch |
공개 함수
| void | addExtension(QWaylandCompositorExtension *extension) |
| QWaylandCompositorExtension * | extension(const QByteArray &name) |
| QWaylandCompositorExtension * | extension(const wl_interface *interface) |
| QList<QWaylandCompositorExtension *> | extensions() const |
| void | removeExtension(QWaylandCompositorExtension *extension) |
보호된 함수
| QWaylandObject(QObject *parent = nullptr) |
상세 설명
QWaylandObject는 확장 컨테이너 기능을 캡슐화합니다. 모든 QWaylandObject 객체는 자동으로 확장 컨테이너가 되며, 이의 자식인 QWaylandCompositorExtension 객체는 자동으로 확장 목록에 자신을 추가하고, 확장 객체가 소멸되면 자신을 제거합니다.
멤버 함수 문서
[protected] QWaylandObject::QWaylandObject(QObject *parent = nullptr)
parent 의 자식 노드로 QWaylandObject를 생성합니다.
void QWaylandObject::addExtension(QWaylandCompositorExtension *extension)
extension 를 이 QWaylandObject 에 등록합니다.
QWaylandCompositorExtension *QWaylandObject::extension(const QByteArray &name)
QWaylandObject 에 등록된 컴포지터 확장 중 name 과 일치하는 것을 반환합니다. 해당 이름과 일치하는 확장이 등록되어 있지 않은 경우, 이 함수는 null을 반환합니다.
QWaylandCompositorExtension *QWaylandObject::extension(const wl_interface *interface)
QWaylandObject 에 등록된 확장 중 interface 와 일치하는 컴포지터 확장을 반환합니다. 해당 인터페이스와 일치하는 확장이 등록되어 있지 않은 경우, 이 함수는 null을 반환합니다.
QList<QWaylandCompositorExtension *> QWaylandObject::extensions() const
이 QWaylandObject 에 등록된 컴포지터 확장 기능 목록을 반환합니다.
void QWaylandObject::removeExtension(QWaylandCompositorExtension *extension)
이전에 addExtension()를 사용하여 등록된 경우, QWaylandObject 에 있는 등록된 확장자 목록에서 extension 를 제거합니다.
© 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.