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=a64d26f9df8746701db30a14592dc3b539f74116;hp=e2b0f0c39edf30d0ab4204e6a59d49511ef1cbfd;hb=b694e7e2ae624e206e1548b1a863c554eb9cd4d7;hpb=c09d7cc6fb3a76ae145ca9195e773d6174020088 diff --git a/dali-toolkit/internal/text/text-effects-style.h b/dali-toolkit/internal/text/text-effects-style.h index e2b0f0c..a64d26f 100755 --- a/dali-toolkit/internal/text/text-effects-style.h +++ b/dali-toolkit/internal/text/text-effects-style.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_INTERNAL_TEXT_EFFECTS_STYLE_H__ -#define __DALI_TOOLKIT_INTERNAL_TEXT_EFFECTS_STYLE_H__ +#ifndef DALI_TOOLKIT_INTERNAL_TEXT_EFFECTS_STYLE_H +#define DALI_TOOLKIT_INTERNAL_TEXT_EFFECTS_STYLE_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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. @@ -86,6 +86,20 @@ bool ParseOutlineProperties( const Property::Map& outlineProperties, bool& widthDefined, 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,10 +180,30 @@ 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 } // namespace Dali -#endif // __DALI_TOOLKIT_INTERNAL_TEXT_EFFECTS_STYLE_H__ +#endif // DALI_TOOLKIT_INTERNAL_TEXT_EFFECTS_STYLE_H