|
|
1.1 root 1: //
2: // nono
3: // Copyright (C) 2020 nono project
4: // Licensed under nono-license.txt
5: //
6:
7: //
8: // LUNA LCD パネル
9: //
10:
11: #pragma once
12:
13: #include "wxsubwindow.h"
1.1.1.6 root 14: #include "wxbitmappanel.h"
1.1.1.7 ! root 15: #include "wxmonitor.h"
1.1 root 16:
17: // LCD パネル
1.1.1.6 root 18: class WXLCDPanel : public WXBitmapPanel
1.1 root 19: {
1.1.1.6 root 20: using inherited = WXBitmapPanel;
1.1 root 21: public:
22: WXLCDPanel(wxWindow *parent);
1.1.1.2 root 23: virtual ~WXLCDPanel() override;
1.1 root 24:
25: private:
1.1.1.5 root 26: void OnLCDChanged(wxCommandEvent& event);
1.1.1.6 root 27: void Draw() override;
28: void DrawChar(int x, int y, uint8 ch);
1.1 root 29:
30: const uint8 *ddram {};
31: };
32:
33: // LCD ウィンドウ
34: class WXLCDWindow : public WXSubWindow
35: {
36: using inherited = WXSubWindow;
37: public:
1.1.1.4 root 38: WXLCDWindow(wxWindow *parent);
1.1.1.2 root 39: virtual ~WXLCDWindow() override;
1.1 root 40:
41: private:
42: WXLCDPanel *panel {};
43: };
44:
45: // LCD キャラクタパネル
1.1.1.6 root 46: class WXLCDCharPanel : public WXBitmapPanel
1.1 root 47: {
1.1.1.6 root 48: using inherited = WXBitmapPanel;
1.1 root 49: public:
50: WXLCDCharPanel(wxWindow *parent);
1.1.1.2 root 51: virtual ~WXLCDCharPanel() override;
1.1 root 52:
53: private:
1.1.1.6 root 54: void Draw() override;
1.1 root 55: };
56:
57: // LCD キャラクタウィンドウ
58: class WXLCDMonitor : public WXSubWindow
59: {
60: using inherited = WXSubWindow;
61: public:
1.1.1.4 root 62: WXLCDMonitor(wxWindow *parent);
1.1.1.2 root 63: virtual ~WXLCDMonitor() override;
1.1 root 64:
65: private:
1.1.1.7 ! root 66: WXMonitorPanel *monpanel {};
1.1 root 67: WXLCDCharPanel *chrpanel {};
68: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.