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=73a9a1c5646f4198d34aa1b29dd9796f6ce81fc7;hb=HEAD;hpb=32b0b5f6c65842c8bd1140b1eeb9691fdca0c866 diff --git a/dali-toolkit/internal/text/color-run.h b/dali-toolkit/internal/text/color-run.h index 73a9a1c..75bd27b 100644 --- a/dali-toolkit/internal/text/color-run.h +++ b/dali-toolkit/internal/text/color-run.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TEXT_COLOR_RUN_H__ -#define __DALI_TOOLKIT_TEXT_COLOR_RUN_H__ +#ifndef DALI_TOOLKIT_TEXT_COLOR_RUN_H +#define DALI_TOOLKIT_TEXT_COLOR_RUN_H /* - * Copyright (c) 2015 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__ +#endif // DALI_TOOLKIT_TEXT_COLOR_RUN_H