This class defines the elements that compose a key gesture, key values, and key modifiers.
More...
#include <kanzi/core.ui/input/input_manipulator.hpp>
This class defines the elements that compose a key gesture, key values, and key modifiers.
A key value is one of the LogicalKey values. A key modifier is a combination of KeyModifier enum values.
- Since
- Kanzi 3.9.0
kanzi::KeyGestureInfo::KeyGestureInfo |
( |
| ) |
|
|
explicitdefault |
Constructor.
- Parameters
-
key | The logical key of the key gesture. |
modifier | The key modifier of the key gesture. |
capsLockState | The Caps lock state of the key gesture. |
Constructor.
- Parameters
-
key | The logical key of the key gesture. |
capsLockState | The Caps lock state of the key gesture. |
Constructor.
- Parameters
-
key | The logical key of the key gesture. |
modifier | The key modifier of the key gesture. |
kanzi::KeyGestureInfo::KeyGestureInfo |
( |
LogicalKey |
key | ) |
|
|
inlineexplicit |
Constructor.
- Parameters
-
key | The logical key of the key gesture. |
void kanzi::KeyGestureInfo::grab |
( |
| ) |
|
|
inline |
Grabs the key gesture, increases the grab count by 1.
void kanzi::KeyGestureInfo::ungrab |
( |
| ) |
|
|
inline |
Resets the grab count of the key gesture.
bool kanzi::KeyGestureInfo::isGrabbed |
( |
| ) |
const |
|
inline |
Returns whether the key gesture is grabbed.
A key gesture is grabbed when its grab count is greater than 0.
- Returns
- If the key gesture is grabbed, returns true, otherwise false.
const KeyEvent* kanzi::KeyGestureInfo::grabbedKeyEvent |
The grabbed key event.
- Since
- Kanzi 3.9.8
size_t kanzi::KeyGestureInfo::repeatCount |
Holds the key press repetition count.
size_t kanzi::KeyGestureInfo::grabCount |
Holds the grab count of the key gesture.
Holds the required Caps Lock state for the key gesture.
bool kanzi::KeyGestureInfo::isCapsLockGrabbed |
Holds the Caps Lock state at the time Kanzi grabs the key gesture.
The documentation for this struct was generated from the following file: