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=f64da8ccc2a10fe71b22fdfc4cf79ab238d9a0de;hp=d62101e02566f1705da5455c4aa6351cca5c8c28;hb=fdd98f05f6ca6fbb01b5f3b6cddbb09e121abf78;hpb=646440beeb663fc5efcccadeba73dd46016ed1b3 diff --git a/dali-toolkit/internal/text/text-editable-control-interface.h b/dali-toolkit/internal/text/text-editable-control-interface.h index d62101e..f64da8c 100644 --- a/dali-toolkit/internal/text/text-editable-control-interface.h +++ b/dali-toolkit/internal/text/text-editable-control-interface.h @@ -56,7 +56,7 @@ public: /** * @brief Called to signal that caret (cursor position) has been moved. */ - virtual void CursorMoved(unsigned int position) = 0; + virtual void CursorPositionChanged(unsigned int oldPosition, unsigned int newPosition) = 0; /** * @brief Called to signal that text has been inserted or deleted. @@ -88,9 +88,10 @@ public: * @brief Add a decoration. * * @param[in] decoration The actor displaying a decoration. + * @param[in] type Whether this decoration is a layer or not, which layer it is. * @param[in] needsClipping Whether the actor needs clipping. */ - virtual void AddDecoration(Actor& actor, bool needsClipping) = 0; + virtual void AddDecoration(Actor& actor, DecorationType type, bool needsClipping) = 0; /** * @brief Gets the color of the control. @@ -112,6 +113,23 @@ public: * @param[in] editable The editable status. */ virtual void SetEditable(bool editable) = 0; + + /** + * @brief Called to copy the selected text. + * @return The copied text. + */ + virtual string CopyText() = 0; + + /** + * @brief Called to cut the selected text. + * @return The cut text. + */ + virtual string CutText() = 0; + + /** + * @brief Called to paste the most recent clipboard text item into the control. + */ + virtual void PasteText() = 0; }; } // namespace Text