9#ifndef __AUDACITY_OVERLAY_PANEL__
10#define __AUDACITY_OVERLAY_PANEL__
24 long style = wxTAB_TRAVERSAL | wxNO_BORDER);
30 void AddOverlay(
const std::weak_ptr<Overlay> &pOverlay );
40 void DrawOverlays(
bool repaint_all, wxDC *pDC =
nullptr);
58 DCUnchanger(
const wxBrush &brush_,
const wxPen &pen_,
long logicalOperation_)
59 : brush(brush_), pen(pen_), logicalOperation(logicalOperation_)
62 void operator () (wxDC *pDC)
const;
66 long logicalOperation {};
71class AUDACITY_DLL_API
ADCChanger :
public std::unique_ptr<wxDC, ::DCUnchanger>
73 using Base = std::unique_ptr<wxDC, ::DCUnchanger>;
Makes temporary drawing context changes that you back out of, RAII style.
std::unique_ptr< wxDC, ::DCUnchanger > Base
BackedPanel is for a panel that consists of a bitmap with something drawn over it....
Command which outputs a list of available menu commands on the status channel.
std::weak_ptr< Overlay > OverlayPtr
std::vector< OverlayPtr > mOverlays
Used to restore pen, brush and logical-op in a DC back to what they were.
DCUnchanger(const wxBrush &brush_, const wxPen &pen_, long logicalOperation_)