17, mBacking{
std::make_unique<wxBitmap>(1, 1, 24) }
53 wxSize sz = GetClientSize();
54 mBacking = std::make_unique<wxBitmap>();
56 mBacking->Create(std::max(sz.x,1), std::max(sz.y,1),24);
62 dc.Blit(x, y, width, height, &
mBackingDC, x, y);
BackedPanel is for a panel that consists of a bitmap with something drawn over it....
BackedPanel(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, long style)
wxDC & GetBackingDCForRepaint()
std::unique_ptr< wxBitmap > mBacking
void OnSize(wxSizeEvent &event)
void DisplayBitmap(wxDC &dc)
void RepairBitmap(wxDC &dc, wxCoord x, wxCoord y, wxCoord width, wxCoord height)