// INTERNAL INCLUDES
#include <dali-toolkit/internal/text/character-run.h>
+#include <dali-toolkit/public-api/text/text-enumerations.h>
namespace Dali
{
*/
struct BoundedParagraphRun
{
- CharacterRun characterRun; ///< The initial character index within the whole text and the number of characters of the run.
+ /**
+ * Default constructor to set the default values of bitfields
+ */
+ BoundedParagraphRun()
+ : characterRun{},
+ horizontalAlignment(Text::HorizontalAlignment::BEGIN),
+ 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