2025-09-04 15:41:28 +08:00
|
|
|
#ifndef EMOJI_COLLECTION_H
|
|
|
|
|
#define EMOJI_COLLECTION_H
|
|
|
|
|
|
2025-09-10 18:43:47 +08:00
|
|
|
#include "lvgl_image.h"
|
|
|
|
|
|
2025-09-04 15:41:28 +08:00
|
|
|
#include <lvgl.h>
|
|
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
|
#include <string>
|
2025-09-10 18:43:47 +08:00
|
|
|
#include <memory>
|
2025-09-04 15:41:28 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// Define interface for emoji collection
|
|
|
|
|
class EmojiCollection {
|
|
|
|
|
public:
|
2025-09-11 03:53:12 +08:00
|
|
|
virtual void AddEmoji(const std::string& name, LvglImage* image);
|
|
|
|
|
virtual const LvglImage* GetEmojiImage(const char* name);
|
|
|
|
|
virtual ~EmojiCollection();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
std::map<std::string, LvglImage*> emoji_collection_;
|
2025-09-04 15:41:28 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class Twemoji32 : public EmojiCollection {
|
|
|
|
|
public:
|
2025-09-11 03:53:12 +08:00
|
|
|
Twemoji32();
|
2025-09-04 15:41:28 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class Twemoji64 : public EmojiCollection {
|
|
|
|
|
public:
|
2025-09-11 03:53:12 +08:00
|
|
|
Twemoji64();
|
2025-09-04 15:41:28 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|