|
|
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 root 15:
16: // LCD パネル
1.1.1.6 ! root 17: class WXLCDPanel : public WXBitmapPanel
1.1 root 18: {
1.1.1.6 ! root 19: using inherited = WXBitmapPanel;
1.1 root 20: public:
21: WXLCDPanel(wxWindow *parent);
1.1.1.2 root 22: virtual ~WXLCDPanel() override;
1.1 root 23:
24: private:
1.1.1.5 root 25: void OnLCDChanged(wxCommandEvent& event);
1.1.1.6 ! root 26: void Draw() override;
! 27: void DrawChar(int x, int y, uint8 ch);
1.1 root 28:
29: const uint8 *ddram {};
30: };
31:
32: // LCD ウィンドウ
33: class WXLCDWindow : public WXSubWindow
34: {
35: using inherited = WXSubWindow;
36: public:
1.1.1.4 root 37: WXLCDWindow(wxWindow *parent);
1.1.1.2 root 38: virtual ~WXLCDWindow() override;
1.1 root 39:
40: private:
41: WXLCDPanel *panel {};
42: };
43:
44: // LCD キャラクタパネル
1.1.1.6 ! root 45: class WXLCDCharPanel : public WXBitmapPanel
1.1 root 46: {
1.1.1.6 ! root 47: using inherited = WXBitmapPanel;
1.1 root 48: public:
49: WXLCDCharPanel(wxWindow *parent);
1.1.1.2 root 50: virtual ~WXLCDCharPanel() override;
1.1 root 51:
52: private:
1.1.1.6 ! root 53: void Draw() override;
1.1 root 54: };
55:
56: // LCD キャラクタウィンドウ
57: class WXLCDMonitor : public WXSubWindow
58: {
59: using inherited = WXSubWindow;
60: public:
1.1.1.4 root 61: WXLCDMonitor(wxWindow *parent);
1.1.1.2 root 62: virtual ~WXLCDMonitor() override;
1.1 root 63:
64: private:
65: WXTextScreen *monpanel {};
66: WXLCDCharPanel *chrpanel {};
67: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.