X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Flogical-model-impl.h;h=0fa3df2092823d0d9fd64bb6acc60b042b0703f9;hp=80a1285c621ada16864eea9985938e32128e8343;hb=a5167c61104580ae0ab724f904537a3a01ea3061;hpb=ac501f02feab8e2fb7e613f936d3d5a511603001 diff --git a/dali-toolkit/internal/text/logical-model-impl.h b/dali-toolkit/internal/text/logical-model-impl.h index 80a1285..0fa3df2 100644 --- a/dali-toolkit/internal/text/logical-model-impl.h +++ b/dali-toolkit/internal/text/logical-model-impl.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_TEXT_LOGICAL_MODEL_IMPL_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. @@ -27,12 +27,15 @@ #include #include #include +#include +#include #include #include #include #include #include #include +#include #include namespace Dali @@ -152,6 +155,11 @@ public: */ void ClearFontDescriptionRuns(); + /** + * @brief Clears the strikethrough runs. + */ + void ClearStrikethroughRuns(); + // Paragraphs /** @@ -176,6 +184,34 @@ public: Length numberOfCharacters, Vector& paragraphs); + /** + * @brief Retrieves the number of bounded paragraph runs. + * + * @return The number of bounded paragraph runs. + */ + Length GetNumberOfBoundedParagraphRuns() const; + + /** + * @brief Retrieves the reference for bounded paragraph runs. + * + * @return The reference for bounded paragraph runs. + */ + const Vector& GetBoundedParagraphRuns() const; + + /** + * @brief Retrieves the number of character-spacing runs. + * + * @return The number of character-spacing runs. + */ + Length GetNumberOfCharacterSpacingCharacterRuns() const; + + /** + * @brief Retrieves the reference for character-spacing runs. + * + * @return The reference for character-spacing runs. + */ + const Vector& GetCharacterSpacingCharacterRuns() const; + // Embedded images /** @@ -220,7 +256,10 @@ public: Vector mBidirectionalLineInfo; Vector mEmbeddedItems; Vector mAnchors; - Vector mUnderlinedCharacterRuns; ///< The underlined character run from markup-processor + Vector mUnderlinedCharacterRuns; ///< The underlined character run from markup-processor + Vector mStrikethroughCharacterRuns; ///< The strikethrough character run from markup-processor + Vector mBoundedParagraphRuns; ///< The bounded paragraph is used to handle a paragraph mark-up tag and it's attributes. Like TextAlign, TextDirection, TextIndent, LineHeight, etc. + Vector mCharacterSpacingCharacterRuns; ///< The character-spacing character run from markup-processor. BidirectionalLineRunIndex mBidirectionalLineIndex; ///< The last fetched bidirectional line info. };