2014-10-19 15:06:05 +00:00
|
|
|
#ifndef _UTFT_DISPLAY_H
|
|
|
|
#define _UTFT_DISPLAY_H
|
|
|
|
|
|
|
|
class Stream;
|
|
|
|
|
2014-10-20 18:19:02 +00:00
|
|
|
class UTFTDisplay: public Memory::Device, public Checkpointable {
|
2014-10-19 15:06:05 +00:00
|
|
|
public:
|
|
|
|
void begin(unsigned bg, unsigned fg);
|
|
|
|
void clear();
|
|
|
|
void error(char *);
|
|
|
|
void status(const char *);
|
|
|
|
|
2014-10-20 18:19:02 +00:00
|
|
|
virtual void checkpoint(Stream &s) = 0;
|
|
|
|
virtual void restore(Stream &s) = 0;
|
|
|
|
|
2014-10-19 15:06:05 +00:00
|
|
|
protected:
|
|
|
|
UTFTDisplay(unsigned size): Memory::Device(size) {}
|
|
|
|
|
|
|
|
unsigned _bg, _fg, _cx, _cy, _dx, _dy, _oxs;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|