QWaylandKeyboard Class
QWaylandKeyboard クラスは、キーボードデバイスを表します。詳細...
| ヘッダー: | #include <QWaylandKeyboard> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| 継承元: | QWaylandObject |
プロパティ
- repeatDelay : quint32
- repeatRate : quint32
パブリック関数
| 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 におけるキーボードデバイスへのアクセスを提供します。これは、Wayland インターフェースの wl_keyboard に対応しています。
プロパティのドキュメント
repeatDelay : quint32
このプロパティは、キーリピートイベントが開始されるまでの遅延時間をミリ秒単位で指定します。
アクセス関数:
| quint32 | repeatDelay() const |
| void | setRepeatDelay(quint32 delay) |
通知信号:
| void | repeatDelayChanged(quint32 repeatDelay) |
repeatRate : quint32
このプロパティは、キーボードによってキーリピートイベントが生成される頻度を、1秒あたりの文字数で表したものです。
アクセス関数:
| quint32 | repeatRate() const |
| void | setRepeatRate(quint32 rate) |
通知信号:
| void | repeatRateChanged(quint32 repeatRate) |
メンバ関数のドキュメント
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
現在のリピート遅延を返します。
注: プロパティ repeatDelayのゲッター関数です 。
関連項目: setRepeatDelay()。
quint32 QWaylandKeyboard::repeatRate() const
現在のリピートレートを返します。
注: プロパティ `repeatRate`のゲッター 関数です。
関連項目: 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()も参照してください 。
© 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.