X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fcharacter-spacing-character-run.h;h=f256c6af5cec0cc82e384c2bd1f57629b1813183;hb=ba19ce879959e7cfbf7c9bcf6a29c0807518ba0a;hp=5c4238e6d80628498737f78880f6bbbdf56ca462;hpb=a5167c61104580ae0ab724f904537a3a01ea3061;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/character-spacing-character-run.h b/dali-toolkit/internal/text/character-spacing-character-run.h index 5c4238e..f256c6a 100644 --- a/dali-toolkit/internal/text/character-spacing-character-run.h +++ b/dali-toolkit/internal/text/character-spacing-character-run.h @@ -18,11 +18,8 @@ * */ -// EXTERNAL INCLUDES -#include - // INTERNAL INCLUDES -#include +#include namespace Dali { @@ -33,19 +30,19 @@ namespace Text /** * @brief Run of character-spacing characters with same properties. */ -struct CharacterSpacingCharacterRun +struct CharacterSpacingCharacterRun : public AbstractStyleCharacterRun { /** - * Default constructor to set the default values of bitfields + * @brief Constructor. + * Default constructor to set the default values */ CharacterSpacingCharacterRun() - : characterRun{}, + : AbstractStyleCharacterRun(), value{0.f} //The default value is 0.f which does nothing. { } - CharacterRun characterRun; ///< The initial character index and the number of characters of the run. - float value; /// The spaces between characters in Pixels. A positive value will make the characters far apart (expanded) and a negative value will bring them closer (condensed). + float value; /// The spaces between characters in Pixels. A positive value will make the characters far apart (expanded) and a negative value will bring them closer (condensed). //TODO: Add unit property to choose between Pixel or Scale (%) }; @@ -54,6 +51,16 @@ struct CharacterSpacingCharacterRun } // 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_CHARACTER_SPACING_CHARACTER_RUN_H