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
Add vertical alignment for text editor
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
text
/
visual-model-impl.cpp
diff --git
a/dali-toolkit/internal/text/visual-model-impl.cpp
b/dali-toolkit/internal/text/visual-model-impl.cpp
index
3fa3975
..
5ef2b50
100644
(file)
--- a/
dali-toolkit/internal/text/visual-model-impl.cpp
+++ b/
dali-toolkit/internal/text/visual-model-impl.cpp
@@
-305,13
+305,13
@@
LineIndex VisualModel::GetLineOfCharacter(CharacterIndex characterIndex)
return index;
}
return index;
}
-void VisualModel::GetUnderlineRuns(
GlyphRun*
underlineRuns,
- UnderlineRunIndex index,
- Length numberOfRuns) const
+void VisualModel::GetUnderlineRuns(
UnderlinedGlyphRun*
underlineRuns,
+ UnderlineRunIndex
index,
+ Length
numberOfRuns) const
{
memcpy(underlineRuns,
mUnderlineRuns.Begin() + index,
{
memcpy(underlineRuns,
mUnderlineRuns.Begin() + index,
- numberOfRuns * sizeof(GlyphRun));
+ numberOfRuns * sizeof(
Underlined
GlyphRun));
}
void VisualModel::SetNaturalSize(const Vector2& size)
}
void VisualModel::SetNaturalSize(const Vector2& size)
@@
-609,6
+609,16
@@
Length VisualModel::GetNumberOfStrikethroughRuns() const
return mStrikethroughRuns.Count();
}
return mStrikethroughRuns.Count();
}
+Length VisualModel::GetNumberOfCharacterSpacingGlyphRuns() const
+{
+ return mCharacterSpacingRuns.Count();
+}
+
+const Vector<CharacterSpacingGlyphRun>& VisualModel::GetCharacterSpacingGlyphRuns() const
+{
+ return mCharacterSpacingRuns;
+}
+
void VisualModel::ClearCaches()
{
mCachedLineIndex = 0u;
void VisualModel::ClearCaches()
{
mCachedLineIndex = 0u;