X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller.h;h=5ef498daf9bf53f4e4bc2065a49a275bb1ef4286;hb=030e7c680a6eb0e8d87bfdb8ec359a0267ef7db2;hp=a5dd91bc803df4682bc9b70ba982fda02079a45f;hpb=cd7d41bc8e0a0816da28401207091344fbbe0b2c;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-controller.h b/dali-toolkit/internal/text/text-controller.h index a5dd91b..5ef498d 100644 --- a/dali-toolkit/internal/text/text-controller.h +++ b/dali-toolkit/internal/text/text-controller.h @@ -123,6 +123,20 @@ public: void GetPlaceholderText( std::string& text ) const; /** + * @brief Sets the maximum number of characters that can be inserted into the TextModel + * + * @param[in] maxCharacters maximum number of characters to be accepted + */ + void SetMaximumNumberOfCharacters( int maxCharacters ); + + /** + * @brief Sets the maximum number of characters that can be inserted into the TextModel + * + * @param[in] maxCharacters maximum number of characters to be accepted + */ + int GetMaximumNumberOfCharacters(); + + /** * @brief Set the default font family. * * @param[in] defaultFontFamily The default font family. @@ -413,9 +427,9 @@ public: void PanEvent( Gesture::State state, const Vector2& displacement ); /** - * @copydoc Dali::Toolkit::Text::Decorator::Observer::GrabHandleEvent() + * @copydoc Dali::Toolkit::Text::Decorator::Observer::HandleEvent() */ - virtual void GrabHandleEvent( GrabHandleState state, float x, float y ); + virtual void HandleEvent( HandleType handle, HandleState state, float x, float y ); protected: @@ -427,11 +441,6 @@ protected: private: /** - * @brief Request a relayout using the ControlInterface. - */ - void RequestRelayout(); - - /** * @brief Private constructor. */ Controller( ControlInterface& controlInterface ); @@ -446,12 +455,6 @@ private: struct Impl; Impl* mImpl; - - // Avoid allocating this when the user does not specify a font - struct FontDefaults; - - // Avoid allocating this for non-editable controls - struct TextInput; }; } // namespace Text