Warning, file /graphics/glaxnimate/src/gui/emoji/emoji_data.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  * SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best>
0003  *
0004  * SPDX-License-Identifier: GPL-3.0-or-later
0005  */
0006 
0007 #ifndef EMOJI_DATA_HPP
0008 #define EMOJI_DATA_HPP
0009 
0010 #include <vector>
0011 #include <QString>
0012 
0013 namespace glaxnimate::emoji {
0014 
0015 struct Emoji
0016 {
0017     QString name;
0018     QString unicode;
0019     QString hex_slug;
0020 };
0021 
0022 struct EmojiSubGroup
0023 {
0024     QString name;
0025     std::vector<Emoji> emoji;
0026 };
0027 
0028 struct EmojiGroup
0029 {
0030     QString name;
0031     std::vector<const EmojiSubGroup*> children;
0032 
0033     static const std::vector<const EmojiGroup*> table;
0034 
0035     const Emoji& first() const
0036     {
0037         return children[0]->emoji[0];
0038     }
0039 };
0040 
0041 } // glaxnimate::emoji
0042 
0043 
0044 
0045 #endif // EMOJI_DATA_HPP