The QWaylandKeyboard class represents a keyboard device. 更多...
| 头: | #include <QWaylandKeyboard> | 
| qmake: | QT += waylandcompositor | 
| Since: | Qt 5.8 | 
| 继承: | QWaylandObject | 
| QWaylandKeyboard (QWaylandSeat * seat , QObject * parent = nullptr) | |
| QWaylandCompositor * | compositor () const | 
| QWaylandSurface * | focus () const | 
| QWaylandClient * | focusClient () const | 
| uint | keyToScanCode (int qtKey ) 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 | focusChanged (QWaylandSurface * surface ) | 
| void | repeatDelayChanged (quint32 repeatDelay ) | 
| void | repeatRateChanged (quint32 repeatRate ) | 
| const QMetaObject | staticMetaObject | 
The QWaylandKeyboard class represents a keyboard device.
This class provides access to the keyboard device in a QWaylandSeat . It corresponds to the Wayland interface wl_keyboard.
访问函数:
| quint32 | repeatDelay () const | 
| void | setRepeatDelay (quint32 delay ) | 
通知程序信号:
| void | repeatDelayChanged (quint32 repeatDelay ) | 
访问函数:
| quint32 | repeatRate () const | 
| void | setRepeatRate (quint32 rate ) | 
通知程序信号:
| void | repeatRateChanged (quint32 repeatRate ) | 
构造 QWaylandKeyboard 为给定 seat and with the given parent .
Returns the compositor for this QWaylandKeyboard .
Returns the currently focused surface.
另请参阅 setFocus ().
[signal]
						
						
							void
						
						QWaylandKeyboard::
						
							focusChanged
						
						(
						
							
								QWaylandSurface
							
						
						*
						
							surface
						
						)
						
					Returns the client that currently has keyboard focus.
Returns the current repeat delay.
注意: getter 函数对于特性 repeatDelay .
另请参阅 setRepeatDelay ().
Returns the current repeat rate.
注意: getter 函数对于特性 repeatRate .
另请参阅 setRepeatRate ().
Returns the seat for this QWaylandKeyboard .
[虚拟]
						
						
							void
						
						QWaylandKeyboard::
						
							sendKeyModifiers
						
						(
						
							
								QWaylandClient
							
						
						*
						
							client
						
						,
						
							uint32_t
						
						
							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 ().
Sets the repeat delay to delay .
注意: setter 函数对于特性 repeatDelay .
另请参阅 repeatDelay ().
Sets the repeat rate to rate .
注意: setter 函数对于特性 repeatRate .
另请参阅 repeatRate ().