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.
|
|
void | deactivateInput () |
| Deactivates the input on an input manipulator.
|
|
void | ensureInputMethodsAvailable () |
| Ensures that the connected input methods are available.
|
|
TextKeyNavigationDirection | getTextKeyNavigationDirection () const |
| Returns the direction of key navigation.
|
|
void | setEchoMode (EchoMode echoMode) |
| Sets the echo mode to use to format the display text of the text buffer of the input manipulator.
|
|
void | setInputLayout (TextInputLayout &layout) |
|
void | setInputMethodAction (InputMethodAction action) |
| Sets the input method action of the text input methods.
|
|
void | setInputType (InputType inputType) |
| Sets the input type of the input methods.
|
|
void | setPasswordMaskingCharacter (string_view passwordMask) |
| Sets the password masking character of the text buffer of the input manipulator.
|
|
void | setReadOnly (bool readOnly) |
| Sets whether the user input can modify the text of a TextInputManipulator.
|
|
void | setTextKeyNavigationDirection (TextKeyNavigationDirection direction) |
| Sets the direction of key navigation.
|
|
|
size_t | getMaximumTextLength () const |
| Returns the maximum text buffer length constraint.
|
|
void | setMaximumTextLength (size_t maxLength) |
| Sets the maximum text length constraint.
|
|
void | setText (string_view text) |
| Sets the UTF-8 text.
|
|
void | insertText (size_t position, string_view text) |
| Moves the cursor to a given position and inserts text to that position.
|
|
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.
|
|
void | deleteAtCursor () |
| Deletes a character using delete.
|
|
void | backspaceAtCursor () |
| Deletes a character using backspace.
|
|
void | deleteWordAtCursor () |
| Deletes the characters between the cursor position and the word boundary that follows the cursor.
|
|
void | backspaceWordAtCursor () |
| Deletes the characters between the cursor position and the closest word boundary using backspace.
|
|
|
size_t | getCursorPosition () const |
| Returns the position of the cursor.
|
|
void | setCursorPosition (size_t position) |
| Sets the position of the cursor in the text buffer of a TextInputConcept.
|
|
void | moveCursorForward (size_t characterCount) |
| Moves the cursor forward by a given number of characters in the text buffer of a TextInputConcept.
|
|
void | moveCursorForward () |
| Moves the cursor forward by one character.
|
|
void | moveCursorBackward (size_t characterCount) |
| Moves the cursor backward by a given number of characters in the text buffer of a TextInputConcept.
|
|
void | moveCursorBackward () |
| Moves the cursor backward by one character.
|
|
void | moveCursorToEnd () |
| Moves the cursor to the end of the text buffer of a TextInputConcept.
|
|
void | moveCursorHome () |
| Moves the cursor to the beginning of the text buffer of a TextInputConcept.
|
|
void | moveCursorToNextWord () |
| Moves the cursor to the next word.
|
|
void | moveCursorToPreviousWord () |
| Moves the cursor to the previous word.
|
|
|
bool | hasSelection () const |
| Checks whether any text is selected.
|
|
void | selectText (size_t start, size_t end) |
| Selects the text between the given start and end positions.
|
|
size_t | getSelectionStart () const |
| Returns the starting point of the selected text.
|
|
void | setSelectionStart (size_t position) |
| Sets the start of the text selection at the position given as argument.
|
|
size_t | getSelectionEnd () const |
| Returns the ending point of the selected text.
|
|
void | setSelectionEnd (size_t position) |
| Sets the end of the text selection at the position given as argument.
|
|
void | clearSelection () |
| Clears the text selection.
|
|
void | selectAll () |
| Selects all content in a Text Box node.
|
|
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.
|
|
void | moveSelectionStartBackward (size_t characterCount) |
| Moves the end of text selection a given characterCount backward in the text buffer of a Text Box node.
|
|
void | moveSelectionEndForward (size_t characterCount) |
| Moves the end of text selection a given characterCount forward in the text buffer of a Text Box node.
|
|
void | moveSelectionEndBackward (size_t characterCount) |
| Moves the end of text selection a given characterCount backward in the text buffer of a Text Box node.
|
|
void | moveSelectionStartForward () |
| Moves the start of the text selection forward by one character.
|
|
void | moveSelectionStartBackward () |
| Moves the start of the text selection backward by one character.
|
|
void | moveSelectionEndForward () |
| Moves the end of the text selection forward by one character.
|
|
void | moveSelectionEndBackward () |
| Moves the end of the text selection backward by one character.
|
|
void | moveSelectionStartToNextWord () |
| Moves the start of the text selection forward to the next word.
|
|
void | moveSelectionStartToPreviousWord () |
| Moves the start of the text selection backward to the previous word.
|
|
void | moveSelectionEndToNextWord () |
| Moves the end of the text selection forward to the next word.
|
|
void | moveSelectionEndToPreviousWord () |
| Moves the end of the text selection backward to the previous word.
|
|
|
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.
|
|
void | moveSelectionEndpointBackward () |
| Overload of moveSelectionEndpointBackward(), moves the endpoint of the active text selection one step backward.
|
|
void | moveSelectionEndpointForward (size_t steps) |
| Moves the endpoint of the active text selection forward by steps passed as argument.
|
|
void | moveSelectionEndpointForward () |
| Overload of moveSelectionEndpointForward(), moves the endpoint of the active text selection one step forward.
|
|
void | moveSelectionEndpointToPreviousWord () |
| Moves the endpoint of the active text selection backward to the previous word boundary.
|
|
void | moveSelectionEndpointToNextWord () |
| Moves the endpoint of the active text selection forward to the previous word boundary.
|
|
void | moveSelectionEndpointToFront () |
| Moves the active selection end-point to the beginning of the text string.
|
|
void | moveSelectionEndpointToBack () |
| Moves the endpoint of the active text selection to the end of the text string.
|
|
void | attach (Node &node) |
| Attaches an input manipulator to a node.
|
|
void | cancel () |
| Notify manipulator of touch canceling.
|
|
void | detach () |
| Detaches an input manipulator.
|
|
Node * | getAttachedNode () const |
| Gets the node to which the input manipulator is attached.
|
|
InputManipulator * | getDependantManipulator () const |
| Gets the dependant input manipulator.
|
|
EventRoutingMode | getEventRoutingMode () |
| Returns the current input event routing mode.
|
|
InputManipulatorWeakPtr | getFailManipulator () const |
| Gets the fail manipulator.
|
|
State | getState () const |
| Get the state of an input manipulator.
|
|
KZ_DEPRECATED TouchEventRoutingMode | getTouchEventRoutingMode () |
| Returns the current touch event routing mode.
|
|
ManipulatorType | getType () const |
| Returns the type of the input manipulator.
|
|
bool | isActive () const |
| Checks whether an input manipulator is in active state.
|
|
bool | isAttached () const |
| Tells whether the input manipulator is attached to a node.
|
|
bool | isCancelable () const |
| Returns whether an input manipulator is in a cancelable state.
|
|
bool | isResettable () const |
| Returns whether an input manipulator is in a resettable state.
|
|
void | requireToFail (InputManipulatorWeakPtr manipulatorToFail) |
| Sets the input manipulator that must fail before Kanzi can recognize this input manipulator.
|
|
void | reset () |
| Reset the manipulator.
|
|
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.
|
|
void | setReferenceNode (NodeWeakPtr referenceNode) |
| Override the attached node as the hit test reference node.
|
|
void | setState (State state) |
| Set the state of an input manipulator.
|
|
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.
|
|
| ~InputManipulator () override |
| Destructor.
|
|
AppliedStyleEntrySharedPtr | applyObjectStyle (kanzi::StyleSharedPtr style) |
| Applies a style to an object.
|
|
void | applyObjectStyles () |
| Apply all styles for an object node.
|
|
Domain * | getDomain () const |
| Returns the domain the object belongs to.
|
|
const Metaclass * | getDynamicMetaclass () const override |
| Returns the metaclass of the dynamic type of the object.
|
|
MainLoopScheduler * | getMainLoopScheduler () const |
| Returns the MainLoopScheduler instance of the associated Domain.
|
|
detail::MessageDispatcher * | getMessageDispatcher () const |
| Returns the message dispatcher of the object.
|
|
ResourceManager * | getResourceManager () const |
| Returns the resource manager of the object.
|
|
ScriptingContextSharedPtr | getScriptingContext () const |
| Gets the scripting context of the object.
|
|
| Object (Domain *domain) |
|
void | setScriptingContext (ScriptingContextSharedPtr context) |
| Sets the scripting context of the object.
|
|
void | unapplyObjectStyle (AppliedStyleEntrySharedPtr appliedStyleEntry) |
|
void | unapplyObjectStyles () |
| Unapplies and removes all applied styles.
|
|
| ~Object () override |
|
bool | isTypeOf (const Metaclass *objectType) const |
| Determines if the type of this object is the given type or derived from it.
|
|
virtual | ~MetaObject () |
|
template<typename DataType > |
void | addPropertyModifier (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::ModifierCallback callback, void *owner) |
|
template<typename DataType > |
void | addPropertyModifierWithoutNotifyingHandlers (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::ModifierCallback callback, void *owner) |
| Adds a property modifier without notifying handlers.
|
|
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, AbstractPropertyTypeDescriptor::ValueSourceOwner *owner) |
|
template<typename DataType > |
void | addPropertyValueSource (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::TypedValueSource *valueSource, PropertyValuePrecedence precedence, void *ownerPointer) |
|
PropertyStorageContainer::iterator | beginPropertyStorage () |
| Returns the begin iterator to the internal property storage container.
|
|
PropertyStorageContainer::const_iterator | beginPropertyStorage () const |
| Returns the begin iterator to the internal property storage container.
|
|
void | clearPropertyFlag (AbstractPropertyType propertyType, uint32_t flag) |
|
void | copyLocalValue (const PropertyObject &other, AbstractPropertyType propertyType) |
| Copies local value of single property from another object.
|
|
void | copyLocalValues (const PropertyObject &other) |
| Copies all local values from another object.
|
|
PropertyStorageContainer::iterator | endPropertyStorage () |
| Returns the end iterator to the internal property storage container.
|
|
PropertyStorageContainer::const_iterator | endPropertyStorage () const |
| Returns the end iterator to the internal property storage container.
|
|
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.
|
|
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.
|
|
template<typename DataType > |
PropertyType< DataType >::Traits::ReturnType | getProperty (const PropertyType< DataType > &propertyType) const |
| Returns the current value of a property type.
|
|
template<typename DataType > |
PropertyType< DataType >::Traits::ReturnType | getPropertyBase (const PropertyType< DataType > &propertyType) const |
| Returns the current value of a property disregarding modifiers.
|
|
template<typename DataType > |
size_t | getPropertyNotificationHandlerCount (const PropertyType< DataType > &propertyType) const |
| Gets number of current notification handlers for given property type.
|
|
bool | hasBaseValue (AbstractPropertyType propertyType) const |
| Evaluates whether there are any inputs into the property value, disregarding modifiers.
|
|
bool | hasLocalValue (AbstractPropertyType propertyType) const |
| Evaluates whether there is a local value set for the property.
|
|
bool | hasNonClassValue (AbstractPropertyType propertyType) const |
| Evaluates whether there is a value of any precedence higher than class default value set for the property.
|
|
bool | hasValue (AbstractPropertyType propertyType) const |
| Evaluates whether there are any inputs into the property value.
|
|
bool | isPropertyFlagSet (AbstractPropertyType propertyType, uint32_t flag) const |
|
virtual void | onPropertyChanged (AbstractPropertyType propertyType, PropertyNotificationReason reason) |
| Virtual function to handle property change notifications.
|
|
| PropertyObject () |
|
void | removeKzbProperties () |
| Remove all KZB properties.
|
|
void | removeKzbProperties (flat_set< AbstractPropertyType > *keepProperties) |
| Remove all KZB properties that are not included in a given set.
|
|
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.
|
|
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.
|
|
void | setPropertyFlag (AbstractPropertyType propertyType, uint32_t flag) |
|
KZ_DEPRECATED void | validatePropertyModifiers (AbstractPropertyType propertyType) |
| Validates property modifiers and notifies handlers.
|
|
void | validatePropertyModifiersAndNotifyHandlers (AbstractPropertyType propertyType) |
| Validates property modifiers and notifies handlers.
|
|
virtual | ~PropertyObject () |
|
void | cancelTextComposition () |
| Tells the input method, which provides the text composition, to cancel the text composition.
|
|
void | commitCompositionText () |
| Commits the composition text.
|
|
bool | isComposingText () const |
| Returns the text composition state of the input method listener.
|
|
bool | isInputMethodAvailable (InputMethod &source) const |
| Returns whether the input method is available.
|
|
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.
|
|
void | onCompositionTextUpdated (InputMethod &source, string_view text) |
| The input method source tells the input method listener to update the composition text.
|
|
void | onCursorMoved (InputMethod &source, size_t position) |
| The input method source tells the input method listener to update the cursor position.
|
|
void | onExecuteInputMethodAction (InputMethod &source) |
| The input method source tells the input method listener to execute the input method action.
|
|
void | onInputMethodAvailable (InputMethod &source, bool available) |
| The input method source informs its active input method listener about the available state.
|
|
bool | onInputMethodDisconnected (InputMethod &source) |
| The input method source tells its active input method listener that it disconnected itself from the input method listener.
|
|
void | onInputTypeChanged (InputMethod &source, InputType inputType) |
| The input method source tells the input method listener to update its input type.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
void | onTextCompositionStarted (InputMethod &source) |
| The input method source tells the input method listener to enter the text composition state at the current cursor position.
|
|
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.
|
|
virtual | ~InputMethodListener () |
| Destructor.
|
|
const TextEditBuffer & | getText () const |
| Returns the text buffer that holds edited UTF-8 content.
|
|
InputType | getInputType () const |
| Returns the input type used by the text input methods.
|
|
InputMethodAction | getInputMethodAction () const |
| Returns the input method action of the text input methods.
|
|
bool | isReadOnly () const |
| Returns whether the text of the TextEditBuffer of an InputMethodListener is unaffected by user input.
|
|
|
void | handleControlLeftArrowGesture () |
| Handles the Control + Left Arrow key gesture.
|
|
void | handleControlRightArrowGesture () |
| Handles the Control + Right Arrow key gesture.
|
|
void | handleLeftArrowGesture () |
| Handles the Left Arrow key gesture.
|
|
void | handleRightArrowGesture () |
| Handles the Right Arrow key gesture.
|
|
void | handleShiftControlLeftArrowGesture () |
| Handles the Shift + Control + Left Arrow key gesture.
|
|
void | handleShiftControlRightArrowGesture () |
| Handles the Shift + Control + Right Arrow key gesture.
|
|
void | handleShiftLeftArrowGesture () |
| Handles the Shift + Left Arrow key gesture.
|
|
void | handleShiftRightArrowGesture () |
| Handles the Shift + Right Arrow key gesture.
|
|
bool | moveCursorTo (size_t position) |
| Moves the cursor to the position given as argument.
|
|
void | notifyCursorMoved () |
| Dispatches a CursorMovedMessage to the attached node.
|
|
void | notifyInputTypeChanged () |
| Dispatches an InputTypeChangedMessage to the attached node.
|
|
bool | notifyKeyInput (const KeyEvent &event) override |
| Overrides InputManipulator::notifyKeyInput().
|
|
void | notifyReadOnlyStateChanged () |
| Dispatches a ReadOnlyStateChangedMessage to the attached node.
|
|
void | notifySelectionChanged () |
| Dispatches a SelectionChangedMessage to the attached node.
|
|
void | notifyTextChanged () |
| Dispatches a TextChangedMessage to the attached node.
|
|
void | onCancel () override |
| Overrides InputManipulator::onCancel().
|
|
bool | onCompositionTextCommittedOverride (InputMethod &source) override |
| Overrides InputMethodListener::onCompositionTextCommittedOverride.
|
|
bool | onCompositionTextUpdatedOverride (InputMethod &source, string_view text) override |
| Overrides InputMethodListener::onCompositionTextUpdatedOverride.
|
|
bool | onCursorMovedOverride (InputMethod &source, size_t position) override |
| Overrides InputMethodListener::onCursorMovedOverride.
|
|
void | onExecuteInputMethodActionOverride (InputMethod &) override |
| Overrides InputMethodListener::onExecuteInputMethodActionOverride.
|
|
void | onInputMethodAvailableOverride (InputMethod &source, bool available) override |
| Overrides InputMethodListener::onInputMethodAvailableOverride.
|
|
bool | onInputMethodDisconnectedOverride (InputMethod &source) override |
| Overrides InputMethodListener::onInputMethodDisconnectedOverride.
|
|
void | onInputTypeChangedOverride (InputMethod &source, InputType inputType) override |
| Overrides InputMethodListener::onInputTypeChangedOverride.
|
|
void | onKeyPressGesture (KeyGestureInfo &) override |
| Overrides InputManipulator::onKeyPressGesture().
|
|
void | onKeyReleaseGesture (KeyGestureInfo &) override |
| Overrides InputManipulator::onKeyPressGesture().
|
|
void | onPartialKeyPressGesture (KeyGestureInfo &) override |
| Overrides InputManipulator::onPartialKeyPressGesture().
|
|
void | onReset () override |
| Overrides InputManipulator::onReset().
|
|
bool | onSelectionChangedOverride (InputMethod &source, size_t start, size_t end) override |
| Overrides InputMethodListener::onSelectionChanged.
|
|
bool | onTextAddedOverride (InputMethod &source, size_t position, string_view text) override |
| Overrides InputMethodListener::onTextAddedOverride.
|
|
bool | onTextChangedOverride (InputMethod &source, string_view text) override |
| Overrides InputMethodListener::onTextChangedOverride.
|
|
void | onTextCompositionCanceledOverride (InputMethod &source) override |
| Overrides InputMethodListener::onTextCompositionCanceledOverride.
|
|
bool | onTextCompositionStartedOverride (InputMethod &source) override |
| Overrides InputMethodListener::onTextCompositionStartedOverride.
|
|
bool | onTextDeletedOverride (InputMethod &source, size_t start, size_t end) override |
| Overrides InputMethodListener::onTextDeletedOverride.
|
|
| TextInputManipulator (Domain *domain) |
| Constructor.
|
|
void | updateSelectionState () |
| Updates the state of text selection.
|
|
void | addHitTestArguments (MessageArguments &message, const TouchPoint &touchPoint) |
| Add hit test information arguments to the message from the touch point.
|
|
bool | detectKeyGesture (const KeyEvent &event, KeyGestureInfo &gesture) |
| Detects key gestures from the event that you pass as an argument.
|
|
Node2D * | findNearestParent2D () |
| Find the 2D manipulator node for this input manipulator.
|
|
InputManager * | getInputManager () const |
| Get the attached input manager of an input manipulator.
|
|
| InputManipulator (Domain *domain, ManipulatorType type=ManipulatorType::TouchInputHandler) |
| Constructor.
|
|
virtual bool | isCancelableOverride () const |
| Overridable check for the cancelable status of an input manipulator.
|
|
virtual bool | isResettableOverride () const |
| Overridable check for the resettable status of an input manipulator.
|
|
void | markTouchPointConsumed (const TouchPoint &touchPoint) |
| Marks the passed touch point handled.
|
|
virtual void | notifyTouchInside (const TouchInfo &touchInfo) |
| Notify an input manipulator about touch events that occur inside the subtree of the input manipulator.
|
|
virtual void | notifyTouchOutside (const TouchInfo &touchInfo) |
| Notify an input manipulator about touch events that occur outside the subtree of the input manipulator.
|
|
virtual void | onAttach () |
| Attach function for input manipulators.
|
|
virtual void | onDetach () |
| Detach function for input manipulators.
|
|
virtual void | onFail () |
| Fail function for input manipulators.
|
|
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.
|
|
AbstractPropertyTypeDescriptor::ModifierStorage * | acquireModifierStorage (AbstractPropertyTypeDescriptor &descriptor, AbstractPropertyTypeDescriptor::PropertyStorage &propertyStorage) |
|
AbstractPropertyTypeDescriptor::NotificationStorage * | acquireNotificationStorage (AbstractPropertyTypeDescriptor &descriptor) |
|
PropertyStoragePtr | acquirePropertyStorage (AbstractPropertyTypeDescriptor &descriptor) |
|
template<typename DataType > |
void | addPropertyModifierBase (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::ModifierCallback callback, void *owner, bool notify) |
| Adds a property modifier entry to the property modifier stack and validates them.
|
|
void | addPropertyValueSource (AbstractPropertyTypeDescriptor &descriptor, AbstractPropertyTypeDescriptor::ValueSource *valueSource, PropertyValuePrecedence precedence, AbstractPropertyTypeDescriptor::ValueSourceOwner *owner) |
| Internally adds a property value source.
|
|
void | addPropertyValueSource (AbstractPropertyTypeDescriptor &descriptor, AbstractPropertyTypeDescriptor::ValueSource *valueSource, PropertyValuePrecedence precedence, void *ownerPointer) |
| Internally adds a property value source.
|
|
AbstractPropertyTypeDescriptor::ValueSourceEntry * | constructLocalValueSourceEntry (AbstractPropertyTypeDescriptor &descriptor, AbstractPropertyTypeDescriptor::PropertyStorage &propertyStorage) |
|
PropertyStoragePtr | constructPropertyStorage (AbstractPropertyTypeDescriptor &descriptor) |
|
void | copyLocalValue (const AbstractPropertyTypeDescriptor::PropertyStorage &otherPropertyStorage) |
| Copy local value from property storage.
|
|
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.
|
|
PropertyStoragePtr | findPropertyStoragePtr (AbstractPropertyTypeDescriptor &descriptor) const |
| Gets property storage intrusive pointer which you can use to hold a reference until the end of the operation.
|
|
AbstractPropertyTypeDescriptor * | findPropertyTypeDescriptorByNameAndDataType (string_view name, PropertyDataType dataType) const |
| Finds a property type descriptor by name and data type.
|
|
AbstractPropertyTypeDescriptor * | findPropertyTypeDescriptorByQualifiedNameAndDataType (string_view qualifiedName, PropertyDataType dataType) const |
| Like findPropertyTypeDescriptorByNameAndDataType, but only searches by matching with qualified names.
|
|
AbstractPropertyTypeDescriptor * | findPropertyTypeDescriptorByUnqualifiedNameAndDataType (string_view unqualifiedName, PropertyDataType dataType) const |
| Like findPropertyTypeDescriptorByNameAndDataType, but only searches by matching with unqualified names.
|
|
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.
|
|
virtual void | notifyPropertyHandlers (PropertyStoragePtr &storagePtr, PropertyNotificationReason reason) |
| Notifies all property handlers on a property storage.
|
|
void | onCopy (const PropertyObject &other) |
|
void | removeLocalValue (AbstractPropertyTypeDescriptor &descriptor, PropertyStoragePtr &propertyStorage) |
| Removes a local value from the given property storage.
|
|
void | removePropertyValueSource (AbstractPropertyTypeDescriptor &descriptor, AbstractPropertyTypeDescriptor::ValueSource *valueSource, void *owner) |
| Removes a property value source.
|
|
void | validatePropertyModifiers (PropertyStoragePtr &propertyStorage) |
| Validates property modifiers without notifying handlers.
|
|
void | validatePropertyModifiersAndNotifyHandlers (PropertyStoragePtr &propertyStorage) |
| Validates property modifiers and notifies handlers.
|
|
void | connectInputMethods (Node &attachedNode) |
| Connects the input methods to this listener.
|
|
void | disconnectInputMethods () |
| Disconnects the input methods from this listener.
|
|
| InputMethodListener (Domain *domain) |
| Constructor.
|
|
bool | isComposingText (InputMethod &inputMethod) const |
| Checks whether the inputMethod is in the text composition state.
|
|
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.
|
|
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