return mVisualModel->mLines.Count();
}
-const LineRun* const Model::GetLines() const
+const LineRun* Model::GetLines() const
{
return mVisualModel->mLines.Begin();
}
return mLogicalModel->mScriptRuns.Count();
}
-const ScriptRun* const Model::GetScriptRuns() const
+const ScriptRun* Model::GetScriptRuns() const
{
return mLogicalModel->mScriptRuns.Begin();
}
return mVisualModel->GetSecondMiddleIndexOfElidedGlyphs();
}
-const GlyphInfo* const Model::GetGlyphs() const
+const GlyphInfo* Model::GetGlyphs() const
{
return mVisualModel->mGlyphs.Begin();
}
-const Vector2* const Model::GetLayout() const
+const Vector2* Model::GetLayout() const
{
return mVisualModel->mGlyphPositions.Begin();
}
-const Vector4* const Model::GetColors() const
+const Vector4* Model::GetColors() const
{
return mVisualModel->mColors.Begin();
}
-const ColorIndex* const Model::GetColorIndices() const
+const ColorIndex* Model::GetColorIndices() const
{
return mVisualModel->mColorIndices.Begin();
}
-const Vector4* const Model::GetBackgroundColors() const
+const Vector4* Model::GetBackgroundColors() const
{
return mVisualModel->mBackgroundColors.Begin();
}
-const ColorIndex* const Model::GetBackgroundColorIndices() const
+const ColorIndex* Model::GetBackgroundColorIndices() const
{
return mVisualModel->mBackgroundColorIndices.Begin();
}
-bool const Model::IsMarkupBackgroundColorSet() const
+bool Model::IsMarkupBackgroundColorSet() const
{
return (mVisualModel->mBackgroundColors.Count() > 0);
}
return mVisualModel->IsUnderlineEnabled();
}
+bool Model::IsMarkupUnderlineSet() const
+{
+ return (mVisualModel->mUnderlineRuns.Count() > 0u);
+}
+
float Model::GetUnderlineHeight() const
{
return mVisualModel->GetUnderlineHeight();
return mVisualModel->IsMarkupProcessorEnabled();
}
+bool Model::IsSpannedTextPlaced() const
+{
+ return mLogicalModel->mSpannedTextPlaced;
+}
+
const GlyphInfo* Model::GetHyphens() const
{
return mVisualModel->mHyphen.glyph.Begin();
return mVisualModel->IsStrikethroughEnabled();
}
+bool Model::IsMarkupStrikethroughSet() const
+{
+ return (mVisualModel->mStrikethroughRuns.Count() > 0u);
+}
+
float Model::GetStrikethroughHeight() const
{
return mVisualModel->GetStrikethroughHeight();
return mVisualModel->GetCharacterSpacingGlyphRuns();
}
-const float Model::GetCharacterSpacing() const
+float Model::GetCharacterSpacing() const
{
return mVisualModel->GetCharacterSpacing();
}
return mVisualModel->mGlyphsToCharacters;
}
+const Vector<FontRun>& Model::GetFontRuns() const
+{
+ return mLogicalModel->mFontRuns;
+}
+
+const Vector<FontDescriptionRun>& Model::GetFontDescriptionRuns() const
+{
+ return mLogicalModel->mFontDescriptionRuns;
+}
+
Model::Model()
: mLogicalModel(),
mVisualModel(),