The text input manipulator handles key gestures used with TextBox nodes to move the cursor, select text, and delete text, and provides the basics of text editing capabilities in Kanzi.
More...
|
void | activateInput () |
| Activates the input on an input manipulator. More...
|
|
void | deactivateInput () |
| Deactivates the input on an input manipulator. More...
|
|
void | ensureInputMethodsAvailable () |
| Ensures that the connected input methods are available. More...
|
|
TextKeyNavigationDirection | getTextKeyNavigationDirection () const |
| Returns the direction of key navigation. More...
|
|
void | setEchoMode (EchoMode echoMode) |
| Sets the echo mode to use to format the display text of the text buffer of the input manipulator. More...
|
|
void | setInputLayout (TextInputLayout &layout) |
|
void | setInputMethodAction (InputMethodAction action) |
| Sets the input method action of the text input methods. More...
|
|
void | setInputType (InputType inputType) |
| Sets the input type of the input methods. More...
|
|
void | setPasswordMaskingCharacter (string_view passwordMask) |
| Sets the password masking character of the text buffer of the input manipulator. More...
|
|
void | setReadOnly (bool readOnly) |
| Sets whether the user input can modify the text of a TextInputManipulator. More...
|
|
void | setTextKeyNavigationDirection (TextKeyNavigationDirection direction) |
| Sets the direction of key navigation. More...
|
|
|
size_t | getMaximumTextLength () const |
| Returns the maximum text buffer length constraint. More...
|
|
void | setMaximumTextLength (size_t maxLength) |
| Sets the maximum text length constraint. More...
|
|
void | setText (string_view text) |
| Sets the UTF-8 text. More...
|
|
void | insertText (size_t position, string_view text) |
| Moves the cursor to a given position and inserts text to that position. More...
|
|
void | deleteText (size_t begin, size_t end) |
| Moves the cursor to position begin and erases from a text buffer UTF-8 characters between positions begin and end. More...
|
|
void | deleteAtCursor () |
| Deletes a character using delete. More...
|
|
void | backspaceAtCursor () |
| Deletes a character using backspace. More...
|
|
void | deleteWordAtCursor () |
| Deletes the characters between the cursor position and the word boundary that follows the cursor. More...
|
|
void | backspaceWordAtCursor () |
| Deletes the characters between the cursor position and the closest word boundary using backspace. More...
|
|
|
size_t | getCursorPosition () const |
| Returns the position of the cursor. More...
|
|
void | setCursorPosition (size_t position) |
| Sets the position of the cursor in the text buffer of a TextInputConcept. More...
|
|
void | moveCursorForward (size_t characterCount) |
| Moves the cursor forward by a given number of characters in the text buffer of a TextInputConcept. More...
|
|
void | moveCursorForward () |
| Moves the cursor forward by one character. More...
|
|
void | moveCursorBackward (size_t characterCount) |
| Moves the cursor backward by a given number of characters in the text buffer of a TextInputConcept. More...
|
|
void | moveCursorBackward () |
| Moves the cursor backward by one character. More...
|
|
void | moveCursorToEnd () |
| Moves the cursor to the end of the text buffer of a TextInputConcept. More...
|
|
void | moveCursorHome () |
| Moves the cursor to the beginning of the text buffer of a TextInputConcept. More...
|
|
void | moveCursorToNextWord () |
| Moves the cursor to the next word. More...
|
|
void | moveCursorToPreviousWord () |
| Moves the cursor to the previous word. More...
|
|
|
bool | hasSelection () const |
| Checks whether any text is selected. More...
|
|
void | selectText (size_t start, size_t end) |
| Selects the text between the given start and end positions. More...
|
|
size_t | getSelectionStart () const |
| Returns the starting point of the selected text. More...
|
|
void | setSelectionStart (size_t position) |
| Sets the start of the text selection at the position given as argument. More...
|
|
size_t | getSelectionEnd () const |
| Returns the ending point of the selected text. More...
|
|
void | setSelectionEnd (size_t position) |
| Sets the end of the text selection at the position given as argument. More...
|
|
void | clearSelection () |
| Clears the text selection. More...
|
|
void | selectAll () |
| Selects all content in a Text Box node. More...
|
|
void | moveSelectionStartForward (size_t characterCount) |
| Moves the start of text selection forward by a given characterCount in the text buffer of a Text Box node. More...
|
|
void | moveSelectionStartBackward (size_t characterCount) |
| Moves the end of text selection a given characterCount backward in the text buffer of a Text Box node. More...
|
|
void | moveSelectionEndForward (size_t characterCount) |
| Moves the end of text selection a given characterCount forward in the text buffer of a Text Box node. More...
|
|
void | moveSelectionEndBackward (size_t characterCount) |
| Moves the end of text selection a given characterCount backward in the text buffer of a Text Box node. More...
|
|
void | moveSelectionStartForward () |
| Moves the start of the text selection forward by one character. More...
|
|
void | moveSelectionStartBackward () |
| Moves the start of the text selection backward by one character. More...
|
|
void | moveSelectionEndForward () |
| Moves the end of the text selection forward by one character. More...
|
|
void | moveSelectionEndBackward () |
| Moves the end of the text selection backward by one character. More...
|
|
void | moveSelectionStartToNextWord () |
| Moves the start of the text selection forward to the next word. More...
|
|
void | moveSelectionStartToPreviousWord () |
| Moves the start of the text selection backward to the previous word. More...
|
|
void | moveSelectionEndToNextWord () |
| Moves the end of the text selection forward to the next word. More...
|
|
void | moveSelectionEndToPreviousWord () |
| Moves the end of the text selection backward to the previous word. More...
|
|
|
Kanzi provides text selection methods that automatically choose the text selection endpoint to update.
When you select text in a Text Box node by double-tapping or by calling the selectText() or selectTextAtCursor() methods, the active selection endpoint is set to the selection end position. When you modify the selection using the methods listed below, the selection end position changes. When you modify the selection end position, and that passes over the selection start position, Kanzi makes the selection start position the active selection endpoint. Kanzi continues to update the selection start position until the selection start position passes over the selection end position, at which point Kanzi makes the active selection endpoint the selection end position.
|
void | moveSelectionEndpointBackward (size_t steps) |
| Moves the endpoint of the active text selection backward with steps passed as argument. More...
|
|
void | moveSelectionEndpointBackward () |
| Overload of moveSelectionEndpointBackward(), moves the endpoint of the active text selection one step backward. More...
|
|
void | moveSelectionEndpointForward (size_t steps) |
| Moves the endpoint of the active text selection forward by steps passed as argument. More...
|
|
void | moveSelectionEndpointForward () |
| Overload of moveSelectionEndpointForward(), moves the endpoint of the active text selection one step forward. More...
|
|
void | moveSelectionEndpointToPreviousWord () |
| Moves the endpoint of the active text selection backward to the previous word boundary. More...
|
|
void | moveSelectionEndpointToNextWord () |
| Moves the endpoint of the active text selection forward to the previous word boundary. More...
|
|
void | moveSelectionEndpointToFront () |
| Moves the active selection end-point to the beginning of the text string. More...
|
|
void | moveSelectionEndpointToBack () |
| Moves the endpoint of the active text selection to the end of the text string. More...
|
|
void | attach (Node &node) |
| Attaches an input manipulator to a node. More...
|
|
void | cancel () |
| Notify manipulator of touch canceling. More...
|
|
void | detach () |
| Detaches an input manipulator. More...
|
|
Node * | getAttachedNode () const |
| Gets the node to which the input manipulator is attached. More...
|
|
InputManipulator * | getDependantManipulator () const |
| Gets the dependant input manipulator. More...
|
|
EventRoutingMode | getEventRoutingMode () |
| Returns the current input event routing mode. More...
|
|
InputManipulatorWeakPtr | getFailManipulator () const |
| Gets the fail manipulator. More...
|
|
State | getState () const |
| Get the state of an input manipulator. More...
|
|
KZ_DEPRECATED TouchEventRoutingMode | getTouchEventRoutingMode () |
| Returns the current touch event routing mode. More...
|
|
ManipulatorType | getType () const |
| Returns the type of the input manipulator. More...
|
|
bool | isActive () const |
| Checks whether an input manipulator is in active state. More...
|
|
bool | isAttached () const |
| Tells whether the input manipulator is attached to a node. More...
|
|
bool | isCancelable () const |
| Returns whether an input manipulator is in a cancelable state. More...
|
|
bool | isResettable () const |
| Returns whether an input manipulator is in a resettable state. More...
|
|
void | requireToFail (InputManipulatorWeakPtr manipulatorToFail) |
| Sets the input manipulator that must fail before Kanzi can recognize this input manipulator. More...
|
|
void | reset () |
| Reset the manipulator. More...
|
|
void | setEventRoutingMode (EventRoutingMode mode) |
| Sets the input event routing mode that you want the input manager to use when distributing the input event data to manipulators. More...
|
|
void | setReferenceNode (NodeWeakPtr referenceNode) |
| Override the attached node as the hit test reference node. More...
|
|
void | setState (State state) |
| Set the state of an input manipulator. More...
|
|
KZ_DEPRECATED void | setTouchEventRoutingMode (TouchEventRoutingMode mode) |
| Sets the touch event routing mode that you want the input manager to use when distributing the touch points to input manipulators. More...
|
|
| ~InputManipulator () override |
| Destructor. More...
|
|
AppliedStyleEntrySharedPtr | applyObjectStyle (kanzi::StyleSharedPtr style) |
| Applies a style to an object. More...
|
|
void | applyObjectStyles () |
| Apply all styles for an object node. More...
|
|
Domain * | getDomain () const |
| Returns the domain the object belongs to. More...
|
|
const Metaclass * | getDynamicMetaclass () const override |
| Returns the metaclass of the dynamic type of the object. More...
|
|
MainLoopScheduler * | getMainLoopScheduler () const |
| Returns the MainLoopScheduler instance of the associated Domain. More...
|
|
detail::MessageDispatcher * | getMessageDispatcher () const |
| Returns the message dispatcher of the object. More...
|
|
ResourceManager * | getResourceManager () const |
| Returns the resource manager of the object. More...
|
|
ScriptingContextSharedPtr | getScriptingContext () const |
| Gets the scripting context of the object. More...
|
|
| Object (Domain *domain) |
|
void | setScriptingContext (ScriptingContextSharedPtr context) |
| Sets the scripting context of the object. More...
|
|
void | unapplyObjectStyle (AppliedStyleEntrySharedPtr appliedStyleEntry) |
|
void | unapplyObjectStyles () |
| Unapplies and removes all applied styles. More...
|
|
| ~Object () override |
|
bool | isTypeOf (const Metaclass *objectType) const |
| Determines if the type of this object is the given type or derived from it. More...
|
|
virtual | ~MetaObject () |
|
template<typename DataType > |
void | addPropertyModifier (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::ModifierCallback callback, void *owner) |
|
template<typename DataType > |
void | addPropertyNotificationHandler (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::NotificationCallback callback, void *owner) |
|
template<typename DataType > |
void | addPropertyValueSource (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::TypedValueSource *valueSource, PropertyValuePrecedence precedence, void *ownerPointer) |
|
template<typename DataType > |
void | addPropertyValueSource (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::TypedValueSource *valueSource, PropertyValuePrecedence precedence, AbstractPropertyTypeDescriptor::ValueSourceOwner *owner) |
|
PropertyStorageContainer::iterator | beginPropertyStorage () |
| Returns the begin iterator to the internal property storage container. More...
|
|
PropertyStorageContainer::const_iterator | beginPropertyStorage () const |
| Returns the begin iterator to the internal property storage container. More...
|
|
void | clearPropertyFlag (AbstractPropertyType propertyType, uint32_t flag) |
|
void | copyLocalValue (const PropertyObject &other, AbstractPropertyType propertyType) |
| Copies local value of single property from another object. More...
|
|
void | copyLocalValues (const PropertyObject &other) |
| Copies all local values from another object. More...
|
|
PropertyStorageContainer::iterator | endPropertyStorage () |
| Returns the end iterator to the internal property storage container. More...
|
|
PropertyStorageContainer::const_iterator | endPropertyStorage () const |
| Returns the end iterator to the internal property storage container. More...
|
|
template<typename DataType > |
PropertyType< DataType >::Traits::ReturnType | getAbstractProperty (AbstractPropertyType abstractPropertyType) const |
|
template<typename DataType > |
PropertyType< DataType >::Traits::ReturnType | getAbstractPropertyBase (AbstractPropertyType abstractPropertyType) const |
|
template<typename DataType > |
optional< typename PropertyType< DataType >::Traits::ReturnType > | getOptionalAbstractProperty (AbstractPropertyType abstractPropertyType) const |
|
template<typename DataType > |
optional< typename PropertyType< DataType >::Traits::ReturnType > | getOptionalProperty (const PropertyType< DataType > &propertyType) const |
| Evaluates the property value in the same way as the overload above but does not default to the value in property metadata if there are no inputs to the property value. More...
|
|
template<typename DataType > |
optional< typename PropertyType< DataType >::Traits::ReturnType > | getOptionalPropertyBase (const PropertyType< DataType > &propertyType) const |
| Returns the current value of a property disregarding modifiers, but does not default to the value in property metadata if there are no inputs to the property value. More...
|
|
template<typename DataType > |
PropertyType< DataType >::Traits::ReturnType | getProperty (const PropertyType< DataType > &propertyType) const |
| Returns the current value of a property type. More...
|
|
template<typename DataType > |
PropertyType< DataType >::Traits::ReturnType | getPropertyBase (const PropertyType< DataType > &propertyType) const |
| Returns the current value of a property disregarding modifiers. More...
|
|
template<typename DataType > |
size_t | getPropertyNotificationHandlerCount (const PropertyType< DataType > &propertyType) const |
| Gets number of current notification handlers for given property type. More...
|
|
bool | hasBaseValue (AbstractPropertyType propertyType) const |
| Evaluates whether there are any inputs into the property value, disregarding modifiers. More...
|
|
bool | hasLocalValue (AbstractPropertyType propertyType) const |
| Evaluates whether there is a local value set for the property. More...
|
|
bool | hasNonClassValue (AbstractPropertyType propertyType) const |
| Evaluates whether there is a value of any precedence higher than class default value set for the property. More...
|
|
bool | hasValue (AbstractPropertyType propertyType) const |
| Evaluates whether there are any inputs into the property value. More...
|
|
bool | isPropertyFlagSet (AbstractPropertyType propertyType, uint32_t flag) const |
|
virtual void | onPropertyChanged (AbstractPropertyType propertyType, PropertyNotificationReason reason) |
| Virtual function to handle property change notifications. More...
|
|
| PropertyObject () |
|
void | removeKzbProperties (flat_set< AbstractPropertyType > *keepProperties) |
| Remove all KZB properties that are not included in a given set. More...
|
|
void | removeKzbProperties () |
| Remove all KZB properties. More...
|
|
template<typename DataType > |
void | removeLocalPropertyValueSource (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::TypedValueSource *valueSource, void *ownerPointer) |
|
void | removeLocalValue (AbstractPropertyType propertyType) |
| Removes the local value associated with the property. More...
|
|
template<typename DataType > |
void | removePropertyModifier (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::ModifierCallback callback, void *owner) |
|
template<typename DataType > |
void | removePropertyNotificationHandler (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::NotificationCallback callback, void *owner) |
|
template<typename DataType > |
void | removePropertyValueSource (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::TypedValueSource *valueSource, void *ownerPointer) |
|
template<typename DataType > |
void | setAbstractProperty (AbstractPropertyType abstractPropertyType, typename PropertyType< DataType >::Traits::ParameterType value) |
|
template<typename DataType > |
void | setProperty (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Traits::ParameterType value) |
| Sets the local value of a property type. More...
|
|
void | setPropertyFlag (AbstractPropertyType propertyType, uint32_t flag) |
|
void | validatePropertyModifiers (AbstractPropertyType propertyType) |
|
virtual | ~PropertyObject () |
|
void | cancelTextComposition () |
| Tells the input method, which provides the text composition, to cancel the text composition. More...
|
|
void | commitCompositionText () |
| Commits the composition text. More...
|
|
bool | isComposingText () const |
| Returns the text composition state of the input method listener. More...
|
|
bool | isInputMethodAvailable (InputMethod &source) const |
| Returns whether the input method is available. More...
|
|
void | onCompositionTextCommitted (InputMethod &source) |
| The input method source tells the input method listener to add the composition text received by previous calls of onCompositionTextUpdated() into the cached text. More...
|
|
void | onCompositionTextUpdated (InputMethod &source, string_view text) |
| The input method source tells the input method listener to update the composition text. More...
|
|
void | onCursorMoved (InputMethod &source, size_t position) |
| The input method source tells the input method listener to update the cursor position. More...
|
|
void | onExecuteInputMethodAction (InputMethod &source) |
| The input method source tells the input method listener to execute the input method action. More...
|
|
void | onInputMethodAvailable (InputMethod &source, bool available) |
| The input method source informs its active input method listener about the available state. More...
|
|
bool | onInputMethodDisconnected (InputMethod &source) |
| The input method source tells its active input method listener that it disconnected itself from the input method listener. More...
|
|
void | onInputTypeChanged (InputMethod &source, InputType inputType) |
| The input method source tells the input method listener to update its input type. More...
|
|
void | onSelectionChanged (InputMethod &source, size_t start, size_t end) |
| The input method source tells the input method listener to update the cursor positions at the start and end of the text selection. More...
|
|
void | onTextAdded (InputMethod &source, size_t position, string_view text) |
| The input method source tells the input method listener to add a text to its cached text. More...
|
|
void | onTextChanged (InputMethod &source, string_view text) |
| The input method source tells the input method listener to replace its cached text with the content passed in the text argument. More...
|
|
void | onTextCompositionCanceled (InputMethod &source) |
| The input method source tells the input method listener to cancel the text composition, and remove the composition text from the content. More...
|
|
void | onTextCompositionStarted (InputMethod &source) |
| The input method source tells the input method listener to enter the text composition state at the current cursor position. More...
|
|
void | onTextDeleted (InputMethod &source, size_t start, size_t end) |
| The input method source tells the input method listener to remove the text between the start and end positions. More...
|
|
virtual | ~InputMethodListener () |
| Destructor. More...
|
|
const TextEditBuffer & | getText () const |
| Returns the text buffer that holds edited UTF-8 content. More...
|
|
InputType | getInputType () const |
| Returns the input type used by the text input methods. More...
|
|
InputMethodAction | getInputMethodAction () const |
| Returns the input method action of the text input methods. More...
|
|
bool | isReadOnly () const |
| Returns whether the text of the TextEditBuffer of an InputMethodListener is unaffected by user input. More...
|
|
|
void | handleControlLeftArrowGesture () |
| Handles the Control + Left Arrow key gesture. More...
|
|
void | handleControlRightArrowGesture () |
| Handles the Control + Right Arrow key gesture. More...
|
|
void | handleLeftArrowGesture () |
| Handles the Left Arrow key gesture. More...
|
|
void | handleRightArrowGesture () |
| Handles the Right Arrow key gesture. More...
|
|
void | handleShiftControlLeftArrowGesture () |
| Handles the Shift + Control + Left Arrow key gesture. More...
|
|
void | handleShiftControlRightArrowGesture () |
| Handles the Shift + Control + Right Arrow key gesture. More...
|
|
void | handleShiftLeftArrowGesture () |
| Handles the Shift + Left Arrow key gesture. More...
|
|
void | handleShiftRightArrowGesture () |
| Handles the Shift + Right Arrow key gesture. More...
|
|
bool | moveCursorTo (size_t position) |
| Moves the cursor to the position given as argument. More...
|
|
void | notifyCursorMoved () |
| Dispatches a CursorMovedMessage to the attached node. More...
|
|
void | notifyInputTypeChanged () |
| Dispatches an InputTypeChangedMessage to the attached node. More...
|
|
bool | notifyKeyInput (const KeyEvent &event) override |
| Overrides InputManipulator::notifyKeyInput(). More...
|
|
void | notifyReadOnlyStateChanged () |
| Dispatches a ReadOnlyStateChangedMessage to the attached node. More...
|
|
void | notifySelectionChanged () |
| Dispatches a SelectionChangedMessage to the attached node. More...
|
|
void | notifyTextChanged () |
| Dispatches a TextChangedMessage to the attached node. More...
|
|
void | onCancel () override |
| Overrides InputManipulator::onCancel(). More...
|
|
bool | onCompositionTextCommitedOverride (InputMethod &source) override |
| Overrides InputMethodListener::onCompositionTextCommitedOverride. More...
|
|
bool | onCompositionTextUpdatedOverride (InputMethod &source, string_view text) override |
| Overrides InputMethodListener::onCompositionTextUpdatedOverride. More...
|
|
bool | onCursorMovedOverride (InputMethod &source, size_t position) override |
| Overrides InputMethodListener::onCursorMovedOverride. More...
|
|
void | onExecuteInputMethodActionOverride (InputMethod &) override |
| Overrides InputMethodListener::onExecuteInputMethodActionOverride. More...
|
|
void | onInputMethodAvailableOverride (InputMethod &source, bool available) override |
| Overrides InputMethodListener::onInputMethodAvailableOverride. More...
|
|
bool | onInputMethodDisconnectedOverride (InputMethod &source) override |
| Overrides InputMethodListener::onInputMethodDisconnectedOverride. More...
|
|
void | onInputTypeChangedOverride (InputMethod &source, InputType inputType) override |
| Overrides InputMethodListener::onInputTypeChangedOverride. More...
|
|
void | onKeyPressGesture (KeyGestureInfo &) override |
| Overrides InputManipulator::onKeyPressGesture(). More...
|
|
void | onKeyReleaseGesture (KeyGestureInfo &) override |
| Overrides InputManipulator::onKeyPressGesture(). More...
|
|
void | onPartialKeyPressGesture (KeyGestureInfo &) override |
| Overrides InputManipulator::onPartialKeyPressGesture(). More...
|
|
void | onReset () override |
| Overrides InputManipulator::onReset(). More...
|
|
bool | onSelectionChangedOverride (InputMethod &source, size_t start, size_t end) override |
| Overrides InputMethodListener::onSelectionChanged. More...
|
|
bool | onTextAddedOverride (InputMethod &source, size_t position, string_view text) override |
| Overrides InputMethodListener::onTextAddedOverride. More...
|
|
bool | onTextChangedOverride (InputMethod &source, string_view text) override |
| Overrides InputMethodListener::onTextChangedOverride. More...
|
|
void | onTextCompositionCanceledOverride (InputMethod &source) override |
| Overrides InputMethodListener::onTextCompositionCanceledOverride. More...
|
|
bool | onTextCompositionStartedOverride (InputMethod &source) override |
| Overrides InputMethodListener::onTextCompositionStartedOverride. More...
|
|
bool | onTextDeletedOverride (InputMethod &source, size_t start, size_t end) override |
| Overrides InputMethodListener::onTextDeletedOverride. More...
|
|
| TextInputManipulator (Domain *domain) |
| Constructor. More...
|
|
void | updateSelectionState () |
| Updates the state of text selection. More...
|
|
void | addHitTestArguments (MessageArguments &message, const TouchPoint &touchPoint) |
| Add hit test information arguments to the message from the touch point. More...
|
|
bool | detectKeyGesture (const KeyEvent &event, KeyGestureInfo &gesture) |
| Detects key gestures from the event that you pass as an argument. More...
|
|
Node2D * | findNearestParent2D () |
| Find the 2D manipulator node for this input manipulator. More...
|
|
InputManager * | getInputManager () const |
| Get the attached input manager of an input manipulator. More...
|
|
| InputManipulator (Domain *domain, ManipulatorType type=ManipulatorType::TouchInputHandler) |
| Constructor. More...
|
|
virtual bool | isCancelableOverride () const |
| Overridable check for the cancelable status of an input manipulator. More...
|
|
virtual bool | isResettableOverride () const |
| Overridable check for the resettable status of an input manipulator. More...
|
|
virtual void | notifyTouchInside (const TouchInfo &touchInfo) |
| Notify an input manipulator about touch events that occur inside the subtree of the input manipulator. More...
|
|
virtual void | notifyTouchOutside (const TouchInfo &touchInfo) |
| Notify an input manipulator about touch events that occur outside the subtree of the input manipulator. More...
|
|
virtual void | onAttach () |
| Attach function for input manipulators. More...
|
|
virtual void | onDetach () |
| Detach function for input manipulators. More...
|
|
virtual void | onFail () |
| Fail function for input manipulators. More...
|
|
void | initialize () |
|
void | onCopy (const Object &other) |
|
void | initialize () |
|
| MetaObject () |
|
AbstractPropertyTypeDescriptor::ValueSourceEntry * | acquireLocalValueSourceEntry (AbstractPropertyTypeDescriptor &descriptor, PropertyStoragePtr &propertyStorage) |
| Acquires a local value source entry that is free for the assignment of a value. More...
|
|
AbstractPropertyTypeDescriptor::ModifierStorage * | acquireModifierStorage (AbstractPropertyTypeDescriptor &descriptor, AbstractPropertyTypeDescriptor::PropertyStorage &propertyStorage) |
|
AbstractPropertyTypeDescriptor::NotificationStorage * | acquireNotificationStorage (AbstractPropertyTypeDescriptor &descriptor) |
|
PropertyStoragePtr | acquirePropertyStorage (AbstractPropertyTypeDescriptor &descriptor) |
|
void | addPropertyValueSource (AbstractPropertyTypeDescriptor &descriptor, AbstractPropertyTypeDescriptor::ValueSource *valueSource, PropertyValuePrecedence precedence, void *ownerPointer) |
| Internally adds a property value source. More...
|
|
void | addPropertyValueSource (AbstractPropertyTypeDescriptor &descriptor, AbstractPropertyTypeDescriptor::ValueSource *valueSource, PropertyValuePrecedence precedence, AbstractPropertyTypeDescriptor::ValueSourceOwner *owner) |
| Internally adds a property value source. More...
|
|
AbstractPropertyTypeDescriptor::ValueSourceEntry * | constructLocalValueSourceEntry (AbstractPropertyTypeDescriptor &descriptor, AbstractPropertyTypeDescriptor::PropertyStorage &propertyStorage) |
|
PropertyStoragePtr | constructPropertyStorage (AbstractPropertyTypeDescriptor &descriptor) |
|
void | copyLocalValue (const AbstractPropertyTypeDescriptor::PropertyStorage &otherPropertyStorage) |
| Copy local value from property storage. More...
|
|
AbstractPropertyTypeDescriptor::ModifierStorage * | findModifierStorage (AbstractPropertyTypeDescriptor &descriptor) |
|
AbstractPropertyTypeDescriptor::NotificationStorage * | findNotificationStorage (AbstractPropertyTypeDescriptor &descriptor) const |
|
AbstractPropertyTypeDescriptor::PropertyStorage * | findPropertyStorage (AbstractPropertyTypeDescriptor &descriptor) const |
| Gets the property storage for given property type descriptor. More...
|
|
PropertyStoragePtr | findPropertyStoragePtr (AbstractPropertyTypeDescriptor &descriptor) const |
| Gets property storage intrusive pointer which you can use to hold a reference until the end of the operation. More...
|
|
AbstractPropertyTypeDescriptor * | findPropertyTypeDescriptorByNameAndDataType (string_view name, PropertyDataType dataType) const |
| Finds a property type descriptor by name and data type. More...
|
|
AbstractPropertyTypeDescriptor * | findPropertyTypeDescriptorByQualifiedNameAndDataType (string_view qualifiedName, PropertyDataType dataType) const |
| Like findPropertyTypeDescriptorByNameAndDataType, but only searches by matching with qualified names. More...
|
|
AbstractPropertyTypeDescriptor * | findPropertyTypeDescriptorByUnqualifiedNameAndDataType (string_view unqualifiedName, PropertyDataType dataType) const |
| Like findPropertyTypeDescriptorByNameAndDataType, but only searches by matching with unqualified names. More...
|
|
AbstractPropertyTypeDescriptor::ValueSource * | getClassValueSource (AbstractPropertyTypeDescriptor &descriptor) const |
|
AbstractPropertyTypeDescriptor::ValueSource * | getFinalValueSource (AbstractPropertyTypeDescriptor &descriptor) const |
|
AbstractPropertyTypeDescriptor::ValueSource * | getNonClassValueSource (AbstractPropertyTypeDescriptor &descriptor) const |
|
AbstractPropertyTypeDescriptor::ValueSource * | getTopValueSource (AbstractPropertyTypeDescriptor &descriptor) const |
| Gets the top-level value source for a given property descriptor. More...
|
|
virtual void | notifyPropertyHandlers (PropertyStoragePtr &propertyStorage, PropertyNotificationReason reason) |
|
void | onCopy (const PropertyObject &other) |
|
void | removeLocalValue (AbstractPropertyTypeDescriptor &descriptor, PropertyStoragePtr &propertyStorage) |
| Removes a local value from the given property storage. More...
|
|
void | removePropertyValueSource (AbstractPropertyTypeDescriptor &descriptor, AbstractPropertyTypeDescriptor::ValueSource *valueSource, void *owner) |
| Removes a property value source. More...
|
|
void | validatePropertyModifiersAndNotifyHandlers (PropertyStoragePtr &propertyStorage) |
|
void | connectInputMethods (Node &attachedNode) |
| Connects the input methods to this listener. More...
|
|
void | disconnectInputMethods () |
| Disconnects the input methods from this listener. More...
|
|
| InputMethodListener (Domain *domain) |
| Constructor. More...
|
|
bool | isComposingText (InputMethod &inputMethod) const |
| Checks whether the inputMethod is in the text composition state. More...
|
|
template<typename Method , typename... Arguments> |
void | updateInputMethods (InputMethod *excludeInputMethod, Method method, const Arguments &... arguments) |
| Calls a method of each input method with the arguments passed. More...
|
|
The text input manipulator handles key gestures used with TextBox nodes to move the cursor, select text, and delete text, and provides the basics of text editing capabilities in Kanzi.
For example, you can enable the application user to:
- Insert, replace, and erase text.
- Manipulate the cursor.
- Select text.
To move the cursor in a TextBox node the text input manipulator uses the Left Arrow, Right Arrow, Home, and End navigation keys, and the Control key modifier.
To modify the text selection in a TextBox node the text input manipulator uses the Left Arrow, Right Arrow, Home, and End navigation keys, and the Control and Shift key modifiers.
The text input manipulator recognizes only one navigation key gesture at a time. When Kanzi recognizes a key-pressed gesture for a navigation key, the manipulator grabs the key input and blocks any key input until Kanzi recognizes the key-released gesture for the pressed navigation key.
When the user presses a navigation key, Kanzi dispatches a message dedicated to that navigation key. When the user holds down a key, Kanzi uses the key-hold and key-repeat gestures to create the text cursor or text selection cursor messages for each navigation key. To configure the key-hold and key-repeat gestures, use the setKeyHoldTimeout() and setKeyRepeatInterval() methods. When focus changes, Kanzi cancels the manipulator, but the cancellation does not result in a separate text cursor or text selection cursor cancel message. You can cancel a key-pressed gesture for a text cursor or text selection navigation key with the cancel() method.
- Since
- Kanzi 3.9.0