1 #ifndef __DALI_INTERNAL_EMOJI_FACTORY_H__
2 #define __DALI_INTERNAL_EMOJI_FACTORY_H__
5 * Copyright (c) 2014 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.
26 #include <dali/public-api/common/map-wrapper.h>
35 * EmojiFactory is an object that store emoji file names indexing them by its unicode value.
42 * Default constructor.
49 virtual ~EmojiFactory();
52 * Retrieves whether the character is an emoji.
54 * @param[in] character The character to be checked.
56 * @return \e true if the emoji has been inserted. Otherwise it return \e false.
58 bool IsEmoji( uint32_t character ) const;
61 * Retrieves the emoji file name for the given character.
63 * @param[in] character The given character.
65 * @return A string with the emoji file name or a void string if the character is not an emoji.
67 std::string GetEmojiFileNameFromCharacter( uint32_t character ) const;
72 EmojiFactory( const EmojiFactory& rhs );
75 EmojiFactory& operator=( const EmojiFactory& rhs );
78 std::map<uint32_t,std::string> mColorGlyphs; ///< Emoji map with the file names indexed by the unicode.
79 uint32_t mMinEmoji; ///< The minimum emoji code.
82 } // namespace Internal
86 #endif // __DALI_INTERNAL_EMOJI_FACTORY_H__