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=05cb4051d833c1e55a5c7c947398625eddb90849;hp=7eae0e1c8f35e6760b59fc8d6e31dc32421aabd9;hb=3a23cbcd64ab5780928e4a141e497242c9989110;hpb=867aa572372bf901975516db0fa77630754a8c27 diff --git a/dali-toolkit/internal/text/text-model.cpp b/dali-toolkit/internal/text/text-model.cpp index 7eae0e1..05cb405 100644 --- a/dali-toolkit/internal/text/text-model.cpp +++ b/dali-toolkit/internal/text/text-model.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 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. @@ -102,6 +102,41 @@ const Vector4& Model::GetDefaultColor() const return mVisualModel->mTextColor; } +const Vector2& Model::GetShadowOffset() const +{ + return mVisualModel->mShadowOffset; +} + +const Vector4& Model::GetShadowColor() const +{ + return mVisualModel->mShadowColor; +} + +const Vector4& Model::GetUnderlineColor() const +{ + return mVisualModel->GetUnderlineColor(); +} + +bool Model::IsUnderlineEnabled() const +{ + return mVisualModel->IsUnderlineEnabled(); +} + +float Model::GetUnderlineHeight() const +{ + return mVisualModel->GetUnderlineHeight(); +} + +Length Model::GetNumberOfUnderlineRuns() const +{ + return mVisualModel->GetNumberOfUnderlineRuns(); +} + +void Model::GetUnderlineRuns( GlyphRun* underlineRuns, UnderlineRunIndex index, Length numberOfRuns ) const +{ + mVisualModel->GetUnderlineRuns( underlineRuns, index, numberOfRuns ); +} + Model::Model() : mLogicalModel(), mVisualModel(), @@ -109,6 +144,7 @@ Model::Model() mScrollPositionLast(), mHorizontalAlignment( Layout::HORIZONTAL_ALIGN_BEGIN ), mVerticalAlignment( Layout::VERTICAL_ALIGN_TOP ), + mLineWrapMode( Layout::LineWrap::WORD ), mAlignmentOffset( 0.0f ), mElideEnabled( false ) {