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
Support Ellipsis Position Property
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
devel-api
/
text
/
text-utils-devel.cpp
diff --git
a/dali-toolkit/devel-api/text/text-utils-devel.cpp
b/dali-toolkit/devel-api/text/text-utils-devel.cpp
index
1441dc4
..
9609a3b
100644
(file)
--- a/
dali-toolkit/devel-api/text/text-utils-devel.cpp
+++ b/
dali-toolkit/devel-api/text/text-utils-devel.cpp
@@
-173,7
+173,9
@@
void ShapeTextPreprocess(const RendererParameters& textParameters, TextAbstracti
MarkupProcessData markupProcessData(colorRuns,
fontDescriptionRuns,
textModel->mLogicalModel->mEmbeddedItems,
MarkupProcessData markupProcessData(colorRuns,
fontDescriptionRuns,
textModel->mLogicalModel->mEmbeddedItems,
- textModel->mLogicalModel->mAnchors);
+ textModel->mLogicalModel->mAnchors,
+ textModel->mLogicalModel->mUnderlinedCharacterRuns,
+ textModel->mLogicalModel->mBackgroundColorRuns);
if(textParameters.markupEnabled)
{
if(textParameters.markupEnabled)
{
@@
-976,6
+978,7
@@
Size LayoutText(const RendererParameters& textParameters, TextAbstraction::TextR
const bool isTextMirrored = internalDataModel.isTextMirrored;
const Vector<Character>& mirroredUtf32Characters = internalDataModel.mirroredUtf32Characters;
const Length numberOfCharacters = internalDataModel.numberOfCharacters;
const bool isTextMirrored = internalDataModel.isTextMirrored;
const Vector<Character>& mirroredUtf32Characters = internalDataModel.mirroredUtf32Characters;
const Length numberOfCharacters = internalDataModel.numberOfCharacters;
+ const auto ellipsisPosition = textModel->mEllipsisPosition;
Layout::Type layout = Layout::SINGLELINE;
Layout::Type layout = Layout::SINGLELINE;
@@
-1029,9
+1032,8
@@
Size LayoutText(const RendererParameters& textParameters, TextAbstraction::TextR
// Resize the vector of positions to have the same size than the vector of glyphs.
rendererParameters.positions.Resize(numberOfGlyphs);
// Resize the vector of positions to have the same size than the vector of glyphs.
rendererParameters.positions.Resize(numberOfGlyphs);
- textModel->mLineWrapMode = LineWrap::WORD;
- textModel->mIgnoreSpacesAfterText = false;
- textModel->mMatchSystemLanguageDirection = false;
+ textModel->mLineWrapMode = Text::LineWrap::WORD;
+ textModel->mIgnoreSpacesAfterText = false;
Text::Layout::Parameters layoutParameters(internalDataModel.textLayoutArea,
textModel);
Text::Layout::Parameters layoutParameters(internalDataModel.textLayoutArea,
textModel);
@@
-1052,7
+1054,8
@@
Size LayoutText(const RendererParameters& textParameters, TextAbstraction::TextR
layoutEngine.LayoutText(layoutParameters,
newLayoutSize,
textParameters.ellipsisEnabled,
layoutEngine.LayoutText(layoutParameters,
newLayoutSize,
textParameters.ellipsisEnabled,
- isAutoScrollEnabled);
+ isAutoScrollEnabled,
+ ellipsisPosition);
return newLayoutSize;
}
return newLayoutSize;
}