X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Frendering%2Fview-model.cpp;h=3799fc9fe521d65e63c4d8c71081103153c7e04f;hb=HEAD;hp=c37cba33a4536dccb47ae9bb28183e1b8cff6e74;hpb=ee3cc0da8dbf399532ae1f36b85cc1aeb02c940d;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/rendering/view-model.cpp b/dali-toolkit/internal/text/rendering/view-model.cpp index c37cba3..7e3a4e3 100644 --- a/dali-toolkit/internal/text/rendering/view-model.cpp +++ b/dali-toolkit/internal/text/rendering/view-model.cpp @@ -1,5 +1,5 @@ /* - * 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. @@ -108,6 +108,11 @@ const ScriptRun* ViewModel::GetScriptRuns() const return mModel->GetScriptRuns(); } +Length ViewModel::GetNumberOfCharacters() const +{ + return mModel->GetNumberOfCharacters(); +} + Length ViewModel::GetNumberOfGlyphs() const { if(mIsTextElided && mModel->IsTextElideEnabled()) @@ -280,6 +285,11 @@ void ViewModel::GetUnderlineRuns(UnderlinedGlyphRun* underlineRuns, UnderlineRun mModel->GetUnderlineRuns(underlineRuns, index, numberOfRuns); } +const Vector2& ViewModel::GetOutlineOffset() const +{ + return mModel->GetOutlineOffset(); +} + const Vector4& ViewModel::GetOutlineColor() const { return mModel->GetOutlineColor(); @@ -290,6 +300,11 @@ uint16_t ViewModel::GetOutlineWidth() const return mModel->GetOutlineWidth(); } +const float& ViewModel::GetOutlineBlurRadius() const +{ + return mModel->GetOutlineBlurRadius(); +} + const Vector4& ViewModel::GetBackgroundColor() const { return mModel->GetBackgroundColor(); @@ -754,6 +769,31 @@ const Vector& ViewModel::GetFontDescriptionRuns() const return mModel->GetFontDescriptionRuns(); } +bool ViewModel::IsRemoveFrontInset() const +{ + return mModel->IsRemoveFrontInset(); +} + +bool ViewModel::IsRemoveBackInset() const +{ + return mModel->IsRemoveBackInset(); +} + +bool ViewModel::IsCutoutEnabled() const +{ + return mModel->IsCutoutEnabled(); +} + +const bool ViewModel::IsBackgroundWithCutoutEnabled() const +{ + return mModel->IsBackgroundWithCutoutEnabled(); +} + +const Vector4& ViewModel::GetBackgroundColorWithCutout() const +{ + return mModel->GetBackgroundColorWithCutout(); +} + } // namespace Text } // namespace Toolkit