X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fbidirectional-support.h;h=f51e5e7628a22da7d61a56ba4b8d844236379809;hp=4bdd5e32bd0839d2b11275f8cb4f53cd2da222d6;hb=438b85b845eb6ce7d1d8f800be64704b74838b59;hpb=5ac22f68f419582f91f5a5a003a562c078246433 diff --git a/dali-toolkit/internal/text/bidirectional-support.h b/dali-toolkit/internal/text/bidirectional-support.h index 4bdd5e3..f51e5e7 100644 --- a/dali-toolkit/internal/text/bidirectional-support.h +++ b/dali-toolkit/internal/text/bidirectional-support.h @@ -72,20 +72,21 @@ void ReplaceBidirectionalInfo( LogicalModel& model, Length numberOfCharactersToInsert ); /** - * Sets the visual to logical and logical to visual map tables. + * Sets the visual to logical map tables. * * Any map tables previously set are removed. + * It sets the paragraph's direction to each line. * * @pre The @p logicalModel needs to have a text set. * @pre The @p logicalModel needs to have the bidirectional info indices for each paragraph set. * @pre The @p visualModel needs to have the laid-out lines info set. * * @param[in] bidirectionalInfo Vector with the bidirectional infor for each paragraph. - * @param[in] lineRuns The line runs converted to characters. - * @param[out] lineInfoRuns line runs with the visual to logical and logical to visual conversion maps. + * @param[in,out] lineRuns The line runs converted to characters. + * @param[out] lineInfoRuns line runs with the visual to logical conversion maps. */ void ReorderLines( const Vector& bidirectionalInfo, - const Vector& lineRuns, + Vector& lineRuns, Vector& lineInfoRuns ); /** @@ -110,6 +111,29 @@ void ReorderLines( LogicalModel& logicalModel, Length numberOfCharactersToRemove, Length numberOfCharactersToInsert ); +/** + * @brief Replaces any character which could be mirrored. + * + * @param[in] text The text. + * @param[in] mirroredText The mirroredText. + * + * @return @e true if a character has been replaced. + */ +bool GetMirroredText( const Vector& text, + Vector& mirroredText ); + +/** + * @brief Retrieves the character's directions. + * + * @pre The @p logicalModel needs to have a text set. + * @pre The @p logicalModel needs to have the bidirectional info indices for each paragraph set. + * + * @param[in] bidirectionalInfo Vector with the bidirectional infor for each paragraph. + * @param[out] directions The direction, @e false is left to right and @e true is right to left, of each character of the paragraph. + */ +void GetCharactersDirection( const Vector& bidirectionalInfo, + Vector& directions ); + } // namespace Text } // namespace Toolkit