Use the line ascender and descender.
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / line-run.h
index ad25d59..a71dc0f 100644 (file)
  *
  */
 
+// EXTERNAL INCLUDES
+#include <dali/public-api/math/vector2.h>
+
 // INTERNAL INCLUDES
-#include <dali-toolkit/internal/text/text-definitions.h>
+#include <dali-toolkit/internal/text/character-run.h>
 
 namespace Dali
 {
@@ -35,9 +38,14 @@ namespace Text
  */
 struct LineRun
 {
-  GlyphIndex glyphIndex;     ///< The initial glyph index.
-  Length     numberOfGlyphs; ///< The number of characters of the run.
-  // VCC More info to be added. i.e the size, ...
+  GlyphIndex         glyphIndex;     ///< The initial glyph index.
+  Length             numberOfGlyphs; ///< The number of glyphs of the run.
+  CharacterRun       characterRun;   ///< The initial character and the number of characters.
+  float              width;          ///< The line's width.
+  float              ascender;       ///< The line's ascender.
+  float              descender;      ///< The line's descender.
+  float              extraLength;    ///< The length of the white spaces at the end of the line.
+  CharacterDirection direction;      ///< Direction of the first character of the paragraph.
 };
 
 } // namespace Text