X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-view.h;h=7cccf19d47fee2c197709324fc9be5a71086dd6d;hb=HEAD;hp=7b14c8c1666f863bb4fbe83b0a91cf3a8b93ecba;hpb=b7108fc5f28fd650a1ea08a8692c822a63baf5bd;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-view.h b/dali-toolkit/internal/text/text-view.h index 7b14c8c..b375668 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) 2024 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. @@ -18,7 +18,12 @@ * */ +// EXTERNAL INCLUDES +#include + // INTERNAL INCLUDES +#include +#include #include #include @@ -45,6 +50,13 @@ public: virtual ~View(); /** + * @brief Set the font client. + * + * @param[in] fontClient The font client used by the View. + */ + void SetFontClient(TextAbstraction::FontClient& fontClient); + + /** * @brief Set the visual model. * * @param[in] visualModel The visual model used by the View. @@ -52,6 +64,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; @@ -78,27 +97,27 @@ public: /** * @copydoc Dali::Toolkit::Text::ViewInterface::GetColors() */ - const Vector4* const GetColors() const override; + const Vector4* GetColors() const override; /** * @copydoc Dali::Toolkit::Text::ViewInterface::GetColorIndices() */ - const ColorIndex* const GetColorIndices() const override; + const ColorIndex* GetColorIndices() const override; /** * @copydoc Dali::Toolkit::Text::ViewInterface::GetBackgroundColors() */ - const Vector4* const GetBackgroundColors() const override; + const Vector4* GetBackgroundColors() const override; /** * @copydoc Dali::Toolkit::Text::ViewInterface::GetBackgroundColorIndices() */ - const ColorIndex* const GetBackgroundColorIndices() const override; + const ColorIndex* GetBackgroundColorIndices() const override; /** * @copydoc Dali::Toolkit::Text::ViewInterface::IsMarkupBackgroundColorSet() */ - bool const IsMarkupBackgroundColorSet() const; + bool IsMarkupBackgroundColorSet() const; /** * @copydoc Dali::Toolkit::Text::ViewInterface::GetTextColor() @@ -126,6 +145,11 @@ public: bool IsUnderlineEnabled() const override; /** + * @copydoc Dali::Toolkit::Text::ViewInterface::IsMarkupUnderlineSet() + */ + bool IsMarkupUnderlineSet() const; + + /** * @copydoc Dali::Toolkit::Text::ViewInterface::GetHyphens() */ const GlyphInfo* GetHyphens() const override; @@ -168,9 +192,14 @@ public: /** * @copydoc Dali::Toolkit::Text::ViewInterface::GetUnderlineRuns() */ - virtual void GetUnderlineRuns(GlyphRun* underlineRuns, - UnderlineRunIndex index, - Length numberOfRuns) const; + virtual void GetUnderlineRuns(UnderlinedGlyphRun* underlineRuns, + UnderlineRunIndex index, + Length numberOfRuns) const; + + /** + * @copydoc Dali::Toolkit::Text::ViewInterface::GetOutlineOffset() + */ + const Vector2& GetOutlineOffset() const override; /** * @copydoc Dali::Toolkit::Text::ViewInterface::GetOutlineColor() @@ -223,10 +252,57 @@ public: bool IsStrikethroughEnabled() const override; /** + * @copydoc Dali::Toolkit::Text::ViewInterface::IsMarkupStrikethroughSet() + */ + bool IsMarkupStrikethroughSet() const; + + /** * @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::GetNumberOfBoundedParagraphRuns() + */ + virtual Length GetNumberOfBoundedParagraphRuns() const; + + /** + * @copydoc Dali::Toolkit::Text::ViewInterface::GetBoundedParagraphRuns() + */ + virtual const Vector& GetBoundedParagraphRuns() const; + + /** + * @copydoc Dali::Toolkit::Text::ViewInterface::GetCharacterSpacing() + */ + 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; + + /** + * @copydoc Dali::Toolkit::Text::ViewInterface::IsCutoutEnabled() + */ + bool IsCutoutEnabled() const override; + private: // Undefined View(const View& handle);