QWaylandWlShellSurface Class
QWaylandWlShellSurface 클래스는 서페이스에 데스크톱 스타일의 컴포지터 관련 기능을 제공합니다. 더 보기...
Header: | #include <QWaylandWlShellSurface> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
qmake: | QT += waylandcompositor |
QML에서: | WlShellSurface |
상속합니다: | QWaylandShellSurfaceTemplate |
공용 유형
enum | ResizeEdge { NoneEdge, TopEdge, BottomEdge, LeftEdge, TopLeftEdge, …, BottomRightEdge } |
속성
- className : const QString
- shell : QWaylandWlShell* const
- surface : QWaylandSurface* const
- title : const QString
공용 기능
QWaylandWlShellSurface() | |
QWaylandWlShellSurface(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &res) | |
QString | className() const |
void | initialize(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &resource) |
void | sendConfigure(const QSize &size, QWaylandWlShellSurface::ResizeEdge edges) |
void | sendPopupDone() |
QWaylandWlShell * | shell() const |
QWaylandSurface * | surface() const |
QString | title() const |
공용 슬롯
void | ping() |
신호
void | classNameChanged() |
void | shellChanged() |
void | surfaceChanged() |
void | titleChanged() |
정적 공용 멤버
QWaylandWlShellSurface * | fromResource(wl_resource *resource) |
상세 설명
이 클래스는 QWaylandWlShell 확장의 일부이며, 기존 QWaylandSurface 의 기능을 확장하는 방법을 제공하여 표면 크기 조정 및 이동과 같은 데스크톱 스타일 컴포저에 특화된 기능을 제공합니다.
이는 Wayland 인터페이스 wl_shell_surface
에 해당합니다.
멤버 유형 문서
enum QWaylandWlShellSurface::ResizeEdge
이 열거형 유형은 서페이스의 가장자리 또는 모서리를 지정하는 방법을 제공합니다.
Constant | 값 | 설명 |
---|---|---|
QWaylandWlShellSurface::NoneEdge | 0 | 가장자리가 없습니다. |
QWaylandWlShellSurface::TopEdge | 1 | 위쪽 가장자리. |
QWaylandWlShellSurface::BottomEdge | 2 | 아래쪽 가장자리입니다. |
QWaylandWlShellSurface::LeftEdge | 4 | 왼쪽 가장자리. |
QWaylandWlShellSurface::TopLeftEdge | 5 | 왼쪽 상단 모서리. |
QWaylandWlShellSurface::BottomLeftEdge | 6 | 왼쪽 하단 모서리. |
QWaylandWlShellSurface::RightEdge | 8 | 오른쪽 가장자리. |
QWaylandWlShellSurface::TopRightEdge | 9 | 오른쪽 상단 모서리. |
QWaylandWlShellSurface::BottomRightEdge | 10 | 오른쪽 하단 모서리. |
속성 문서
[read-only]
className : const QString
이 속성은 QWaylandWlShellSurface 의 클래스 이름을 보유합니다.
액세스 함수입니다:
QString | className() const |
알림 신호:
void | classNameChanged() |
[read-only]
shell : QWaylandWlShell* const
이 프로퍼티는 이 QWaylandWlShellSurface 와 관련된 셸을 보유합니다.
액세스 함수:
QWaylandWlShell * | shell() const |
알림 신호:
void | shellChanged() |
[read-only]
surface : QWaylandSurface* const
이 프로퍼티는 이 QWaylandWlShellSurface 와 연관된 표면을 보유합니다.
액세스 함수:
QWaylandSurface * | surface() const |
알림 신호:
void | surfaceChanged() |
[read-only]
title : const QString
이 속성은 QWaylandWlShellSurface 의 제목을 보유합니다.
액세스 함수입니다:
QString | title() const |
알림 신호:
void | titleChanged() |
멤버 함수 문서
QWaylandWlShellSurface::QWaylandWlShellSurface()
QWaylandWlShellSurface 를 생성합니다.
QWaylandWlShellSurface::QWaylandWlShellSurface(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &res)
surface 에 대한 QWaylandWlShellSurface 를 생성하고 주어진 shell 과 리소스 res 로 초기화합니다.
[static]
QWaylandWlShellSurface *QWaylandWlShellSurface::fromResource(wl_resource *resource)
지정된 resource 과 연관된 QWaylandWlShellSurface 객체를 반환하거나, 해당 객체가 존재하지 않으면 null을 반환합니다.
[invokable]
void QWaylandWlShellSurface::initialize(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &resource)
QWaylandWlShellSurface 을 초기화하고 지정된 shell, surface, resource 과 연결합니다.
참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 을 참조하세요.
[slot]
void QWaylandWlShellSurface::ping()
클라이언트에 핑 이벤트를 보냅니다. 클라이언트가 이벤트에 응답하면 퐁 신호가 전송됩니다.
[invokable]
void QWaylandWlShellSurface::sendConfigure(const QSize &size, QWaylandWlShellSurface::ResizeEdge edges)
클라이언트에 구성 이벤트를 전송하여 제공된 size 으로 서페이스 크기를 조정할 것을 제안합니다. edges 은 서페이스의 크기가 조정된 방법에 대한 힌트를 제공합니다.
참고: 이 함수는 메타 오브젝트 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 을 참조하십시오.
[invokable]
void QWaylandWlShellSurface::sendPopupDone()
팝업_완료 이벤트를 클라이언트에 전송하여 사용자가 클라이언트 표면 외부의 어딘가를 클릭했음을 나타냅니다.
참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 을 참조하세요.
© 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.