{}
/**
+ * @brief Called to signal that text has been inserted.
+ */
+ virtual void TextInserted( unsigned int position, unsigned int length, const std::string &content ) = 0;
+
+ /**
+ * @brief Called to signal that text has been deleted.
+ */
+ virtual void TextDeleted( unsigned int position, unsigned int length, const std::string &content ) = 0;
+
+ /**
+ * @brief Called to signal that caret (cursor position) has been moved.
+ */
+ virtual void CaretMoved( unsigned int position ) = 0;
+
+ /**
* @brief Called to signal that text has been inserted or deleted.
*/
virtual void TextChanged() = 0;
* @param[in] needsClipping Whether the actor needs clipping.
*/
virtual void AddDecoration( Actor& actor, bool needsClipping ) = 0;
+
+ /**
+ * @brief Editable status (on/off).
+ *
+ * @return true if it can be edit, else false.
+ */
+ virtual bool IsEditable() const = 0;
+
+ /**
+ * @brief Change the editable status (on/off) .
+ *
+ * @param[in] editable The editable status.
+ */
+ virtual void SetEditable( bool editable ) = 0;
};
} // namespace Text