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
◆ KeyGestureInfo() [1/5]
kanzi::KeyGestureInfo::KeyGestureInfo |
( |
| ) |
|
|
explicitdefault |
◆ KeyGestureInfo() [2/5]
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. |
◆ KeyGestureInfo() [3/5]
Constructor.
- Parameters
-
key | The logical key of the key gesture. |
capsLockState | The Caps lock state of the key gesture. |
◆ KeyGestureInfo() [4/5]
Constructor.
- Parameters
-
key | The logical key of the key gesture. |
modifier | The key modifier of the key gesture. |
◆ KeyGestureInfo() [5/5]
kanzi::KeyGestureInfo::KeyGestureInfo |
( |
LogicalKey |
key | ) |
|
|
inlineexplicit |
Constructor.
- Parameters
-
key | The logical key of the key gesture. |
◆ grab()
void kanzi::KeyGestureInfo::grab |
( |
| ) |
|
|
inline |
Grabs the key gesture, increases the grab count by 1.
◆ ungrab()
void kanzi::KeyGestureInfo::ungrab |
( |
| ) |
|
|
inline |
Resets the grab count of the key gesture.
◆ isGrabbed()
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.
◆ repeatCount
size_t kanzi::KeyGestureInfo::repeatCount |
Holds the key press repetition count.
◆ grabCount
size_t kanzi::KeyGestureInfo::grabCount |
Holds the grab count of the key gesture.
◆ key
◆ modifier
◆ capsLockState
Holds the required Caps Lock state for the key gesture.
◆ isCapsLockGrabbed
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: