[dali_2.3.24] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / anchor.h
index d2c7384..0538f44 100644 (file)
@@ -35,6 +35,15 @@ struct Anchor
   CharacterIndex startIndex; ///< The character's start index of the anchor within the string.
   CharacterIndex endIndex;   ///< The character's end index of the anchor within the string.
   char*          href;       ///< The url path
+
+  uint32_t colorRunIndex;               ///< RunIndex of color run, used to change color when property updated or clicked.
+  uint32_t underlinedCharacterRunIndex; ///< RunIndex of underline run, used to change color when property updated or clicked.
+
+  Vector4 markupClickedColor; ///< The markup color of the anchor when clicked. if there is no markup attribute, the default color stored in the controller is used.
+
+  bool     isClicked               = false; ///< Whether the anchor is clicked or not.
+  bool     isMarkupColorSet        = false; ///< Whether the markup color has been set or not.
+  bool     isMarkupClickedColorSet = false; ///< Whether the markup clicked color has been set or not.
 };
 
 } // namespace Text