X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fcursor-helper-functions.h;h=5896b4db22d9a26fbef439de80bb8cea25ad5e65;hb=63f9b5207c2794cdc460d587723be89585872a51;hp=08c21a3f1654ec94d77da556156b4917e975e7be;hpb=1e3e71f9aee86bdf912062370fa29c1fc062086c;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/cursor-helper-functions.h b/dali-toolkit/internal/text/cursor-helper-functions.h index 08c21a3..5896b4d 100644 --- a/dali-toolkit/internal/text/cursor-helper-functions.h +++ b/dali-toolkit/internal/text/cursor-helper-functions.h @@ -70,6 +70,19 @@ LineIndex GetClosestLine( VisualModelPtr visualModel, float visualY ); /** + * @brief Calculates the vertical line's offset for a given line. + * + * @pre @p lineIndex must be between 0 and the number of lines (both inclusive). + * + * @param[in] lines The laid-out lines. + * @param[in] lineIndex Index to the line. + * + * @return The vertical offset of the given line. + */ +float CalculateLineOffset( const Vector& lines, + LineIndex lineIndex ); + +/** * @brief Retrieves the cursor's logical position for a given touch point x,y * * @param[in] visualModel The visual model. @@ -115,8 +128,10 @@ void GetCursorPosition( VisualModelPtr visualModel, * @param[in] visualY The touch point 'y' in text's coords. * @param[out] startIndex Index to the first character of the selected word. * @param[out] endIndex Index to the last character of the selected word. + * + * @return @e true if the indices are found. */ -void FindSelectionIndices( VisualModelPtr visualModel, +bool FindSelectionIndices( VisualModelPtr visualModel, LogicalModelPtr logicalModel, MetricsPtr metrics, float visualX,