X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Funderlined-character-run.h;h=4024dff3ce5cde67bea29c34e6fe156b150109fc;hb=4e9ffb51cbdd54c16b75c21aa30051798a4f8e37;hp=99d59672421612e41405d9e2cb2477a334de4c8c;hpb=9161d9828d1a5bb3c7eaf83002863de84b23b751;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/underlined-character-run.h b/dali-toolkit/internal/text/underlined-character-run.h index 99d5967..4024dff 100644 --- a/dali-toolkit/internal/text/underlined-character-run.h +++ b/dali-toolkit/internal/text/underlined-character-run.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_TEXT_UNDERLINED_CHARACTER_RUN_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. @@ -23,7 +23,7 @@ // INTERNAL INCLUDES #include -#include +#include namespace Dali { @@ -36,10 +36,17 @@ namespace Text */ struct UnderlinedCharacterRun { - CharacterRun characterRun; ///< The initial character index and the number of characters of the run. - //TODO: add properties like color, height and style - //Vector4 color; ///< The color of underline. - //float height; ///< The height of underline. + /** + * Default constructor to set the default values of bitfields + */ + UnderlinedCharacterRun() + : characterRun{}, + properties{} + { + } + + CharacterRun characterRun; ///< The initial character index and the number of characters of the run. + UnderlineStyleProperties properties; /// The properties of underline style }; } // namespace Text