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=725f945f36e6d720e3793ac5cc7a664e461e9880;hpb=4dd6701af4a4e7195c60095492ac27a1bf329d75;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 725f945..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. @@ -93,7 +93,7 @@ Length ViewModel::GetNumberOfLines() const return mModel->GetNumberOfLines(); } -const LineRun* const ViewModel::GetLines() const +const LineRun* ViewModel::GetLines() const { return mModel->GetLines(); } @@ -103,11 +103,16 @@ Length ViewModel::GetNumberOfScripts() const 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()) @@ -162,7 +167,7 @@ GlyphIndex ViewModel::GetSecondMiddleIndexOfElidedGlyphs() const return mModel->GetSecondMiddleIndexOfElidedGlyphs(); } -const GlyphInfo* const ViewModel::GetGlyphs() const +const GlyphInfo* ViewModel::GetGlyphs() const { if(mIsTextElided && mModel->IsTextElideEnabled()) { @@ -176,7 +181,7 @@ const GlyphInfo* const ViewModel::GetGlyphs() const return NULL; } -const Vector2* const ViewModel::GetLayout() const +const Vector2* ViewModel::GetLayout() const { if(mIsTextElided && mModel->IsTextElideEnabled()) { @@ -190,27 +195,27 @@ const Vector2* const ViewModel::GetLayout() const 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(); } @@ -245,7 +250,7 @@ bool ViewModel::IsUnderlineEnabled() const return mModel->IsUnderlineEnabled(); } -bool const ViewModel::IsMarkupUnderlineSet() const +bool ViewModel::IsMarkupUnderlineSet() const { return mModel->IsMarkupUnderlineSet(); } @@ -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(); @@ -325,7 +340,7 @@ Length ViewModel::GetHyphensCount() const return mModel->GetHyphensCount(); } -const float ViewModel::GetCharacterSpacing() const +float ViewModel::GetCharacterSpacing() const { return mModel->GetCharacterSpacing(); } @@ -709,7 +724,7 @@ bool ViewModel::IsStrikethroughEnabled() const return mModel->IsStrikethroughEnabled(); } -bool const ViewModel::IsMarkupStrikethroughSet() const +bool ViewModel::IsMarkupStrikethroughSet() const { return mModel->IsMarkupStrikethroughSet(); } @@ -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