- void AddHighlight( float x1, float y1, float x2, float y2 );
+ void AddHighlight(unsigned int index, const Vector4& quad);
+
+ /**
+ * @brief Sets the min 'x,y' coordinates and the size of the highlighted box.
+ *
+ * It's used to set the size and position of the highlight's actor and to translate each highlight quad from
+ * decorator's coordinates to the local coords of the highlight's actor.
+ *
+ * @param[in] position The position of the highlighted text in decorator's coords.
+ * @param[in] size The size of the highlighted text.
+ * @param[in] outlineOffset The outline's offset.
+ */
+ void SetHighLightBox(const Vector2& position,
+ const Size& size,
+ float outlineOffset);