X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Ftext%2Fbidirectional-support.h;h=178c319a4582d5a1ea06a01de9e434314d551581;hp=5cb557e2a5f39b74b903db6e44b25c1d83068769;hb=1575a786324e7350600cbcd51e22b9db9be76f36;hpb=306d2f61a1b64179e801fa8a0bb2bd7b4e9dd682 diff --git a/dali-toolkit/public-api/text/bidirectional-support.h b/dali-toolkit/public-api/text/bidirectional-support.h index 5cb557e..178c319 100644 --- a/dali-toolkit/public-api/text/bidirectional-support.h +++ b/dali-toolkit/public-api/text/bidirectional-support.h @@ -19,7 +19,9 @@ */ // INTERNAL INCLUDES -#include +#include +#include +#include namespace Dali { @@ -36,14 +38,13 @@ class VisualModel; /** * Sets the bidirectional info into the logical model. * - * Any bidirectional info previously set is removed. - * - * @pre The @p model needs to have a text set. - * @pre The @p model needs to have the line break info set. - * - * @param[in,out] model The text's logical model. + * @param[in] text Vector of UTF-32 characters. + * @param[in] lineBreakInfo The line break info. + * @param[out] bidirectionalInfo Vector with the bidirectional infor for each paragraph. */ -void SetBidirectionalInfo( LogicalModel& model ); +void SetBidirectionalInfo( const Vector& text, + const Vector& lineBreakInfo, + Vector& bidirectionalInfo ); /** * Sets the visual to logical and logical to visual map tables. @@ -51,14 +52,16 @@ void SetBidirectionalInfo( LogicalModel& model ); * Any map tables previously set are removed. * * @pre The @p logicalModel needs to have a text set. - * @pre The @p logicalModel needs to have the line break info 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,out] logicalModel The text's logical model. - * @param[in] visualModel The text's visual 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. */ -void ReorderLines( LogicalModel& logicalModel, - const VisualModel& visualModel ); +void ReorderLines( const Vector& bidirectionalInfo, + const Vector& lineRuns, + Vector& lineInfoRuns ); } // namespace Text