X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller.h;h=ebad67018da800990ead8a8880ff8b8fbfbd411c;hb=260c832bfaa0294e74a4f96d321f149adf09a3ce;hp=ad5c09a173c97c396cd97388c4ae736b5da3f9a3;hpb=8a358acc76e2d526e5ce16a048592e7c944d6a7d;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 ad5c09a..ebad670 100644 --- a/dali-toolkit/internal/text/text-controller.h +++ b/dali-toolkit/internal/text/text-controller.h @@ -2,7 +2,7 @@ #define __DALI_TOOLKIT_TEXT_CONTROLLER_H__ /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2016 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -305,22 +305,6 @@ public: const std::string& GetDefaultFontFamily() const; /** - * @brief Sets the font's style string. - * - * @note The style set may be changed by the underlying font system. The string is stored to be recovered. - * - * @param[in] style The font's style string. - */ - void SetDefaultFontStyle( const std::string& style ); - - /** - * @brief Retrieves the font's style. - * - * @return The font's style. - */ - const std::string& GetDefaultFontStyle() const; - - /** * @brief Sets the default font weight. * * @param[in] weight The font weight. @@ -328,6 +312,11 @@ public: void SetDefaultFontWeight( FontWeight weight ); /** + * @brief Whether the font's weight has been defined. + */ + bool IsDefaultFontWeightDefined() const; + + /** * @brief Retrieves the default font weight. * * @return The default font weight. @@ -342,6 +331,11 @@ public: void SetDefaultFontWidth( FontWidth width ); /** + * @brief Whether the font's width has been defined. + */ + bool IsDefaultFontWidthDefined() const; + + /** * @brief Retrieves the default font width. * * @return The default font width. @@ -356,6 +350,11 @@ public: void SetDefaultFontSlant( FontSlant slant ); /** + * @brief Whether the font's slant has been defined. + */ + bool IsDefaultFontSlantDefined() const; + + /** * @brief Retrieves the default font slant. * * @return The default font slant. @@ -587,20 +586,6 @@ public: const std::string& GetInputFontFamily() const; /** - * @brief Sets the input text's font style. - * - * @param[in] fontStyle The input text's font style. - */ - void SetInputFontStyle( const std::string& fontStyle ); - - /** - * @brief Retrieves the input text's font style. - * - * @return The input text's font style. - */ - const std::string& GetInputFontStyle() const; - - /** * @brief Sets the input font's weight. * * @param[in] weight The input font's weight. @@ -608,6 +593,11 @@ public: void SetInputFontWeight( FontWeight weight ); /** + * @return Whether the font's weight has been defined. + */ + bool IsInputFontWeightDefined() const; + + /** * @brief Retrieves the input font's weight. * * @return The input font's weight. @@ -622,6 +612,11 @@ public: void SetInputFontWidth( FontWidth width ); /** + * @return Whether the font's width has been defined. + */ + bool IsInputFontWidthDefined() const; + + /** * @brief Retrieves the input font's width. * * @return The input font's width. @@ -636,6 +631,11 @@ public: void SetInputFontSlant( FontSlant slant ); /** + * @return Whether the font's slant has been defined. + */ + bool IsInputFontSlantDefined() const; + + /** * @brief Retrieves the input font's slant. * * @return The input font's slant. @@ -782,6 +782,19 @@ public: void ProcessModifyEvents(); /** + * @return Whether the queue of input style changed signals is empty. + */ + bool IsInputStyleChangedSignalsQueueEmpty(); + + /** + * @brief Process all pending input style changed signals. + * + * Calls the Text::ControlInterface::InputStyleChanged() method which is overriden by the + * text controls. Text controls may send signals to state the input style has changed. + */ + void ProcessInputStyleChangedSignals(); + + /** * @brief Used to remove placeholder text. */ void ResetText();