X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=base%2Fdali-toolkit%2Finternal%2Fcontrols%2Ftext-input%2Ftext-input-impl.h;h=580113778b6188764193443d12e28be32e7db4c0;hp=dfbb2c504919a5f3957429c16e7172c33bdbd74a;hb=87ea139b82253a2f2f39a2d906303065bb3362f0;hpb=cbed2075b18f7fe2151d9a38e0406a47c834f5db diff --git a/base/dali-toolkit/internal/controls/text-input/text-input-impl.h b/base/dali-toolkit/internal/controls/text-input/text-input-impl.h index dfbb2c5..5801137 100644 --- a/base/dali-toolkit/internal/controls/text-input/text-input-impl.h +++ b/base/dali-toolkit/internal/controls/text-input/text-input-impl.h @@ -880,9 +880,8 @@ public: // Public to allow internal testing. /** * Draw a cursor / caret at position where new text should appear - * @param[in] nthChar the position along the text string in which new text should appear. */ - void DrawCursor(const std::size_t nthChar = 0); + void DrawCursor(); /** * Sets cursor visibility @@ -1017,15 +1016,6 @@ public: // Public to allow internal testing. void SetSelectionHandlePosition(SelectionHandleId handleId); /** - * Gets the visual position of a logical position. - * @note This is preferred over directly accessing the Map, as it resolves visual - * positions outside of the character map range. - * @param[in] logicalPosition The logical position - * @return Visual position is returned. - */ - std::size_t GetVisualPosition(std::size_t logicalPosition) const; - - /** * Gets a table of the visual text positions which has a flag * for each Character. The flag is either true (character selected) * or false (character deselected) @@ -1084,8 +1074,10 @@ public: // Public to allow internal testing. /** * Setup the selection popup and clipboard if relevant so the correct options are shown when ShowPopup is called. + * @param[in] showCutButton Flag to show or hide cut button, in some cases like whitespace we do not want to cut just select. + * default is true. */ - void SetUpPopupSelection(); + void SetUpPopupSelection( bool showCutButton = true ); /** * Return the logical index containing the character position closest to the source. @@ -1152,6 +1144,15 @@ public: // Public to allow internal testing. std::size_t GetRowStartFromCharacterPosition(std::size_t logicalPosition) const; /** + * Retrieves the first character of a group of characters with the same direction. + * + * @param[in] logicalPosition Index to a character. + * + * @return Index to the character. + */ + std::size_t GetFirstCharacterWithSameDirection( std::size_t logicalPosition ) const; + + /** * Retrieve the dimensions of this row of text that the character resides on. * @param[in] characterPosition the position in the 'string' of characters. * @return The size of the rectangle representing this row @@ -1218,8 +1219,9 @@ public: // Public to allow internal testing. /** * Hide highlight shown between selection handles. + * @param[in] hidePopup flag to hide the popup too, default is to hide popup. */ - void RemoveHighlight(); + void RemoveHighlight( bool hidePopup = true ); /** * Highlights text that has been selected @@ -1344,6 +1346,12 @@ public: // Public to allow internal testing. */ const Vector4& GetOffsetFromText() const; + /** + * Show the Placeholder text with an already created StyleTextArray + * @param[in] stylePlaceHolderText Required placeholder text to be used + */ + void ShowPlaceholderText( const MarkupProcessor::StyledTextArray& stylePlaceHolderText ); + // Properties /**