WaylandSurface QML Type

출력 장치의 직사각형 영역을 나타냅니다. 더 보기...

Import Statement: import QtWayland.Compositor
In C++: QWaylandSurface

속성

신호

방법

상세 설명

이 유형은 출력 장치에 표시되는 직사각형 픽셀 영역을 캡슐화합니다. Wayland 프로토콜의 wl_surface 인터페이스에 해당합니다.

속성 문서

bufferScale : size [read-only]

이 프로퍼티는 WaylandSurface 의 버퍼 스케일을 보유합니다. 버퍼 스케일을 통해 클라이언트는 고해상도 출력에 사용할 수 있도록 고해상도 버퍼 데이터를 제공할 수 있습니다.


bufferSize : size [read-only]

이 프로퍼티는 표면 좌표가 아닌 픽셀 단위로 WaylandSurface 의 현재 버퍼 크기를 보유합니다.

표면 좌표로 크기를 표시하려면 destinationSize 을 대신 사용하세요.

destinationSizebufferScale참조하세요 .


client : WaylandClient [read-only]

이 프로퍼티는 이 WaylandSurface 을 사용하는 클라이언트를 보유합니다.


contentOrientation : enum [read-only]

이 속성은 WaylandSurface 의 콘텐츠 방향을 보유합니다.

WaylandOutput.transform도 참조하세요 .


cursorSurface : bool

이 속성은 WaylandSurface 이 커서 표면인지 여부를 보유합니다.


destinationSize : size [read-only]

이 속성은 표면 좌표에서 이 WaylandSurface 의 크기를 보유합니다.

bufferScalebufferSize참조하십시오 .


hasContent : bool [read-only]

이 속성은 WaylandSurface 에 콘텐츠가 있는지 여부를 보유합니다.


inhibitsIdle : bool [read-only]

이 속성은 이 서페이스가 화면 블랭킹, 잠금 및 화면 저장과 같은 컴포저의 유휴 동작을 억제하기 위한 것인지 여부를 보유합니다.

IdleInhibitManagerV1참조하세요 .


isOpaque : bool [read-only, since 6.4]

이 프로퍼티는 클라이언트가 set_opaque_region 요청을 통해 보고한 대로 서페이스가 완전히 불투명한지 여부를 보유합니다.

이 프로퍼티는 Qt 6.4에 도입되었습니다.


origin : enum [read-only]

이 프로퍼티는 WaylandSurface 의 버퍼 원점, 또는 서페이스에 버퍼가 없는 경우 WaylandSurface.OriginTopLeft를 보유합니다.

다음과 같은 값을 가질 수 있습니다:

  • WaylandSurface.OriginTopLeft 원점은 버퍼의 왼쪽 상단 모서리입니다.
  • WaylandSurface원점은 버퍼의 왼쪽 하단 모서리입니다.

sourceGeometry : rect [read-only]

이 속성은 화면에 그려야 하는 첨부된 웨이랜드 버퍼의 부분을 설명합니다. 좌표는 버퍼의 모서리에서 시작하며 bufferScale 에 의해 배율이 조정됩니다.

bufferScale, bufferSize, destinationSize참조하십시오 .


useTextureAlpha : bool

이 프로퍼티는 표면이 텍스처 알파를 사용할지 여부를 지정합니다.


신호 문서

childAdded(WaylandSurface child)

이 신호는 서페이스에 wl_subsurface, child, 가 추가되었을 때 방출됩니다.

참고: 해당 핸들러는 onChildAdded 입니다.


void dragStarted(WaylandDrag drag)

이 신호는 이 표면에서 drag 이 시작되었을 때 발생합니다.

참고: 해당 핸들러는 onDragStarted 입니다.


surfaceDestroyed()

이 신호는 해당 wl_surface가 소멸될 때 발생합니다.

참고: 해당 핸들러는 onSurfaceDestroyed 입니다.


메서드 문서

void destroy()

WaylandSurface 를 파괴합니다.


void initialize(WaylandCompositor compositor, WaylandClient client, int id, int version)

주어진 compositorclient 와 주어진 idversion 를 사용하여 WaylandSurface 를 초기화합니다.


bool isDestroyed()

WaylandSurface 이 소멸된 경우 true 을 반환합니다. 그렇지 않으면 false 을 반환합니다.


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