X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-editable-control-interface.h;h=12d4256e86f7abca5b0740c840957ba18943bd55;hb=2512aa2794f3c5ea5841542b9ed9c8c32973540b;hp=af2abd08a19a06956cadec24c157d4cf3ee2dfbb;hpb=0a6073b11b32d2153deb0e4a581a9314eef8ab10;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-editable-control-interface.h b/dali-toolkit/internal/text/text-editable-control-interface.h index af2abd0..12d4256 100644 --- a/dali-toolkit/internal/text/text-editable-control-interface.h +++ b/dali-toolkit/internal/text/text-editable-control-interface.h @@ -56,11 +56,11 @@ public: /** * @brief Called to signal that caret (cursor position) has been moved. */ - virtual void CaretMoved(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. - * + * * @param[in] immediate If true, it immediately emits the signal, if false, only emits once the signal when OnRelayout() is called next time. */ virtual void TextChanged(bool immediate) = 0; @@ -93,6 +93,13 @@ public: virtual void AddDecoration(Actor& actor, bool needsClipping) = 0; /** + * @brief Gets the color of the control. + * + * @param[out] The color of the control. + */ + virtual void GetControlBackgroundColor(Vector4& color) const = 0; + + /** * @brief Editable status (on/off). * * @return true if it can be edit, else false. @@ -105,6 +112,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