/*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
return mModel->GetNumberOfLines();
}
-const LineRun* const ViewModel::GetLines() const
+const LineRun* ViewModel::GetLines() const
{
return mModel->GetLines();
}
return mModel->GetNumberOfScripts();
}
-const ScriptRun* const ViewModel::GetScriptRuns() const
+const ScriptRun* ViewModel::GetScriptRuns() const
{
return mModel->GetScriptRuns();
}
+Length ViewModel::GetNumberOfCharacters() const
+{
+ return mModel->GetNumberOfCharacters();
+}
+
Length ViewModel::GetNumberOfGlyphs() const
{
if(mIsTextElided && mModel->IsTextElideEnabled())
return mModel->GetSecondMiddleIndexOfElidedGlyphs();
}
-const GlyphInfo* const ViewModel::GetGlyphs() const
+const GlyphInfo* ViewModel::GetGlyphs() const
{
if(mIsTextElided && mModel->IsTextElideEnabled())
{
return NULL;
}
-const Vector2* const ViewModel::GetLayout() const
+const Vector2* ViewModel::GetLayout() const
{
if(mIsTextElided && mModel->IsTextElideEnabled())
{
return NULL;
}
-const Vector4* const ViewModel::GetColors() const
+const Vector4* ViewModel::GetColors() const
{
return mModel->GetColors();
}
-const ColorIndex* const ViewModel::GetColorIndices() const
+const ColorIndex* ViewModel::GetColorIndices() const
{
return mModel->GetColorIndices();
}
-const Vector4* const ViewModel::GetBackgroundColors() const
+const Vector4* ViewModel::GetBackgroundColors() const
{
return mModel->GetBackgroundColors();
}
-const ColorIndex* const ViewModel::GetBackgroundColorIndices() const
+const ColorIndex* ViewModel::GetBackgroundColorIndices() const
{
return mModel->GetBackgroundColorIndices();
}
-bool const ViewModel::IsMarkupBackgroundColorSet() const
+bool ViewModel::IsMarkupBackgroundColorSet() const
{
return mModel->IsMarkupBackgroundColorSet();
}
return mModel->IsUnderlineEnabled();
}
-bool const ViewModel::IsMarkupUnderlineSet() const
+bool ViewModel::IsMarkupUnderlineSet() const
{
return mModel->IsMarkupUnderlineSet();
}
mModel->GetUnderlineRuns(underlineRuns, index, numberOfRuns);
}
+const Vector2& ViewModel::GetOutlineOffset() const
+{
+ return mModel->GetOutlineOffset();
+}
+
const Vector4& ViewModel::GetOutlineColor() const
{
return mModel->GetOutlineColor();
return mModel->GetOutlineWidth();
}
+const float& ViewModel::GetOutlineBlurRadius() const
+{
+ return mModel->GetOutlineBlurRadius();
+}
+
const Vector4& ViewModel::GetBackgroundColor() const
{
return mModel->GetBackgroundColor();
return mModel->IsMarkupProcessorEnabled();
}
+bool ViewModel::IsSpannedTextPlaced() const
+{
+ return mModel->IsSpannedTextPlaced();
+}
+
const GlyphInfo* ViewModel::GetHyphens() const
{
return mModel->GetHyphens();
return mModel->GetHyphensCount();
}
-const float ViewModel::GetCharacterSpacing() const
+float ViewModel::GetCharacterSpacing() const
{
return mModel->GetCharacterSpacing();
}
return mModel->IsStrikethroughEnabled();
}
-bool const ViewModel::IsMarkupStrikethroughSet() const
+bool ViewModel::IsMarkupStrikethroughSet() const
{
return mModel->IsMarkupStrikethroughSet();
}
return mModel->GetCharacterSpacingGlyphRuns();
}
+const Vector<FontRun>& ViewModel::GetFontRuns() const
+{
+ return mModel->GetFontRuns();
+}
+
+const Vector<FontDescriptionRun>& ViewModel::GetFontDescriptionRuns() const
+{
+ return mModel->GetFontDescriptionRuns();
+}
+
} // namespace Text
} // namespace Toolkit