X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Frendering%2Fview-model.h;h=fe77f6727d792971688916616a3fa8fae506452e;hp=8038820b7133ea989416e0bae7891317d41244d5;hb=41d36118a13932bcf1db39b780ac437fcda8aa08;hpb=534e542d7dcc1a1507a0e5e6845d49c06a15d326 diff --git a/dali-toolkit/internal/text/rendering/view-model.h b/dali-toolkit/internal/text/rendering/view-model.h old mode 100644 new mode 100755 index 8038820..fe77f67 --- a/dali-toolkit/internal/text/rendering/view-model.h +++ b/dali-toolkit/internal/text/rendering/view-model.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_TEXT_VIEW_MODEL_H /* - * Copyright (c) 2016 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. @@ -22,7 +22,9 @@ #include // INTERNAL INCLUDES +#include #include +#include namespace Dali { @@ -74,12 +76,17 @@ public: /** * @copydoc ModelInterface::GetHorizontalAlignment() */ - virtual Layout::HorizontalAlignment GetHorizontalAlignment() const; + virtual Text::HorizontalAlignment::Type GetHorizontalAlignment() const; /** * @copydoc ModelInterface::GetVerticalAlignment() */ - virtual Layout::VerticalAlignment GetVerticalAlignment() const; + virtual Text::VerticalAlignment::Type GetVerticalAlignment() const; + + /** + * @copydoc ModelInterface::GetVerticalLineAlignment() + */ + virtual DevelText::VerticalLineAlignment::Type GetVerticalLineAlignment() const; /** * @copydoc ModelInterface::IsTextElideEnabled() @@ -97,6 +104,16 @@ public: virtual const LineRun* const GetLines() const; /** + * @copydoc ModelInterface::GetNumberOfScripts() + */ + virtual Length GetNumberOfScripts() const; + + /** + * @copydoc ModelInterface::GetScriptRuns() + */ + virtual const ScriptRun* const GetScriptRuns() const; + + /** * @copydoc ModelInterface::GetNumberOfGlyphs() */ virtual Length GetNumberOfGlyphs() const; @@ -122,11 +139,81 @@ public: virtual const ColorIndex* const GetColorIndices() const; /** + * @copydoc ModelInterface::GetBackgroundColors() + */ + virtual const Vector4* const GetBackgroundColors() const; + + /** + * @copydoc ModelInterface::GetBackgroundColorIndices() + */ + virtual const ColorIndex* const GetBackgroundColorIndices() const; + + /** * @copydoc ModelInterface::GetDefaultColor() */ virtual const Vector4& GetDefaultColor() const; /** + * @copydoc ModelInterface::GetShadowOffset() + */ + virtual const Vector2& GetShadowOffset() const; + + /** + * @copydoc ModelInterface::GetShadowColor() + */ + virtual const Vector4& GetShadowColor() const; + + /** + * @copydoc ModelInterface::GetShadowBlurRadius() + */ + virtual const float& GetShadowBlurRadius() const; + + /** + * @copydoc ModelInterface::GetUnderlineColor() + */ + virtual const Vector4& GetUnderlineColor() const; + + /** + * @copydoc ModelInterface::IsUnderlineEnabled() + */ + virtual bool IsUnderlineEnabled() const; + + /** + * @copydoc ModelInterface::GetUnderlineHeight() + */ + virtual float GetUnderlineHeight() const; + + /** + * @copydoc ModelInterface::GetNumberOfUnderlineRuns() + */ + virtual Length GetNumberOfUnderlineRuns() const; + + /** + * @copydoc ModelInterface::GetUnderlineRuns() + */ + virtual void GetUnderlineRuns( GlyphRun* underlineRuns, UnderlineRunIndex index, Length numberOfRuns ) const; + + /** + * @copydoc ModelInterface::GetOutlineColor() + */ + virtual const Vector4& GetOutlineColor() const; + + /** + * @copydoc ModelInterface::GetOutlineWidth() + */ + virtual uint16_t GetOutlineWidth() const; + + /** + * @copydoc ModelInterface::GetBackgroundColor() + */ + virtual const Vector4& GetBackgroundColor() const; + + /** + * @copydoc ModelInterface::IsBackgroundEnabled() + */ + virtual bool IsBackgroundEnabled() const; + +/** * @brief Does the text elide. * * It stores a copy of the visible glyphs and removes as many glyphs as needed