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=edae1e24a06234612e63aafe056138f1f922013b;hb=HEAD;hpb=f0a677dd7b2485269f34dad6f519c7304da6e0eb diff --git a/dali-toolkit/internal/text/color-run.h b/dali-toolkit/internal/text/color-run.h index edae1e2..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) 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. @@ -18,12 +18,8 @@ * */ -// EXTERNAL INCLUDES -#include - // INTERNAL INCLUDES -#include -#include +#include namespace Dali { @@ -34,16 +30,33 @@ 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