QWaylandXdgSurface Class
QWaylandXdgSurface 클래스는 데스크톱 스타일의 컴포지터 전용 기능을 xdg 서페이스에 제공합니다. 더 보기...
Header: | #include <QWaylandXdgSurface> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
qmake: | QT += waylandcompositor |
QML에서: | XdgSurface |
상속합니다: | QWaylandShellSurfaceTemplate |
속성
|
공공 기능
QWaylandXdgSurface() | |
QWaylandXdgSurface(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &res) | |
void | initialize(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &resource) |
QWaylandXdgPopup * | popup() const |
QWaylandXdgShell * | shell() const |
QWaylandSurface * | surface() const |
QWaylandXdgToplevel * | toplevel() const |
QRect | windowGeometry() const |
신호
void | popupCreated() |
void | shellChanged() |
void | surfaceChanged() |
void | toplevelCreated() |
void | windowGeometryChanged() |
정적 공용 멤버
QWaylandXdgSurface * | fromResource(wl_resource *resource) |
const struct wl_interface * | interface() |
상세 설명
이 클래스는 QWaylandXdgShell 확장의 일부이며, 기존 QWaylandSurface 의 기능을 확장하는 방법을 제공하여 표면 크기 조정 및 이동과 같은 데스크톱 스타일 컴포저에 특화된 기능을 제공합니다.
이는 Wayland 인터페이스 xdg_surface
에 해당합니다.
속성 문서
[read-only]
popup : QWaylandXdgPopup* const
이 프로퍼티에는 팝업과 관련된 프로퍼티와 메서드가 포함되어 있습니다 QWaylandXdgSurface.
함수에 액세스합니다:
QWaylandXdgPopup * | popup() const |
알림 신호:
void | popupCreated() |
QWaylandXdgSurface::toplevel 및 QWaylandXdgShell::popupCreated 을참조하세요 .
[read-only]
shell : QWaylandXdgShell* const
이 프로퍼티는 이 QWaylandXdgSurface 와 관련된 셸을 보유합니다.
액세스 함수:
QWaylandXdgShell * | shell() const |
알림 신호:
void | shellChanged() |
[read-only]
surface : QWaylandSurface* const
이 프로퍼티는 이 QWaylandXdgSurface 와 연관된 표면을 보유합니다.
액세스 함수:
QWaylandSurface * | surface() const |
알림 신호:
void | surfaceChanged() |
[read-only]
toplevel : QWaylandXdgToplevel* const
이 프로퍼티에는 최상위 수준 QWaylandXdgSurface 에 특정한 프로퍼티와 메서드가 있습니다.
함수에 액세스합니다:
QWaylandXdgToplevel * | toplevel() const |
알림 신호:
void | toplevelCreated() |
QWaylandXdgSurface::popup 및 QWaylandXdgShell::toplevelCreated 을참조하세요 .
[read-only]
windowGeometry : const QRect
이 속성은 QWaylandXdgSurface 의 창 지오메트리를 보유합니다. 창 지오메트리는 사용자 관점에서 창의 보이는 경계를 설명합니다. 지오메트리에는 클라이언트가 그린 경우 제목 표시줄과 테두리가 포함되지만 그림자 효과는 제외됩니다. 창을 정렬하고 타일링하는 데 사용됩니다.
액세스 기능:
QRect | windowGeometry() const |
알림 신호:
void | windowGeometryChanged() |
멤버 함수 문서
[explicit]
QWaylandXdgSurface::QWaylandXdgSurface()
QWaylandXdgSurface 를 생성합니다.
[explicit]
QWaylandXdgSurface::QWaylandXdgSurface(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &res)
surface 에 대한 QWaylandXdgSurface 를 생성하고 주어진 xdgShell, surface, 리소스 res 로 초기화합니다 .
[static]
QWaylandXdgSurface *QWaylandXdgSurface::fromResource(wl_resource *resource)
resource 에 해당하는 QWaylandXdgSurface 을 반환합니다.
[invokable]
void QWaylandXdgSurface::initialize(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &resource)
QWaylandXdgSurface 을 초기화하여 주어진 xdgShell, surface 및 resource 과 연결합니다.
참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 을 참조하세요.
[static]
const struct wl_interface *QWaylandXdgSurface::interface()
QWaylandXdgSurface 에 대한 웨이랜드 인터페이스를 반환합니다.
© 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.