X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fbounded-paragraph-run.h;h=3547095c47542d21a954a75abb129d86aeeab860;hp=ec15ff4d590e272403f2a4ff07b0fc0595f1d774;hb=ba19ce879959e7cfbf7c9bcf6a29c0807518ba0a;hpb=7946b5a1a7188e31803ac8de5c4a8ea3cbc560cc diff --git a/dali-toolkit/internal/text/bounded-paragraph-run.h b/dali-toolkit/internal/text/bounded-paragraph-run.h index ec15ff4..3547095 100644 --- a/dali-toolkit/internal/text/bounded-paragraph-run.h +++ b/dali-toolkit/internal/text/bounded-paragraph-run.h @@ -22,7 +22,7 @@ #include // INTERNAL INCLUDES -#include +#include #include namespace Dali @@ -40,27 +40,40 @@ namespace Text * Bounded-paragraph could contain multi paragraphs that have been breaked by Paragraph Separators or appropriate Newline Functions. * This will be used to handle information for the attributes of markup tag. Like TextAlign, TextDirection, TextIndent, LineHeight, etc. */ -struct BoundedParagraphRun +struct BoundedParagraphRun : public AbstractStyleCharacterRun { /** * Default constructor to set the default values of bitfields */ BoundedParagraphRun() - : characterRun{}, + : AbstractStyleCharacterRun(), horizontalAlignment(Text::HorizontalAlignment::BEGIN), - horizontalAlignmentDefined{false} + relativeLineSize(1), + horizontalAlignmentDefined{false}, + relativeLineSizeDefined(false) { } - CharacterRun characterRun; ///< The initial character index within the whole text and the number of characters of the run. Text::HorizontalAlignment::Type horizontalAlignment; ///< The paragraph horizontal alignment. Values "BEGIN" "CENTER" "END". + float relativeLineSize; ///< The relative line height to be used for this paragaraph. bool horizontalAlignmentDefined : 1; ///< Whether the horizontal alignment is defined. + bool relativeLineSizeDefined : 1; ///< Whether the relative line height is defined for this paragraph. }; } // namespace Text } // namespace Toolkit +// Allow BoundedParagraphRun to be treated as a POD type +template<> +struct TypeTraits : public Dali::BasicTypes +{ + enum + { + IS_TRIVIAL_TYPE = true + }; +}; + } // namespace Dali #endif // DALI_TOOLKIT_TEXT_BOUNDED_PARAGRAPH_RUN_H