1 #ifndef DALI_HIDDEN_TEXT_H
2 #define DALI_HIDDEN_TEXT_H
5 * Copyright (c) 2021 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/internal/text/text-definitions.h>
27 #include <dali-toolkit/public-api/controls/text-controls/hidden-input-properties.h>
36 * Class to handle the hidden text
38 class HiddenText : public ConnectionTracker
45 * @brief Invoked when the time to show last character is expired
47 virtual void DisplayTimeExpired() = 0;
52 * @param[in] observer The Observer pointer.
54 HiddenText(Observer* observer);
56 public: // Intended for internal use
58 * @brief Used to set options of hidden text
59 * @param[in] map The property map describing the option
61 void SetProperties(const Property::Map& map);
64 * @brief Retrieve property map of hidden text options
65 * @param[out] map The hidden text option
67 void GetProperties(Property::Map& map);
70 * @brief Convert source text to destination text according to current option
71 * @param[in] source The original text
72 * @param[out] destination The applied text
74 void Substitute(const Vector<Character>& source, Vector<Character>& destination);
77 * @brief Invoked when the timer is expired
88 Length mPreviousTextCount;
93 } // namespace Toolkit
97 #endif // DALI_HIDDEN_TEXT_H