X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller.h;h=3fa7c60685ad8806dbffb873f3dd0de408a6c05b;hp=3fe443923c10f90ecc5b78c1dcf308c891263579;hb=beacebbb139c15b44535e3d28c835fc31b412c7c;hpb=451d7a012c895c2578a29ba929dc61a6d959209a diff --git a/dali-toolkit/internal/text/text-controller.h b/dali-toolkit/internal/text/text-controller.h index 3fe4439..3fa7c60 100644 --- a/dali-toolkit/internal/text/text-controller.h +++ b/dali-toolkit/internal/text/text-controller.h @@ -103,7 +103,49 @@ public: * * @return A string of UTF-8 characters. */ - void GetText( std::string& text ); + void GetText( std::string& text ) const; + + /** + * @brief Set the default font family. + * + * @param[in] defaultFontFamily The default font family. + */ + void SetDefaultFontFamily( const std::string& defaultFontFamily ); + + /** + * @brief Retrieve the default font family. + * + * @return The default font family. + */ + const std::string& GetDefaultFontFamily() const; + + /** + * @brief Set the default font style. + * + * @param[in] defaultFontStyle The default font style. + */ + void SetDefaultFontStyle( const std::string& defaultFontStyle ); + + /** + * @brief Retrieve the default font style. + * + * @return The default font style. + */ + const std::string& GetDefaultFontStyle() const; + + /** + * @brief Set the default point size. + * + * @param[in] defaultFontStyle The default point size. + */ + void SetDefaultPointSize( float pointSize ); + + /** + * @brief Retrieve the default point size. + * + * @return The default point size. + */ + float GetDefaultPointSize() const; /** * @brief Called to enable text input. @@ -209,6 +251,9 @@ 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; };