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=88831dbf6d444a6d2d5027754fb37526c0703c9b;hp=6b7505d4c412682b2aa75ba7dd666604c9d84b2b;hb=bef7b82cd945f4d2fd3b4d776184c1fc0851c8c6;hpb=eac074bfe3a3c144f55583135515d2c8d16eb479 diff --git a/dali-toolkit/internal/text/text-controller.h b/dali-toolkit/internal/text/text-controller.h index 6b7505d..88831db 100755 --- a/dali-toolkit/internal/text/text-controller.h +++ b/dali-toolkit/internal/text/text-controller.h @@ -25,9 +25,10 @@ // INTERNAL INCLUDES #include #include +#include +#include #include #include -#include #include #include @@ -348,13 +349,13 @@ public: // Configure the text controller. * @brief Sets the text's wrap mode * @param[in] text wrap mode The unit of wrapping */ - void SetLineWrapMode( Layout::LineWrap::Mode textWarpMode ); + void SetLineWrapMode( Text::LineWrap::Mode textWarpMode ); /** * @brief Retrieve text wrap mode previously set. * @return text wrap mode */ - Layout::LineWrap::Mode GetLineWrapMode() const; + Text::LineWrap::Mode GetLineWrapMode() const; /** * @brief Enable or disable the text elide. @@ -759,6 +760,20 @@ public: // Default style & Input style const Vector4& GetShadowColor() const; /** + * @brief Set the shadow blur radius. + * + * @param[in] shadowBlurRadius The shadow blur radius, 0,0 indicates no blur. + */ + void SetShadowBlurRadius( const float& shadowBlurRadius ); + + /** + * @brief Retrieve the shadow blur radius. + * + * @return The shadow blur radius. + */ + const float& GetShadowBlurRadius() const; + + /** * @brief Set the underline color. * * @param[in] color color of underline. @@ -819,14 +834,14 @@ public: // Default style & Input style * * @param[in] width The width in pixels of the outline, 0 indicates no outline */ - void SetOutlineWidth( float width ); + void SetOutlineWidth( unsigned int width ); /** * @brief Retrieves the width of an outline * * @return The width of the outline. */ - float GetOutlineWidth() const; + unsigned int GetOutlineWidth() const; /** * @brief Sets the emboss's properties string. @@ -1141,6 +1156,12 @@ public: // Queries & retrieves. */ void GetPlaceholderProperty( Property::Map& map ); + /** + * @brief Checks text direction. + * @return The text direction. + */ + Toolkit::DevelText::TextDirection::Type GetTextDirection(); + public: // Relayout. /** @@ -1364,11 +1385,12 @@ private: // Events. void SelectEvent( float x, float y, bool selectAll ); /** - * @brief Helper to KeyEvent() to handle the backspace case. + * @brief Helper to KeyEvent() to handle the backspace or delete key case. * + * @param[in] keyCode The keycode for the key pressed * @return True if a character was deleted. */ - bool BackspaceKeyEvent(); + bool DeleteEvent( int keyCode ); private: // Helpers.