1 #ifndef __DALI_HIDDEN_TEXT_H__
2 #define __DALI_HIDDEN_TEXT_H__
5 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/public-api/adaptor-framework/timer.h>
23 #include <dali/public-api/object/property-map.h>
26 #include <dali-toolkit/public-api/controls/text-controls/hidden-input-properties.h>
27 #include <dali-toolkit/internal/text/text-definitions.h>
39 * Class to handle the hidden text
41 class HiddenText : public ConnectionTracker
49 * @brief Invoked when the time to show last character is expired
51 virtual void DisplayTimeExpired() = 0;
56 * @param[in] observer The Observer pointer.
58 HiddenText( Observer* observer );
60 public: // Intended for internal use
63 * @brief Used to set options of hidden text
64 * @param[in] map The property map describing the option
66 void SetProperties( const Property::Map& map );
69 * @brief Retrieve property map of hidden text options
70 * @param[out] map The hidden text option
72 void GetProperties( Property::Map& map );
75 * @brief Convert source text to destination text according to current option
76 * @param[in] source The original text
77 * @param[out] destination The applied text
79 void Substitute( const Vector<Character>& source, Vector<Character>& destination );
82 * @brief Invoked when the timer is expired
94 Length mPreviousTextCount;
99 } // namespace Toolkit
103 #endif // __DALI_HIDDEN_TEXT_H__