-protected: // Inherit from Text::Decorator::ControllerInterface.
-
- /**
- * @copydoc Dali::Toolkit::Text::Decorator::ControllerInterface::GetTargetSize()
- */
- void GetTargetSize( Vector2& targetSize ) override;
-
- /**
- * @copydoc Dali::Toolkit::Text::Decorator::ControllerInterface::AddDecoration()
- */
- void AddDecoration( Actor& actor, bool needsClipping ) override;
-
- /**
- * @copydoc Dali::Toolkit::Text::Decorator::ControllerInterface::DecorationEvent()
- */
- void DecorationEvent( HandleType handle, HandleState state, float x, float y ) override;
-
-protected: // Inherit from TextSelectionPopup::TextPopupButtonCallbackInterface.
-
- /**
- * @copydoc Dali::Toolkit::TextSelectionPopup::TextPopupButtonCallbackInterface::TextPopupButtonTouched()
- */
- void TextPopupButtonTouched( Dali::Toolkit::TextSelectionPopup::Buttons button ) override;
-
-protected: // Inherit from HiddenText.
-
- /**
- * @brief Invoked from HiddenText when showing time of the last character was expired
- */
- void DisplayTimeExpired() override;
-
-private: // Update.
-
- /**
- * @brief Called by editable UI controls when key events are received.
- *
- * @param[in] text The text to insert.
- * @param[in] type Used to distinguish between regular key events and InputMethodContext events.
- */
- void InsertText( const std::string& text, InsertType type );
-
- /**
- * @brief Paste given string into Text model
- * @param[in] stringToPaste this string will be inserted into the text model
- */
- void PasteText( const std::string& stringToPaste );
-
- /**
- * @brief Remove a given number of characters
- *
- * When predictve text is used the pre-edit text is removed and inserted again with the new characters.
- * The UpdateInputStyleType @type parameter if set to DONT_UPDATE_INPUT_STYLE avoids to update the input
- * style when pre-edit text is removed.
- *
- * @param[in] cursorOffset Start position from the current cursor position to start deleting characters.
- * @param[in] numberOfCharacters The number of characters to delete from the cursorOffset.
- * @param[in] type Whether to update the input style.
- * @return True if the remove was successful.
- */
- bool RemoveText( int cursorOffset,
- int numberOfCharacters,
- UpdateInputStyleType type );
-
- /**
- * @brief Checks if text is selected and if so removes it.
- * @return true if text was removed
- */
- bool RemoveSelectedText();
-
-private: // Relayout.
-