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=7301e70fd82497edab056e8f510ff0c16a371ce2;hp=96856ef0a16592a0d29f462468ce34ede714cf9e;hb=66521be1c480614a631f58d77be161e1c247e35f;hpb=bd2d757678d8d92dd3f25101b9ad5fc34010ab09 diff --git a/dali-toolkit/internal/text/text-controller.h b/dali-toolkit/internal/text/text-controller.h index 96856ef..7301e70 100644 --- a/dali-toolkit/internal/text/text-controller.h +++ b/dali-toolkit/internal/text/text-controller.h @@ -121,6 +121,15 @@ public: // Enumerated types. PLACEHOLDER_TYPE_INACTIVE, }; + /** + * @brief Enumeration for Font Size Type. + */ + enum FontSizeType + { + POINT_SIZE, // The size of font in points. + PIXEL_SIZE // The size of font in pixels. + }; + struct NoTextTap { enum Action @@ -502,18 +511,20 @@ public: // Default style & Input style FontSlant GetDefaultFontSlant() const; /** - * @brief Set the default point size. + * @brief Set the default font size. * - * @param[in] pointSize The default point size. + * @param[in] size The default font size. + * @param[in] type The font size type is point size or pixel size */ - void SetDefaultPointSize( float pointSize ); + void SetDefaultFontSize( float fontSize, FontSizeType type ); /** * @brief Retrieve the default point size. * + * @param[in] type The font size type * @return The default point size. */ - float GetDefaultPointSize() const; + float GetDefaultFontSize( FontSizeType type ) const; /** * @brief Sets the text's default color.