X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-effects-style.h;h=436e8d132dd1517aff13fefd6d3d579724373a53;hp=fcc2381ed1859c8effa506160587b15e31835528;hb=fb87251cfeff34418a36798700b81786e522018a;hpb=d0b0cfa4a44953be9af9128885eb6ef5d83a214e diff --git a/dali-toolkit/internal/text/text-effects-style.h b/dali-toolkit/internal/text/text-effects-style.h index fcc2381..436e8d1 100644 --- a/dali-toolkit/internal/text/text-effects-style.h +++ b/dali-toolkit/internal/text/text-effects-style.h @@ -97,6 +97,23 @@ bool ParseBackgroundProperties(const Property::Map& backgroundProperties, Vector4& color); /** + * @brief Parses the strikethrough properties. + * + * @param[in] strikethroughProperties The map with the strikethrough properties. + * @param[out] enabled Whether the strikethrough is enabled. + * @param[out] colorDefined Whether the strikethrough's color is defined. + * @param[out] color The strikethrough's color. + * @param[out] heightDefined Whether the strikethrough's height is defined. + * @param[out] height The strikethrough's height. + */ +bool ParseStrikethroughProperties(const Property::Map& strikethroughProperties, + bool& enabled, + bool& colorDefined, + Vector4& color, + bool& heightDefined, + float& height); + +/** * @brief Sets the underline properties. * * @param[in] controller The text's controller. @@ -108,6 +125,17 @@ bool ParseBackgroundProperties(const Property::Map& backgroundProperties, bool SetUnderlineProperties(ControllerPtr controller, const Property::Value& value, EffectStyle::Type type); /** + * @brief Sets the strikethrough properties. + * + * @param[in] controller The text's controller. + * @param[in] value The values of the strikethrough's properties. + * @param[in] type Whether the property is for the default strikethrough or the input strikethrough. + * + * @return Whether the strikethrough properties have been updated. + */ +bool SetStrikethroughProperties(ControllerPtr controller, const Property::Value& value, EffectStyle::Type type); + +/** * @brief Retrieves the underline's properties. * * @param[in] controller The text's controller. @@ -117,6 +145,15 @@ bool SetUnderlineProperties(ControllerPtr controller, const Property::Value& val void GetUnderlineProperties(ControllerPtr controller, Property::Value& value, EffectStyle::Type type); /** + * @brief Retrieves the strikethrough's properties. + * + * @param[in] controller The text's controller. + * @param[out] value The value of the strikethrough's properties. + * @param[in] type Whether the property is for the default strikethrough or the input strikethrough. + */ +void GetStrikethroughProperties(ControllerPtr controller, Property::Value& value, EffectStyle::Type type); + +/** * @brief Sets the shadow properties. * * @param[in] controller The text's controller.