QWaylandKeyboard Class

The QWaylandKeyboard class represents a keyboard device. 更多...

頭: #include <QWaylandKeyboard>
qmake: QT += waylandcompositor
Since: Qt 5.8
繼承: QWaylandObject

該類在 Qt 5.8 引入。

公共函數

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.

成員函數文檔編製

QWaylandKeyboard:: QWaylandKeyboard ( QWaylandSeat * seat , QObject * parent = nullptr)

Constructs a QWaylandKeyboard for the given seat 和采用給定 parent .

QWaylandCompositor *QWaylandKeyboard:: compositor () const

Returns the compositor for this QWaylandKeyboard .

QWaylandSurface *QWaylandKeyboard:: focus () const

Returns the currently focused surface.

另請參閱 setFocus ().

QWaylandClient *QWaylandKeyboard:: focusClient () const

Returns the client that currently has keyboard focus.

quint32 QWaylandKeyboard:: repeatDelay () const

Returns the current repeat delay.

注意: Getter function for property repeatDelay.

另請參閱 setRepeatDelay ().

quint32 QWaylandKeyboard:: repeatRate () const

Returns the current repeat rate.

注意: Getter function for property repeatRate.

另請參閱 setRepeatRate ().

QWaylandSeat *QWaylandKeyboard:: seat () const

Returns the seat for this QWaylandKeyboard .

[虛擬] void QWaylandKeyboard:: sendKeyModifiers ( QWaylandClient * client , uint32_t serial )

Sends the current key modifiers to client 采用給定 serial .

[虛擬] void QWaylandKeyboard:: sendKeyPressEvent ( uint code )

Sends a key press event with the key code to the current keyboard focus.

[虛擬] void QWaylandKeyboard:: sendKeyReleaseEvent ( uint code )

Sends a key release event with the key code to the current keyboard focus.

[虛擬] void QWaylandKeyboard:: setFocus ( QWaylandSurface * surface )

Sets the current focus to surface .

另請參閱 focus ().

void QWaylandKeyboard:: setRepeatDelay ( quint32 delay )

Sets the repeat delay to delay .

注意: setter 函數對於特性 repeatDelay .

另請參閱 repeatDelay ().

void QWaylandKeyboard:: setRepeatRate ( quint32 rate )

Sets the repeat rate to rate .

注意: setter 函數對於特性 repeatRate .

另請參閱 repeatRate ().