X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-view.h;h=f673e0e3bc6f9d665ca27aff16975e20008a5bce;hp=62324e8c43e00ffb0e3b237df31b03e7b20a62d7;hb=2512aa2794f3c5ea5841542b9ed9c8c32973540b;hpb=0f5a244a8e8f8fa680dccafca44ccc9fedb387a8 diff --git a/dali-toolkit/internal/text/text-view.h b/dali-toolkit/internal/text/text-view.h index 62324e8..f673e0e 100644 --- a/dali-toolkit/internal/text/text-view.h +++ b/dali-toolkit/internal/text/text-view.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_TEXT_VIEW_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 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. @@ -19,6 +19,7 @@ */ // INTERNAL INCLUDES +#include #include #include @@ -52,6 +53,13 @@ public: void SetVisualModel(VisualModelPtr visualModel); /** + * @brief Set the logical model. + * + * @param[in] logicalModel The logical model used by the View. + */ + void SetLogicalModel(LogicalModelPtr logicalModel); + + /** * @copydoc Dali::Toolkit::Text::ViewInterface::GetControlSize() */ const Vector2& GetControlSize() const override; @@ -146,6 +154,21 @@ public: float GetUnderlineHeight() const override; /** + * @copydoc Dali::Toolkit::Text::ViewInterface::GetUnderlineType() + */ + Text::Underline::Type GetUnderlineType() const override; + + /** + * @copydoc Dali::Toolkit::Text::ViewInterface::GetDashedUnderlineWidth() + */ + float GetDashedUnderlineWidth() const override; + + /** + * @copydoc Dali::Toolkit::Text::ViewInterface::GetDashedUnderlineGap() + */ + float GetDashedUnderlineGap() const override; + + /** * @copydoc Dali::Toolkit::Text::ViewInterface::GetNumberOfUnderlineRuns() */ Length GetNumberOfUnderlineRuns() const override; @@ -197,6 +220,48 @@ public: */ GlyphIndex GetSecondMiddleIndexOfElidedGlyphs() const override; + /** + * @copydoc Dali::Toolkit::Text::ViewInterface::GetStrikethroughColor() + */ + const Vector4& GetStrikethroughColor() const override; + + /** + * @copydoc Dali::Toolkit::Text::ViewInterface::IsStrikethroughEnabled() + */ + bool IsStrikethroughEnabled() const override; + + /** + * @copydoc Dali::Toolkit::Text::ViewInterface::GetStrikethroughHeight() + */ + float GetStrikethroughHeight() const override; + + /** + * @copydoc Dali::Toolkit::Text::ViewInterface::GetNumberOfStrikethroughRuns() + */ + Length GetNumberOfStrikethroughRuns() const; + + /** + * @copydoc Dali::Toolkit::Text::ViewInterface::GetStrikethroughRuns() + */ + void GetStrikethroughRuns(StrikethroughGlyphRun* strikethroughRuns, + StrikethroughRunIndex index, + Length numberOfRuns) const; + + /** + * @copydoc Dali::Toolkit::Text::ViewInterface::GetCharacterSpacing() + */ + const float GetCharacterSpacing() const override; + + /** + * @copydoc Dali::Toolkit::Text::ViewInterface::GetTextBuffer() + */ + const Character* GetTextBuffer() const override; + + /** + * @copydoc Dali::Toolkit::Text::ViewInterface::GetGlyphsToCharacters() + */ + const Vector& GetGlyphsToCharacters() const override; + private: // Undefined View(const View& handle);