mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-12-28 21:29:34 +00:00
39 lines
743 B
C++
39 lines
743 B
C++
#ifndef __APPLEUI_H
|
|
#define __APPLEUI_H
|
|
|
|
#include "vmui.h"
|
|
|
|
// Element IDs
|
|
enum {
|
|
UIeOverlay = 0,
|
|
UIeDisk1_state = 1,
|
|
UIeDisk2_state = 2,
|
|
UIeDisk1_activity = 3,
|
|
UIeDisk2_activity = 4,
|
|
UIePowerPercentage = 5,
|
|
};
|
|
|
|
class AppleUI : public VMui {
|
|
public:
|
|
AppleUI();
|
|
~AppleUI();
|
|
|
|
virtual void drawStaticUIElement(uint8_t element);
|
|
virtual void drawOnOffUIElement(uint8_t element, bool state);
|
|
virtual void drawPercentageUIElement(uint8_t element, uint8_t percent);
|
|
|
|
void drawBatteryStatus(uint8_t percent);
|
|
|
|
virtual void blit();
|
|
|
|
private:
|
|
volatile bool redrawFrame;
|
|
volatile bool redrawDriveLatches;
|
|
volatile bool redrawDriveActivity;
|
|
bool driveInserted[2];
|
|
bool driveActivity[2];
|
|
};
|
|
|
|
|
|
#endif
|