X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Flogical-model.h;h=8e3f5df4acfb37691b668e2a209813ab8e385286;hp=5d14098d3c4638d92213ad6e8918d4afe27a9579;hb=2c7cfdb64f1a8281c8cbbe9531ec0b2ed779f915;hpb=c2657923e8fb857d2ed6b2dc41d9dd7042f2e4b2 diff --git a/dali-toolkit/internal/text/logical-model.h b/dali-toolkit/internal/text/logical-model.h index 5d14098..8e3f5df 100644 --- a/dali-toolkit/internal/text/logical-model.h +++ b/dali-toolkit/internal/text/logical-model.h @@ -18,10 +18,12 @@ * */ -// INTERNAL INCLUDES +// EXTERNAL INCLUDES #include #include #include + +// INTERNAL INCLUDES #include namespace Dali @@ -81,12 +83,12 @@ public: * @brief Retrieves characters from the text in the given buffer. * * @pre The size of the @p text buffer needs to be big enough to copy the @p numberOfCharacters. - * @param[in] characterIndex The index to the first character to copy. * @param[out] text Pointer to a buffer where the text is copied. + * @param[in] characterIndex The index to the first character to copy. * @param[in] numberOfCharacters The number of characters to be copied. */ - void GetText( CharacterIndex characterIndex, - Character* text, + void GetText( Character* text, + CharacterIndex characterIndex, Length numberOfCharacters ) const; /** @@ -332,6 +334,21 @@ public: Length numberOfCharacters ) const; /** + * Retrieves the bidirectional paragraph info runs for the given range of characters. + * + * The @p bidirectionalInfo buffer needs to be big enough to copy the number of bidirectional + * paragraph info runs. + * Call GetNumberOfBidirectionalInfoRuns() to retrieve the number of bidirectional runs. + * + * @param[out] bidirectionalInfo Pointer to a buffer where the bidirectional info runs are copied. + * @param[in] characterIndex Index to the first character. + * @param[in] numberOfCharacters The number of characters. + */ + void GetBidirectionalInfo( BidirectionalParagraphInfoRun* bidirectionalInfo, + CharacterIndex characterIndex, + Length numberOfCharacters ) const; + + /** * Retrieves the direction of the characters. * * It sets @c true for right to left characters and @c false for left to right.