X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fhidden-text.h;h=70d4a829ef07449b1ad7cab9521491b1839a54bf;hp=90ca9f81d11e417bc9e82232cdc23cc892830cfe;hb=646440beeb663fc5efcccadeba73dd46016ed1b3;hpb=410125f32fcd135226a2a0a668b2855ea9e17a69 diff --git a/dali-toolkit/internal/text/hidden-text.h b/dali-toolkit/internal/text/hidden-text.h index 90ca9f8..70d4a82 100644 --- a/dali-toolkit/internal/text/hidden-text.h +++ b/dali-toolkit/internal/text/hidden-text.h @@ -1,8 +1,8 @@ -#ifndef __DALI_HIDDEN_TEXT_H__ -#define __DALI_HIDDEN_TEXT_H__ +#ifndef DALI_HIDDEN_TEXT_H +#define DALI_HIDDEN_TEXT_H /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -23,18 +23,15 @@ #include // INTERNAL INCLUDES -#include #include +#include namespace Dali { - namespace Toolkit { - namespace Text { - /** * Class to handle the hidden text */ @@ -44,7 +41,6 @@ public: class Observer { public: - /** * @brief Invoked when the time to show last character is expired */ @@ -55,28 +51,27 @@ public: * @brief Constructor * @param[in] observer The Observer pointer. */ - HiddenText( Observer* observer ); + HiddenText(Observer* observer); public: // Intended for internal use - /** * @brief Used to set options of hidden text * @param[in] map The property map describing the option */ - void SetProperties( const Property::Map& map ); + void SetProperties(const Property::Map& map); /** * @brief Retrieve property map of hidden text options * @param[out] map The hidden text option */ - void GetProperties( Property::Map& map ); + void GetProperties(Property::Map& map); /** * @brief Convert source text to destination text according to current option * @param[in] source The original text * @param[out] destination The applied text */ - void Substitute( const Vector& source, Vector& destination ); + void Substitute(const Vector& source, Vector& destination); /** * @brief Invoked when the timer is expired @@ -84,14 +79,13 @@ public: // Intended for internal use bool OnTick(); private: - - Timer mTimer; + Timer mTimer; Observer* mObserver; - int mHideMode; - int mSubstituteText; - int mDisplayDuration; - int mSubstituteCount; - Length mPreviousTextCount; + int mHideMode; + int mSubstituteText; + int mDisplayDuration; + int mSubstituteCount; + Length mPreviousTextCount; }; } // namespace Text @@ -100,4 +94,4 @@ private: } // namespace Dali -#endif // __DALI_HIDDEN_TEXT_H__ +#endif // DALI_HIDDEN_TEXT_H