X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-view.cpp;h=9d9f991556ed093d0096881f5574350f8b50c874;hb=74f25e93f1094929c90c1632b686e9bfa03bd017;hp=754b06d1645c794f374277db0830748884c0ba26;hpb=723acb540264b5f3bfc98ec3284891aa58d765c4;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-view.cpp b/dali-toolkit/internal/text/text-view.cpp old mode 100644 new mode 100755 index 754b06d..9d9f991 --- a/dali-toolkit/internal/text/text-view.cpp +++ b/dali-toolkit/internal/text/text-view.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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. @@ -326,6 +326,26 @@ const ColorIndex* const View::GetColorIndices() const return NULL; } +const Vector4* const View::GetBackgroundColors() const +{ + if( mImpl->mVisualModel ) + { + return mImpl->mVisualModel->mBackgroundColors.Begin(); + } + + return nullptr; +} + +const ColorIndex* const View::GetBackgroundColorIndices() const +{ + if( mImpl->mVisualModel ) + { + return mImpl->mVisualModel->mBackgroundColorIndices.Begin(); + } + + return nullptr; +} + const Vector4& View::GetTextColor() const { if( mImpl->mVisualModel ) @@ -384,7 +404,7 @@ Length View::GetNumberOfUnderlineRuns() const { if( mImpl->mVisualModel ) { - return mImpl->mVisualModel->mUnderlineRuns.Count(); + return mImpl->mVisualModel->GetNumberOfUnderlineRuns(); } return 0u; @@ -402,6 +422,24 @@ void View::GetUnderlineRuns( GlyphRun* underlineRuns, } } +const Vector4& View::GetOutlineColor() const +{ + if( mImpl->mVisualModel ) + { + return mImpl->mVisualModel->GetOutlineColor(); + } + return Vector4::ZERO; +} + +uint16_t View::GetOutlineWidth() const +{ + if( mImpl->mVisualModel ) + { + return mImpl->mVisualModel->GetOutlineWidth(); + } + return 0u; +} + } // namespace Text } // namespace Toolkit