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=95f438aed1299aef1abd52052e262f967ccae38c;hp=227133e238665ef12092d9665808b2c6f697e8eb;hb=refs%2Fchanges%2F33%2F37133%2F3;hpb=f3cd2c3c30817bbb889e8ba8ce6b1106a1617e82 diff --git a/dali-toolkit/internal/text/bidirectional-support.h b/dali-toolkit/internal/text/bidirectional-support.h index 227133e..95f438a 100644 --- a/dali-toolkit/internal/text/bidirectional-support.h +++ b/dali-toolkit/internal/text/bidirectional-support.h @@ -72,7 +72,7 @@ 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. * @@ -82,7 +82,7 @@ void ReplaceBidirectionalInfo( LogicalModel& model, * * @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[out] lineInfoRuns line runs with the visual to logical conversion maps. */ void ReorderLines( const Vector& bidirectionalInfo, const Vector& lineRuns, @@ -120,6 +120,19 @@ void ReorderLines( LogicalModel& logicalModel, */ 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