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=c1767d8f5f467c6150779fb95b4c727d36fd2b62;hp=b31810a1a6c7c4419e98f56cf59468cdde63148c;hb=1bc80454daa9e30655e4c4dec1784f6e9e5f496a;hpb=eac074bfe3a3c144f55583135515d2c8d16eb479 diff --git a/dali-toolkit/internal/text/text-model.cpp b/dali-toolkit/internal/text/text-model.cpp index b31810a..c1767d8 100755 --- a/dali-toolkit/internal/text/text-model.cpp +++ b/dali-toolkit/internal/text/text-model.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -57,6 +57,11 @@ VerticalAlignment::Type Model::GetVerticalAlignment() const return mVerticalAlignment; } +DevelText::VerticalLineAlignment::Type Model::GetVerticalLineAlignment() const +{ + return mVerticalLineAlignment; +} + bool Model::IsTextElideEnabled() const { return mElideEnabled; @@ -107,6 +112,16 @@ const ColorIndex* const Model::GetColorIndices() const return mVisualModel->mColorIndices.Begin(); } +const Vector4* const Model::GetBackgroundColors() const +{ + return mVisualModel->mBackgroundColors.Begin(); +} + +const ColorIndex* const Model::GetBackgroundColorIndices() const +{ + return mVisualModel->mBackgroundColorIndices.Begin(); +} + const Vector4& Model::GetDefaultColor() const { return mVisualModel->mTextColor; @@ -122,6 +137,11 @@ const Vector4& Model::GetShadowColor() const return mVisualModel->mShadowColor; } +const float& Model::GetShadowBlurRadius() const +{ + return mVisualModel->mShadowBlurRadius; +} + const Vector4& Model::GetUnderlineColor() const { return mVisualModel->GetUnderlineColor(); @@ -152,21 +172,34 @@ const Vector4& Model::GetOutlineColor() const return mVisualModel->GetOutlineColor(); } -float Model::GetOutlineWidth() const +uint16_t Model::GetOutlineWidth() const { return mVisualModel->GetOutlineWidth(); } +const Vector4& Model::GetBackgroundColor() const +{ + return mVisualModel->GetBackgroundColor(); +} + +bool Model::IsBackgroundEnabled() const +{ + return mVisualModel->IsBackgroundEnabled(); +} + Model::Model() : mLogicalModel(), mVisualModel(), mScrollPosition(), mScrollPositionLast(), - mHorizontalAlignment( HorizontalAlignment::BEGIN ), - mVerticalAlignment( VerticalAlignment::TOP ), - mLineWrapMode( Layout::LineWrap::WORD ), + mHorizontalAlignment( Text::HorizontalAlignment::BEGIN ), + mVerticalAlignment( Text::VerticalAlignment::TOP ), + mVerticalLineAlignment( DevelText::VerticalLineAlignment::TOP ), + mLineWrapMode( Text::LineWrap::WORD ), mAlignmentOffset( 0.0f ), - mElideEnabled( false ) + mElideEnabled( false ), + mIgnoreSpacesAfterText( true ), + mMatchSystemLanguageDirection( false ) { mLogicalModel = LogicalModel::New(); mVisualModel = VisualModel::New();