KWin
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
KWin::KeyboardInterface Class Reference

Resource for the wl_keyboard interface. More...

#include <keyboard.h>

Inheritance diagram for KWin::KeyboardInterface:

Public Member Functions

 ~KeyboardInterface () override
 
SurfaceInterfacefocusedSurface () const
 
qint32 keyRepeatRate () const
 
qint32 keyRepeatDelay () const
 
void setKeymap (const QByteArray &content)
 
void setRepeatInfo (qint32 charactersPerSecond, qint32 delay)
 
void sendKey (quint32 key, KeyboardKeyState state)
 
void sendKey (quint32 key, KeyboardKeyState state, ClientConnection *client)
 
void sendModifiers (quint32 depressed, quint32 latched, quint32 locked, quint32 group)
 

Friends

class SeatInterface
 
class SeatInterfacePrivate
 
class KeyboardInterfacePrivate
 

Detailed Description

Resource for the wl_keyboard interface.

Definition at line 24 of file keyboard.h.

Constructor & Destructor Documentation

◆ ~KeyboardInterface()

KWin::KeyboardInterface::~KeyboardInterface ( )
overridedefault

Member Function Documentation

◆ focusedSurface()

SurfaceInterface * KWin::KeyboardInterface::focusedSurface ( ) const
Returns
the focused SurfaceInterface on this keyboard resource, if any.

Definition at line 252 of file keyboard.cpp.

◆ keyRepeatDelay()

qint32 KWin::KeyboardInterface::keyRepeatDelay ( ) const
Returns
The delay on key press before starting repeating keys

Definition at line 257 of file keyboard.cpp.

◆ keyRepeatRate()

qint32 KWin::KeyboardInterface::keyRepeatRate ( ) const
Returns
The key repeat in character per second

Definition at line 262 of file keyboard.cpp.

◆ sendKey() [1/2]

void KWin::KeyboardInterface::sendKey ( quint32 key,
KeyboardKeyState state )

Definition at line 194 of file keyboard.cpp.

◆ sendKey() [2/2]

void KWin::KeyboardInterface::sendKey ( quint32 key,
KeyboardKeyState state,
ClientConnection * client )

Definition at line 185 of file keyboard.cpp.

◆ sendModifiers()

void KWin::KeyboardInterface::sendModifiers ( quint32 depressed,
quint32 latched,
quint32 locked,
quint32 group )

Definition at line 207 of file keyboard.cpp.

◆ setKeymap()

void KWin::KeyboardInterface::setKeymap ( const QByteArray & content)

Definition at line 88 of file keyboard.cpp.

◆ setRepeatInfo()

void KWin::KeyboardInterface::setRepeatInfo ( qint32 charactersPerSecond,
qint32 delay )

Sets the key repeat information to be forwarded to all bound keyboards.

To disable key repeat set a charactersPerSecond of 0.

Requires wl_seat version 4.

Parameters
charactersPerSecondThe characters per second rate, value of 0 disables key repeating
delayThe delay on key press before starting repeating keys

Definition at line 240 of file keyboard.cpp.

Friends And Related Symbol Documentation

◆ KeyboardInterfacePrivate

friend class KeyboardInterfacePrivate
friend

Definition at line 66 of file keyboard.h.

◆ SeatInterface

friend class SeatInterface
friend

Definition at line 64 of file keyboard.h.

◆ SeatInterfacePrivate

friend class SeatInterfacePrivate
friend

Definition at line 65 of file keyboard.h.


The documentation for this class was generated from the following files: