The QWaylandKeyboard class represents a keyboard device. More...
Header: | #include <QWaylandKeyboard> |
CMake: | find_package(Qt6 COMPONENTS Waylandcompositor REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::Waylandcompositor) |
qmake: | QT += waylandcompositor |
Since: | Qt 5.8 |
Inherits: | 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) |
This class provides access to the keyboard device in a QWaylandSeat. It corresponds to the Wayland interface wl_keyboard.
Constructs a QWaylandKeyboard for the given seat and with the given parent.
Returns the compositor for this QWaylandKeyboard.
Returns the currently focused surface.
See also setFocus().
Returns the client that currently has keyboard focus.
Returns the current repeat delay.
Note: Getter function for property repeatDelay.
See also setRepeatDelay().
Returns the current repeat rate.
Note: Getter function for property repeatRate.
See also setRepeatRate().
Returns the seat for this QWaylandKeyboard.
[virtual]
void QWaylandKeyboard::sendKeyModifiers(QWaylandClient *client, uint32_t serial)
Sends the current key modifiers to client with the given serial.
[virtual]
void QWaylandKeyboard::sendKeyPressEvent(uint code)
Sends a key press event with the key code to the current keyboard focus.
[virtual]
void QWaylandKeyboard::sendKeyReleaseEvent(uint code)
Sends a key release event with the key code to the current keyboard focus.
[virtual]
void QWaylandKeyboard::setFocus(QWaylandSurface *surface)
Sets the current focus to surface.
See also focus().
Sets the repeat delay to delay.
Note: Setter function for property repeatDelay.
See also repeatDelay().
Sets the repeat rate to rate.
Note: Setter function for property repeatRate.
See also repeatRate().
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qwaylandkeyboard.html