--- nono/wx/wxlcdwindow.h 2026/04/29 17:04:45 1.1.1.2 +++ nono/wx/wxlcdwindow.h 2026/04/29 17:04:56 1.1.1.4 @@ -10,7 +10,8 @@ #pragma once -#include "wxheader.h" +#include "wxnono.h" +#include "wxbitmapbuf.h" #include "wxsubwindow.h" // LCD パネル @@ -29,9 +30,7 @@ class WXLCDPanel : public wxPanel const uint8 *ddram {}; - std::unique_ptr bmpbuf {}; - std::unique_ptr image {}; - std::unique_ptr bitmap {}; + WXBitmapBuf bitmap {}; // 描画管理用 uint32 count {}; @@ -45,7 +44,7 @@ class WXLCDWindow : public WXSubWindow { using inherited = WXSubWindow; public: - WXLCDWindow(wxWindow *parent, wxWindowID id); + WXLCDWindow(wxWindow *parent); virtual ~WXLCDWindow() override; private: @@ -53,9 +52,9 @@ class WXLCDWindow : public WXSubWindow }; // LCD キャラクタパネル -class WXLCDCharPanel : public wxPanel +class WXLCDCharPanel : public WXPaddingPanel { - using inherited = wxPanel; + using inherited = WXPaddingPanel; public: WXLCDCharPanel(wxWindow *parent); virtual ~WXLCDCharPanel() override; @@ -64,9 +63,7 @@ class WXLCDCharPanel : public wxPanel void OnPaint(wxPaintEvent& event); void Draw(wxDC&); - std::unique_ptr bmpbuf {}; - std::unique_ptr image {}; - std::unique_ptr bitmap {}; + WXBitmapBuf bitmap {}; wxDECLARE_EVENT_TABLE(); }; @@ -76,7 +73,7 @@ class WXLCDMonitor : public WXSubWindow { using inherited = WXSubWindow; public: - WXLCDMonitor(wxWindow *parent, wxWindowID id); + WXLCDMonitor(wxWindow *parent); virtual ~WXLCDMonitor() override; private: