mirror of
https://github.com/jscrane/r65emu.git
synced 2025-01-13 23:30:02 +00:00
24 lines
482 B
C++
24 lines
482 B
C++
#ifndef __UTFT_DISPLAY_H__
|
|
#define __UTFT_DISPLAY_H__
|
|
|
|
class Stream;
|
|
extern uint8_t SmallFont[];
|
|
|
|
class UTFTDisplay: public Memory::Device {
|
|
public:
|
|
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
|