X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-editable-control-interface.h;h=6239a68f9aed25c811ccb7b99c202d1241351083;hp=e54704c834641d42af7e5503d4e640f40c2eb3f4;hb=8a647e87a01c5c78451653c1264a9eea81ac9b20;hpb=1ff26466c5458cda1de2997cd4e27b014ff0275a diff --git a/dali-toolkit/internal/text/text-editable-control-interface.h b/dali-toolkit/internal/text/text-editable-control-interface.h index e54704c..6239a68 100644 --- a/dali-toolkit/internal/text/text-editable-control-interface.h +++ b/dali-toolkit/internal/text/text-editable-control-interface.h @@ -46,6 +46,21 @@ public: {} /** + * @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; @@ -69,6 +84,20 @@ public: * @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