projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved Core Rendering API from devel-api to public-api
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
text
/
bidirectional-support.h
diff --git
a/dali-toolkit/internal/text/bidirectional-support.h
b/dali-toolkit/internal/text/bidirectional-support.h
index
2f3b251
..
39ec9d6
100644
(file)
--- a/
dali-toolkit/internal/text/bidirectional-support.h
+++ b/
dali-toolkit/internal/text/bidirectional-support.h
@@
-36,20
+36,21
@@
namespace Toolkit
namespace Text
{
namespace Text
{
-class LogicalModel;
-class VisualModel;
-
/**
* Sets the bidirectional info into the logical model.
*
* @param[in] text Vector of UTF-32 characters.
* @param[in] scripts Vector containing the script runs for the whole text.
* @param[in] lineBreakInfo The line break info.
/**
* Sets the bidirectional info into the logical model.
*
* @param[in] text Vector of UTF-32 characters.
* @param[in] scripts Vector containing the script runs for the whole text.
* @param[in] lineBreakInfo The line break info.
+ * @param[in] startIndex The character from where the bidirectional info is set.
+ * @param[in] numberOfCharacters The number of characters.
* @param[out] bidirectionalInfo Vector with the bidirectional infor for each paragraph.
*/
void SetBidirectionalInfo( const Vector<Character>& text,
const Vector<ScriptRun>& scripts,
const Vector<LineBreakInfo>& lineBreakInfo,
* @param[out] bidirectionalInfo Vector with the bidirectional infor for each paragraph.
*/
void SetBidirectionalInfo( const Vector<Character>& text,
const Vector<ScriptRun>& scripts,
const Vector<LineBreakInfo>& lineBreakInfo,
+ CharacterIndex startIndex,
+ Length numberOfCharacters,
Vector<BidirectionalParagraphInfoRun>& bidirectionalInfo );
/**
Vector<BidirectionalParagraphInfoRun>& bidirectionalInfo );
/**
@@
-63,22
+64,34
@@
void SetBidirectionalInfo( const Vector<Character>& text,
* @pre The @p visualModel needs to have the laid-out lines info set.
*
* @param[in] bidirectionalInfo Vector with the bidirectional infor for each paragraph.
* @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] startIndex The character from where the bidirectional info is set.
+ * @param[in] numberOfCharacters The number of characters.
* @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<BidirectionalParagraphInfoRun>& bidirectionalInfo,
* @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<BidirectionalParagraphInfoRun>& bidirectionalInfo,
+ CharacterIndex startIndex,
+ Length numberOfCharacters,
Vector<LineRun>& lineRuns,
Vector<BidirectionalLineInfoRun>& lineInfoRuns );
/**
Vector<LineRun>& lineRuns,
Vector<BidirectionalLineInfoRun>& lineInfoRuns );
/**
- * @brief Replaces any character which could be mirrored.
+ * @brief Replaces any character
in the right to left paragraphs
which could be mirrored.
*
* @param[in] text The text.
*
* @param[in] text The text.
- * @param[in] mirroredText The mirroredText.
+ * @param[in] directions Vector with the direction of each paragraph.
+ * @param[in] bidirectionalInfo Vector with the bidirectional infor for each paragraph.
+ * @param[in] startIndex The character from where the text is mirrored.
+ * @param[in] numberOfCharacters The number of characters.
+ * @param[out] mirroredText The mirroredText.
*
* @return @e true if a character has been replaced.
*/
bool GetMirroredText( const Vector<Character>& text,
*
* @return @e true if a character has been replaced.
*/
bool GetMirroredText( const Vector<Character>& text,
+ const Vector<CharacterDirection>& directions,
+ const Vector<BidirectionalParagraphInfoRun>& bidirectionalInfo,
+ CharacterIndex startIndex,
+ Length numberOfCharacters,
Vector<Character>& mirroredText );
/**
Vector<Character>& mirroredText );
/**
@@
-88,9
+101,15
@@
bool GetMirroredText( const Vector<Character>& text,
* @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.
* @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[in] totalNumberOfCharacters The number of characters of the whole text.
+ * @param[in] startIndex The character from where the direction info is set.
+ * @param[in] numberOfCharacters The number of characters.
* @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<BidirectionalParagraphInfoRun>& bidirectionalInfo,
* @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<BidirectionalParagraphInfoRun>& bidirectionalInfo,
+ Length totalNumberOfCharacters,
+ CharacterIndex startIndex,
+ Length numberOfCharacters,
Vector<CharacterDirection>& directions );
} // namespace Text
Vector<CharacterDirection>& directions );
} // namespace Text