Louvre
v2.13.0-1
C++ library for Wayland compositors
|
Keyboard modifiers event. More...
Classes | |
struct | Modifiers |
Keyboard modifiers. More... | |
Public Member Functions | |
LKeyboardModifiersEvent (const Modifiers &modifiers={0, 0, 0, 0}, UInt32 serial=LTime::nextSerial(), UInt32 ms=LTime::ms(), UInt64 us=LTime::us(), LInputDevice *device=nullptr) noexcept | |
Constructor for LKeyboardModifiersEvent. More... | |
void | setModifiers (const Modifiers &modifiers) noexcept |
Sets the keyboard modifiers for this event. More... | |
const Modifiers & | modifiers () const noexcept |
Gets the keyboard modifiers for this event. More... | |
Public Member Functions inherited from LInputEvent | |
void | setDevice (LInputDevice *device) noexcept |
Sets the input device that originated the event. More... | |
LInputDevice * | device () const noexcept |
Gets the input device that originated this event. More... | |
Public Member Functions inherited from LEvent | |
~LEvent () noexcept=default | |
Destructor. More... | |
Type | type () const noexcept |
Retrieves the type of the event. More... | |
Subtype | subtype () const noexcept |
Retrieves the subtype of the event. More... | |
void | setSerial (UInt32 serial) noexcept |
Sets the serial of the event. More... | |
UInt32 | serial () const noexcept |
Retrieves the serial of the event. More... | |
void | setMs (UInt32 ms) noexcept |
Sets the time the event was generated in milliseconds. More... | |
UInt32 | ms () const noexcept |
Retrieves the time the event was generated in milliseconds. More... | |
void | setUs (UInt32 us) noexcept |
Sets the time the event was generated in microseconds. More... | |
UInt64 | us () const noexcept |
Retrieves the time the event was generated in microseconds. More... | |
LEvent * | copy () const noexcept |
Creates a deep copy of the event. More... | |
Additional Inherited Members | |
Public Types inherited from LEvent | |
enum class | Type : UInt8 |
Defines the type of event. More... | |
enum class | Subtype : UInt8 |
Defines the subtype of event. More... | |
Keyboard modifiers event.
Keyboard modifiers events are automatically sent to client surfaces when they acquire keyboard focus.
struct Louvre::LKeyboardModifiersEvent::Modifiers |
Keyboard modifiers.
Class Members | ||
---|---|---|
UInt32 | depressed | Active modifiers when physically pressed. |
UInt32 | latched | Hooked modifiers that will be disabled after a non-modifier key is pressed. |
UInt32 | locked | Active modifiers until they are pressed again (e.g. the Shift key) |
UInt32 | group | Group the above states (use this value if the source of a modifier change is not of your interest) |
|
inlinenoexcept |
Constructor for LKeyboardModifiersEvent.
modifiers | The keyboard modifiers to be set. |
serial | The serial number of the event. |
ms | The millisecond timestamp of the event. |
us | The microsecond timestamp of the event. |
device | The input device that originated the event. |
|
inlinenoexcept |
Sets the keyboard modifiers for this event.
|
inlinenoexcept |
Gets the keyboard modifiers for this event.