X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-model.h;h=688eac4ce99368d7bdcc5235a69d20e8378c3c3a;hb=85c7065a159374bac65ff799a0a977f930b8e694;hp=d4da2bc6ce8134bd3912730157ba8f57215b5e7b;hpb=eac074bfe3a3c144f55583135515d2c8d16eb479;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-model.h b/dali-toolkit/internal/text/text-model.h index d4da2bc..688eac4 100755 --- a/dali-toolkit/internal/text/text-model.h +++ b/dali-toolkit/internal/text/text-model.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_TEXT_MODEL_H /* - * 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. @@ -23,7 +23,6 @@ // INTERNAL INCLUDES #include -#include #include #include #include @@ -85,6 +84,11 @@ public: virtual VerticalAlignment::Type GetVerticalAlignment() const; /** + * @copydoc ModelInterface::GetVerticalLineAlignment() + */ + virtual DevelText::VerticalLineAlignment::Type GetVerticalLineAlignment() const override; + + /** * @copydoc ModelInterface::IsTextElideEnabled() */ virtual bool IsTextElideEnabled() const; @@ -150,6 +154,11 @@ public: virtual const Vector4& GetShadowColor() const; /** + * @copydoc ModelInterface::GetShadowBlurRadius() + */ + virtual const float& GetShadowBlurRadius() const; + + /** * @copydoc ModelInterface::GetUnderlineColor() */ virtual const Vector4& GetUnderlineColor() const; @@ -184,6 +193,16 @@ public: */ virtual float GetOutlineWidth() const; + /** + * @copydoc ModelInterface::GetBackgroundColor() + */ + virtual const Vector4& GetBackgroundColor() const; + + /** + * @copydoc ModelInterface::IsBackgroundEnabled() + */ + virtual bool IsBackgroundEnabled() const; + private: // Private contructors & copy operator. /** @@ -211,13 +230,16 @@ public: * 0,0 means that the top-left corner of the layout matches the top-left corner of the UI control. * Typically this will have a negative value with scrolling occurs. */ - Vector2 mScrollPosition; ///< The text is offset by this position when scrolling. - Vector2 mScrollPositionLast; ///< The last offset value of mScrollPosition - HorizontalAlignment::Type mHorizontalAlignment; ///< The layout's horizontal alignment. - VerticalAlignment::Type mVerticalAlignment; ///< The layout's vertical alignment. - Layout::LineWrap::Mode mLineWrapMode; ///< The text wrap mode - float mAlignmentOffset; ///< The alignment offset. - bool mElideEnabled:1; ///< Whether the text's elide is enabled. + Vector2 mScrollPosition; ///< The text is offset by this position when scrolling. + Vector2 mScrollPositionLast; ///< The last offset value of mScrollPosition + HorizontalAlignment::Type mHorizontalAlignment; ///< The layout's horizontal alignment. + VerticalAlignment::Type mVerticalAlignment; ///< The layout's vertical alignment. + DevelText::VerticalLineAlignment::Type mVerticalLineAlignment; ///< The layout's vertical line alignment. + Text::LineWrap::Mode mLineWrapMode; ///< The text wrap mode + float mAlignmentOffset; ///< The alignment offset. + bool mElideEnabled:1; ///< Whether the text's elide is enabled. + bool mIgnoreSpacesAfterText:1; ///< Whether ignoring spaces after text or not. Default is true. + bool mMatchSystemLanguageDirection:1; ///< Whether match align for system language direction or not. Default is false. }; } // namespace Text