X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller.h;h=7301e70fd82497edab056e8f510ff0c16a371ce2;hb=3f83c5b8d17c02cb06043bd1d30ce4d4321f941c;hp=96856ef0a16592a0d29f462468ce34ede714cf9e;hpb=d0b1f18c1f3bd83b55b387c40aa20ba0511fb95c;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 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.