1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-11-19 11:31:16 +00:00
r65emu/utftdisplay.h

24 lines
482 B
C
Raw Normal View History

2014-11-10 14:16:45 +00:00
#ifndef __UTFT_DISPLAY_H__
#define __UTFT_DISPLAY_H__
class Stream;
2014-11-13 14:10:11 +00:00
extern uint8_t SmallFont[];
2014-10-21 18:41:44 +00:00
class UTFTDisplay: public Memory::Device {
public:
2014-11-13 14:10:11 +00:00
void begin(unsigned bg, unsigned fg, uint8_t *font = SmallFont);
void clear();
void error(char *);
void status(const char *);
virtual void checkpoint(Stream &s) = 0;
virtual void restore(Stream &s) = 0;
protected:
UTFTDisplay(unsigned size): Memory::Device(size) {}
unsigned _bg, _fg, _cx, _cy, _dx, _dy, _oxs;
};
#endif