X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Ftext-controls%2Ftext-editor-devel.h;h=fe8bc2ef72f3c4cc220d9caef91eeb3344cb1395;hp=23f21e8f53190052033b3ee1b9a63468408c7795;hb=a97787d5b7db865cea0b003db309a619877b0144;hpb=6450bfaff9367ce929f3c7769be7fcd365be550f diff --git a/dali-toolkit/devel-api/controls/text-controls/text-editor-devel.h b/dali-toolkit/devel-api/controls/text-controls/text-editor-devel.h index 23f21e8..fe8bc2e 100755 --- a/dali-toolkit/devel-api/controls/text-controls/text-editor-devel.h +++ b/dali-toolkit/devel-api/controls/text-controls/text-editor-devel.h @@ -123,6 +123,12 @@ namespace Property * @details Name "renderingBackend", type Property::INTEGER. */ RENDERING_BACKEND, + + /** + * @brief The maximum number of characters that can be inserted. + * @details Name "maxLength", type Property::INTEGER. + */ + MAX_LENGTH, }; } // namespace Property @@ -135,6 +141,23 @@ namespace Property */ DALI_TOOLKIT_API InputMethodContext GetInputMethodContext( TextEditor textEditor ); +/** + * @brief Max Characters Exceed signal type. + */ +using MaxLengthReachedSignalType = Signal< void ( TextEditor ) >; + +/** + * @brief This signal is emitted when inserted text exceeds the maximum character limit. + * + * A callback of the following type may be connected: + * @code + * void YourCallbackName( TextEditor textEditor ); + * @endcode + * @param[in] textEditor The instance of TextEditor. + * @return The signal to connect to + */ +DALI_TOOLKIT_API MaxLengthReachedSignalType& MaxLengthReachedSignal( TextEditor textEditor ); + } // namespace DevelTextEditor } // namespace Toolkit