This class defines the key gesture composing elements, key values, and key modifiers.
More...
#include <kanzi/core.ui/input/key_input_concept.hpp>
This class defines the key gesture composing elements, key values, and key modifiers.
A key value is one of the LogicalKey values, while a key modifier is a combination of KeyModifier enum values.
Use the KeyInputConceptImpl template class to create key gesture handler manipulators.
- Since
- Kanzi 3.8.0
| kanzi::KeyInputConcept::KeyInputConcept |
( |
| ) |
|
|
explicitdefault |
| kanzi::KeyInputConcept::KeyInputConcept |
( |
LogicalKey |
key | ) |
|
|
explicit |
| virtual kanzi::KeyInputConcept::~KeyInputConcept |
( |
| ) |
|
|
virtualdefault |
Sets the key gesture composing elements to handle.
- Parameters
-
| key | The logical key value to handle. |
| modifiers | The key modifiers to handle. If no modifier is required, pass KeyModifier::Undefined. |
| void kanzi::KeyInputConcept::setKey |
( |
LogicalKey |
key | ) |
|
|
inline |
Sets the key gesture composed of a logical key value with no key modifier.
Override of the setKey() function.
- Parameters
-
| key | The logical key value to handle. |
| void kanzi::KeyInputConcept::setCapsLock |
( |
CapsLockState |
capsLock | ) |
|
|
inline |
Sets the required Caps Lock state for the key gesture.
- Parameters
-
| capsLock | The state that is required for the key gesture. |
- Since
- Kanzi 3.9.0
Returns the required Caps Lock state for the key gesture.
- Since
- Kanzi 3.9.0
Returns the composing elements of a key gesture.
- Returns
- A pair containing the logical key as the first, and the key modifiers as the second field.
| bool kanzi::KeyInputConcept::isGrabbed |
( |
| ) |
const |
|
inline |
Returns the grabbed state of a key gesture.
- Returns
- If the key gesture is grabbed, returns true, otherwise false.
| void kanzi::KeyInputConcept::setGrabbed |
( |
bool |
grabbed | ) |
|
|
inline |
Sets the grabbed state of the key gesture.
- Parameters
-
| grabbed | The new grabbed state of the key gesture. |
- Since
- Kanzi 3.9.0
| bool kanzi::KeyInputConcept::isEnabled |
( |
| ) |
const |
|
inline |
Returns the enabled state of a key gesture.
- Returns
- If the key gesture is enabled, returns true, otherwise false.
- Since
- Kanzi 3.9.0
| void kanzi::KeyInputConcept::setEnabled |
( |
bool |
enabled | ) |
|
|
inline |
Sets the enabled state of the key gesture.
- Parameters
-
| enabled | The new enabled state of the key gesture. |
- Since
- Kanzi 3.9.0
| bool kanzi::KeyInputConcept::isCapsLockGrabbed |
( |
| ) |
const |
|
inline |
Returns whether the Caps Lock mode was on when the gesture detector set this key gesture as grabbed.
- Returns
- If the Caps Lock mode was on when the gesture detector set this key gesture as grabbed, returns true, otherwise false.
- Since
- Kanzi 3.9.0
| void kanzi::KeyInputConcept::setCapsLockGrabbed |
( |
bool |
capsLock | ) |
|
|
inline |
Sets whether the Caps Lock mode of the keyboard is on at the time Kanzi grabs the key gesture.
- Parameters
-
| capsLock | Whether the Caps Lock mode is on at the time Kanzi grabs the key gesture. |
- Since
- Kanzi 3.9.0
Holds the required Caps Lock state for the key gesture.
| bool kanzi::KeyInputConcept::m_isGrabbed |
|
protected |
Holds the grabbed state of a gesture.
| bool kanzi::KeyInputConcept::m_isEnabled |
|
protected |
Holds the enabled state of a gesture.
| bool kanzi::KeyInputConcept::m_capsLock |
|
protected |
Holds the Caps Lock state at the time Kanzi grabs the key gesture.
The documentation for this class was generated from the following file: