X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Ftext%2Fsegmentation.h;h=fa95ff9b2a16670dbfdf80e863716e3f58cc3593;hp=85198c5cd1d7db75db74469d8420a065a5ff59a2;hb=2dd044328238768ae8b27a223cb7d0f5cda53513;hpb=30ead727af1371695a21bccc5be36f58912090ca diff --git a/dali-toolkit/public-api/text/segmentation.h b/dali-toolkit/public-api/text/segmentation.h index 85198c5..fa95ff9 100644 --- a/dali-toolkit/public-api/text/segmentation.h +++ b/dali-toolkit/public-api/text/segmentation.h @@ -19,6 +19,7 @@ */ // INTERNAL INCLUDES +#include #include namespace Dali @@ -30,29 +31,32 @@ namespace Toolkit namespace Text { -class LogicalModel; - /** * Sets line break info. * - * Any line break info previously set is removed. + * Possible values for LineBreakInfo are: * - * @pre The @p model needs to have a text set. + * - 0 is a LINE_MUST_BREAK. Text must be broken into a new line. + * - 1 is a LINE_ALLOW_BREAK. Is possible to break the text into a new line. + * - 2 is a LINE_NO_BREAK. Text can't be broken into a new line. * - * @param[in,out] model The text's logical model. + * @param[in] text Vector of UTF-32 characters. + * @param[out] lineBreakInfo The line break info */ -void SetLineBreakInfo( LogicalModel& model ); +void SetLineBreakInfo( const Vector& text, + Vector& lineBreakInfo ); /** * Sets word break info. * - * Any word break info previously set is removed. - * - * @pre The @p model needs to have a text set. + * - 0 is a WORD_BREAK. Text can be broken into a new word. + * - 1 is a WORD_NO_BREAK. Text can't be broken into a new word. * - * @param[in,out] model The text's logical model. + * @param[in] text Vector of UTF-32 characters. + * @param[out] wordBreakInfo The word break info. */ -void SetWordBreakInfo( LogicalModel& model ); +void SetWordBreakInfo( const Vector& text, + Vector& wordBreakInfo ); } // namespace Text