The text input key gesture. More...
#include <kanzi/core.ui/input/text_input_manipulator.hpp>
Public Types | |
using | KeyGestureFunction |
Type of the function associated to a key gesture. | |
Public Member Functions | |
void | cancel (TextInputManipulator &manipulator) |
Activates the function associated to the key-cancel gesture. | |
void | press (TextInputManipulator &manipulator) |
Activates the function associated to the key-press gesture. | |
void | release (TextInputManipulator &manipulator) |
Activates the function associated to the key-release gesture. | |
TextInputGesture (LogicalKey key, KeyModifier modifier, KeyGestureFunction onPressed, KeyGestureFunction onReleased, KeyGestureFunction onCanceled, bool allowedOnReadOnly) | |
Constructor. | |
Public Member Functions inherited from kanzi::KeyGestureInfo | |
void | grab () |
Grabs the key gesture, increases the grab count by 1. | |
bool | isGrabbed () const |
Returns whether the key gesture is grabbed. | |
KeyGestureInfo ()=default | |
Default constructor. | |
KeyGestureInfo (LogicalKey key) | |
Constructor. | |
KeyGestureInfo (LogicalKey key, CapsLockState capsLockState) | |
Constructor. | |
KeyGestureInfo (LogicalKey key, KeyModifier modifier) | |
Constructor. | |
KeyGestureInfo (LogicalKey key, KeyModifier modifier, CapsLockState capsLockState) | |
Constructor. | |
void | ungrab () |
Resets the grab count of the key gesture. | |
Public Attributes | |
const bool | allowedOnReadOnly |
Indicates whether a gesture is available on read-only Text Box nodes. | |
KeyGestureFunction | onCancel |
Kanzi calls this method when the user cancels a key gesture. | |
KeyGestureFunction | onPress |
Kanzi calls this method when it detects the key-pressed gesture. | |
KeyGestureFunction | onRelease |
Kanzi calls this method when it detects the key-released gesture. | |
Public Attributes inherited from kanzi::KeyGestureInfo | |
CapsLockState | capsLockState |
Holds the required Caps Lock state for the key gesture. | |
const KeyEvent * | grabbedKeyEvent |
The grabbed key event. | |
size_t | grabCount |
Holds the grab count of the key gesture. | |
bool | isCapsLockGrabbed |
Holds the Caps Lock state at the time Kanzi grabs the key gesture. | |
LogicalKey | key |
The logical key value. | |
KeyModifier | modifier |
The key modifier. | |
size_t | repeatCount |
Holds the key press repetition count. | |
The text input key gesture.
Type of the function associated to a key gesture.
|
inlineexplicit |
Constructor.
|
inline |
Activates the function associated to the key-press gesture.
|
inline |
Activates the function associated to the key-release gesture.
|
inline |
Activates the function associated to the key-cancel gesture.
KeyGestureFunction kanzi::TextInputGesture::onPress |
Kanzi calls this method when it detects the key-pressed gesture.
KeyGestureFunction kanzi::TextInputGesture::onRelease |
Kanzi calls this method when it detects the key-released gesture.
KeyGestureFunction kanzi::TextInputGesture::onCancel |
Kanzi calls this method when the user cancels a key gesture.
Indicates whether a gesture is available on read-only Text Box nodes.