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=9cd2dba7a0bfd4908de1c935f2dc4ce603bd6415;hp=580113778b6188764193443d12e28be32e7db4c0;hb=066856d5c4c7a8bacd33f9a3ed49018e8dc41c4f;hpb=23a08e9252d9106f1e9d87dfec8d9c31248d6240;ds=inline 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 5801137..9cd2dba 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 @@ -702,6 +702,22 @@ private: bool OnKeyUpEvent(const KeyEvent& event); /** + * Chooses from all handle position and alternative handle positions where to set the position of the two selection handles. + * + * @param[in] cursorPositionOne The initial position of the first selection handle. + * @param[in] cursorPositionTwo The initial position of the second selection handle. + * @param[in] altPositionValidOne Whether there is an alternative position for the first selection handle. + * @param[in] altPositionValidTwo Whether there is an alternative position for the second selection handle. + * @param[in] altPositionOne The alternative position of the first selection handle. + * @param[in] altPositionTwo The alternative position of the second selection handle. + */ + void ChooseRtlSelectionHandlePosition( const Vector3& cursorPositionOne, + const Vector3& cursorPositionTwo, + bool altPositionValidOne, + bool altPositionValidTwo, + const Vector3& altPositionOne, + const Vector3& altPositionTwo ); + /** * Callback called when the text-view is scrolled. * * Updates the selection and grab handles, and the highlighted text. @@ -1033,6 +1049,11 @@ public: // Public to allow internal testing. HighlightInfo CalculateHighlightInfo(); /** + * This method was added to fix a PLM. it creates one quad per character so the mesh can show different selection boxes when a mix of right to left and left to right text is selected. + */ + HighlightInfo CalculateHighlightInfoRtl(); + + /** * Calculates new Mesh data so highlight moves with selection handles. */ void UpdateHighlight();