X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-model.cpp;h=924343c8564b36a59c575be0d07e3bfebf70a5cc;hp=4c3e3f0a41ff02dfa145637163fe6775930541e9;hb=29bbe2381a1cfdd96757dfd441e7f9747560b2c8;hpb=2d59f0b716ea7f7c06de0732d3e4e78aea127de6 diff --git a/dali-toolkit/internal/text/text-model.cpp b/dali-toolkit/internal/text/text-model.cpp index 4c3e3f0..924343c 100644 --- a/dali-toolkit/internal/text/text-model.cpp +++ b/dali-toolkit/internal/text/text-model.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 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. @@ -192,12 +192,27 @@ float Model::GetUnderlineHeight() const return mVisualModel->GetUnderlineHeight(); } +Text::Underline::Type Model::GetUnderlineType() const +{ + return mVisualModel->GetUnderlineType(); +} + +float Model::GetDashedUnderlineWidth() const +{ + return mVisualModel->GetDashedUnderlineWidth(); +} + +float Model::GetDashedUnderlineGap() const +{ + return mVisualModel->GetDashedUnderlineGap(); +} + Length Model::GetNumberOfUnderlineRuns() const { return mVisualModel->GetNumberOfUnderlineRuns(); } -void Model::GetUnderlineRuns(GlyphRun* underlineRuns, UnderlineRunIndex index, Length numberOfRuns) const +void Model::GetUnderlineRuns(UnderlinedGlyphRun* underlineRuns, UnderlineRunIndex index, Length numberOfRuns) const { mVisualModel->GetUnderlineRuns(underlineRuns, index, numberOfRuns); } @@ -241,6 +256,55 @@ Length Model::GetHyphensCount() const { return mVisualModel->mHyphen.glyph.Size(); } +const Vector4& Model::GetStrikethroughColor() const +{ + return mVisualModel->GetStrikethroughColor(); +} + +bool Model::IsStrikethroughEnabled() const +{ + return mVisualModel->IsStrikethroughEnabled(); +} + +float Model::GetStrikethroughHeight() const +{ + return mVisualModel->GetStrikethroughHeight(); +} + +Length Model::GetNumberOfStrikethroughRuns() const +{ + return mVisualModel->GetNumberOfStrikethroughRuns(); +} + +Length Model::GetNumberOfBoundedParagraphRuns() const +{ + return mLogicalModel->GetNumberOfBoundedParagraphRuns(); +} + +const Vector& Model::GetBoundedParagraphRuns() const +{ + return mLogicalModel->GetBoundedParagraphRuns(); +} + +void Model::GetStrikethroughRuns(StrikethroughGlyphRun* strikethroughRuns, StrikethroughRunIndex index, Length numberOfRuns) const +{ + mVisualModel->GetStrikethroughRuns(strikethroughRuns, index, numberOfRuns); +} + +const float Model::GetCharacterSpacing() const +{ + return mVisualModel->GetCharacterSpacing(); +} + +const Character* Model::GetTextBuffer() const +{ + return mLogicalModel->mText.Begin(); +} + +const Vector& Model::GetGlyphsToCharacters() const +{ + return mVisualModel->mGlyphsToCharacters; +} Model::Model() : mLogicalModel(),