Chat-O-Matic/libs/librunview/Emoticor.h

35 lines
600 B
C
Raw Permalink Normal View History

#ifndef _Emoticor_h_
#define _Emoticor_h_
#include <String.h>
2021-06-30 11:12:57 -05:00
#include <librunview/RunView.h>
#include <librunview/Emoconfig.h>
class Emoticor
{
public:
static Emoticor* Get(); //singleton
void AddText(RunView* fTextView, const char* text, rgb_color cols,
rgb_color font, rgb_color cols2, rgb_color font2);
void LoadConfig(const char*);
Emoconfig* Config();
~Emoticor();
private:
Emoticor();
Emoconfig* fConfig;
void _findTokens(RunView* fTextView, BString text, int tokenstart,
rgb_color cols, rgb_color font, rgb_color cols2,
rgb_color font2);
};
#endif