X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fcolor-run.h;h=75bd27bcd306faae1502bed8a9a9195ad27a4ff7;hp=ad5e6db7d9370e0b480f2cfb2b25bc4a4335b3fe;hb=HEAD;hpb=acbe10c62c46a30c58e08d8971a736f04e68dbf8 diff --git a/dali-toolkit/internal/text/color-run.h b/dali-toolkit/internal/text/color-run.h index ad5e6db..75bd27b 100644 --- a/dali-toolkit/internal/text/color-run.h +++ b/dali-toolkit/internal/text/color-run.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_TEXT_COLOR_RUN_H /* - * Copyright (c) 2019 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. @@ -18,35 +18,45 @@ * */ -// EXTERNAL INCLUDES -#include - // INTERNAL INCLUDES -#include -#include +#include namespace Dali { - namespace Toolkit { - namespace Text { - /** * @brief Run of characters with the same color. */ -struct ColorRun +struct ColorRun : public AbstractStyleCharacterRun { - CharacterRun characterRun; ///< The initial character index and the number of characters of the run. - Vector4 color; ///< The color of the characters. + /** + * @brief Constructor. + * Default constructor to set the default values + */ + ColorRun() + : AbstractStyleCharacterRun() + { + } + Vector4 color; ///< The color of the characters. }; } // namespace Text } // namespace Toolkit +// Allow ColorRun to be treated as a POD type +template<> +struct TypeTraits : public Dali::BasicTypes +{ + enum + { + IS_TRIVIAL_TYPE = true + }; +}; + } // namespace Dali #endif // DALI_TOOLKIT_TEXT_COLOR_RUN_H