QWaylandKeyboard Class
QWaylandKeyboard 클래스는 키보드 장치를 나타냅니다. 더 보기...
헤더: | #include <QWaylandKeyboard> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
qmake: | QT += waylandcompositor |
상속합니다: | QWaylandObject |
공용 함수
QWaylandKeyboard(QWaylandSeat *seat, QObject *parent = nullptr) | |
QWaylandCompositor * | compositor() const |
QWaylandSurface * | focus() const |
QWaylandClient * | focusClient() const |
quint32 | repeatDelay() const |
quint32 | repeatRate() const |
QWaylandSeat * | seat() const |
virtual void | sendKeyModifiers(QWaylandClient *client, uint32_t serial) |
virtual void | sendKeyPressEvent(uint code) |
virtual void | sendKeyReleaseEvent(uint code) |
virtual void | setFocus(QWaylandSurface *surface) |
void | setRepeatDelay(quint32 delay) |
void | setRepeatRate(quint32 rate) |
시그널
void | repeatDelayChanged(quint32 repeatDelay) |
void | repeatRateChanged(quint32 repeatRate) |
자세한 설명
이 클래스는 QWaylandSeat 에서 키보드 장치에 대한 액세스를 제공합니다. 이는 웨이랜드 인터페이스 wl_keyboard에 해당합니다.
멤버 함수 문서
QWaylandKeyboard::QWaylandKeyboard(QWaylandSeat *seat, QObject *parent = nullptr)
주어진 seat 와 주어진 parent 에 대한 QWaylandKeyboard를 구축합니다.
QWaylandCompositor *QWaylandKeyboard::compositor() const
이 QWaylandKeyboard 에 대한 컴포지터를 반환합니다.
QWaylandSurface *QWaylandKeyboard::focus() const
현재 초점이 맞춰진 서페이스를 반환합니다.
setFocus()도 참조하세요 .
QWaylandClient *QWaylandKeyboard::focusClient() const
현재 키보드 포커스가 있는 클라이언트를 반환합니다.
quint32 QWaylandKeyboard::repeatDelay() const
현재 반복 지연을 반환합니다.
참고: 반복 지연 속성에 대한 게터 함수입니다.
setRepeatDelay()도 참조하세요 .
quint32 QWaylandKeyboard::repeatRate() const
현재 반복 속도를 반환합니다.
참고: 반복률 속성에 대한 게터 함수입니다.
setRepeatRate()도 참조하세요 .
QWaylandSeat *QWaylandKeyboard::seat() const
이 QWaylandKeyboard 에 대한 좌석을 반환합니다.
[virtual]
void QWaylandKeyboard::sendKeyModifiers(QWaylandClient *client, uint32_t serial)
주어진 serial 과 함께 현재 키 수정자를 client 로 전송합니다.
[virtual]
void QWaylandKeyboard::sendKeyPressEvent(uint code)
code 키로 키 누르기 이벤트를 현재 키보드 포커스로 보냅니다.
[virtual]
void QWaylandKeyboard::sendKeyReleaseEvent(uint code)
code 키로 키 릴리스 이벤트를 현재 키보드 포커스로 보냅니다.
[virtual]
void QWaylandKeyboard::setFocus(QWaylandSurface *surface)
현재 포커스를 surface 로 설정합니다.
focus()도 참조하세요 .
void QWaylandKeyboard::setRepeatDelay(quint32 delay)
반복 지연을 delay 로 설정합니다.
참고: 속성에 대한 설정자 함수 repeatDelay.
repeatDelay()도 참조하세요 .
void QWaylandKeyboard::setRepeatRate(quint32 rate)
반복 속도를 rate 로 설정합니다.
참고: 속성에 대한 세터 함수 repeatRate.
repeatRate()도 참조하세요 .
© 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.