X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fstrikethrough-character-run.h;h=1d0bc87ddda398b862f3a66f05346905006d0ed8;hp=3f0e1f4588e6ac9f44ad773f7807b389837dcbe5;hb=HEAD;hpb=120b951f49a8f1bb98adc557b9415dd044632e5d diff --git a/dali-toolkit/internal/text/strikethrough-character-run.h b/dali-toolkit/internal/text/strikethrough-character-run.h index 3f0e1f4..1d0bc87 100644 --- a/dali-toolkit/internal/text/strikethrough-character-run.h +++ b/dali-toolkit/internal/text/strikethrough-character-run.h @@ -22,7 +22,8 @@ #include // INTERNAL INCLUDES -#include +#include +#include namespace Dali { @@ -33,17 +34,34 @@ namespace Text /** * @brief Run of strikethrough characters with same properties. */ -struct StrikethroughCharacterRun +struct StrikethroughCharacterRun : public AbstractStyleCharacterRun { - CharacterRun characterRun; ///< The initial character index and the number of characters of the run. - Vector4 color; ///< The color of strikethrough. - bool isColorSet; ///< If the color of strikethrough is set. + /** + * Default constructor to set the default values of bitfields + */ + StrikethroughCharacterRun() + : AbstractStyleCharacterRun(), + properties{} + { + } + + StrikethroughStyleProperties properties; /// The properties of strikethrough style }; } // namespace Text } // namespace Toolkit +// Allow StrikethroughCharacterRun to be treated as a POD type +template<> +struct TypeTraits : public Dali::BasicTypes +{ + enum + { + IS_TRIVIAL_TYPE = true + }; +}; + } // namespace Dali #endif // DALI_TOOLKIT_TEXT_STRIKETHROUGH_CHARACTER_RUN_H