1
0
mirror of https://github.com/jscrane/r65emu.git synced 2026-04-19 06:27:27 +00:00
Files
r65emu/utftdisplay.h
T

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__
2014-10-19 16:06:05 +01:00
class Stream;
2014-11-13 14:10:11 +00:00
extern uint8_t SmallFont[];
2014-10-19 16:06:05 +01:00
2014-10-21 19:41:44 +01:00
class UTFTDisplay: public Memory::Device {
2014-10-19 16:06:05 +01:00
public:
2014-11-13 14:10:11 +00:00
void begin(unsigned bg, unsigned fg, uint8_t *font = SmallFont);
2014-10-19 16:06:05 +01:00
void clear();
void error(char *);
void status(const char *);
virtual void checkpoint(Stream &s) = 0;
virtual void restore(Stream &s) = 0;
2014-10-19 16:06:05 +01:00
protected:
UTFTDisplay(unsigned size): Memory::Device(size) {}
unsigned _bg, _fg, _cx, _cy, _dx, _dy, _oxs;
};
#endif