X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-effects-style.h;h=240a76ebfe292fb788302d585df3bd498bc184a9;hb=b2daddfbd569e5818378fcfc5c842b40aa0b101a;hp=521f52c6b484e1bc0b6487d9bb7ba7e5f730f980;hpb=7a2feca016bee8fcdff261678f31d82c477a2051;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-effects-style.h b/dali-toolkit/internal/text/text-effects-style.h index 521f52c..240a76e 100755 --- a/dali-toolkit/internal/text/text-effects-style.h +++ b/dali-toolkit/internal/text/text-effects-style.h @@ -2,7 +2,7 @@ #define __DALI_TOOLKIT_INTERNAL_TEXT_EFFECTS_STYLE_H__ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -84,7 +84,21 @@ bool ParseOutlineProperties( const Property::Map& outlineProperties, bool& colorDefined, Vector4& color, bool& widthDefined, - float& width ); + unsigned int& width ); + + +/** + * @brief Parses the background properties. + * + * @param[in] backgroundProperties The map with the background properties. + * @param[out] enabled Whether the background is enabled. + * @param[out] colorDefined Whether the background color is defined. + * @param[out] color The background color. + */ +bool ParseBackgroundProperties( const Property::Map& backgroundProperties, + bool& enabled, + bool& colorDefined, + Vector4& color ); /** * @brief Sets the underline properties. @@ -166,6 +180,26 @@ bool SetOutlineProperties( ControllerPtr controller, const Property::Value& valu */ void GetOutlineProperties( ControllerPtr controller, Property::Value& value, EffectStyle::Type type ); +/** + * @brief Sets the background properties. + * + * @param[in] controller The text's controller. + * @param[in] value The values of the background's properties. + * @param[in] type Whether the property is for the default background or the input background. + * + * @return Whether the background properties have been updated. + */ +bool SetBackgroundProperties( ControllerPtr controller, const Property::Value& value, EffectStyle::Type type ); + +/** + * @brief Retrieves the background's properties. + * + * @param[in] controller The text's controller. + * @param[out] value The value of the underline's properties. + * @param[in] type Whether the property is for the default background or the input background. + */ +void GetBackgroundProperties( ControllerPtr controller, Property::Value& value, EffectStyle::Type type ); + } // namespace Text } // namespace Toolkit