Support Markup Underline attributes
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / underlined-character-run.h
index 99d5967..4024dff 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_TOOLKIT_TEXT_UNDERLINED_CHARACTER_RUN_H
 
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@
 
 // INTERNAL INCLUDES
 #include <dali-toolkit/internal/text/character-run.h>
-#include <dali-toolkit/internal/text/glyph-run.h>
+#include <dali-toolkit/internal/text/underline-style-properties.h>
 
 namespace Dali
 {
@@ -36,10 +36,17 @@ namespace Text
  */
 struct UnderlinedCharacterRun
 {
-  CharacterRun characterRun; ///< The initial character index and the number of characters of the run.
-  //TODO: add properties like color, height and style
-  //Vector4      color;       ///< The color of underline.
-  //float        height;      ///< The height of underline.
+  /**
+   * Default constructor to set the default values of bitfields
+   */
+  UnderlinedCharacterRun()
+  : characterRun{},
+    properties{}
+  {
+  }
+
+  CharacterRun             characterRun; ///< The initial character index and the number of characters of the run.
+  UnderlineStyleProperties properties;   /// The properties of underline style
 };
 
 } // namespace Text