Audacity  2.2.0
BackedPanel Class Reference

#include <BackedPanel.h>

Inheritance diagram for BackedPanel:
wxTabTraversalWrapper< Base > OverlayPanel AdornedRulerPanel TrackPanel

Public Member Functions

 BackedPanel (wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, long style)
 
 ~BackedPanel ()
 
wxDC & GetBackingDC ()
 
wxDC & GetBackingDCForRepaint ()
 
void ResizeBacking ()
 
void RepairBitmap (wxDC &dc, wxCoord x, wxCoord y, wxCoord width, wxCoord height)
 
void DisplayBitmap (wxDC &dc)
 
void OnSize (wxSizeEvent &event)
 
- Public Member Functions inherited from wxTabTraversalWrapper< Base >
template<typename... Args>
 wxTabTraversalWrapper (Args &&...args)
 
 ~wxTabTraversalWrapper ()
 

Private Attributes

std::unique_ptr< wxBitmap > mBacking
 
wxMemoryDC mBackingDC
 
bool mResizeBacking {}
 

Constructor & Destructor Documentation

BackedPanel::BackedPanel ( wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos,
const wxSize &  size,
long  style 
)

References mBacking, and mBackingDC.

BackedPanel::~BackedPanel ( )

References mBacking, and mBackingDC.

Member Function Documentation

void BackedPanel::DisplayBitmap ( wxDC &  dc)
wxDC & BackedPanel::GetBackingDC ( )

References mBackingDC.

Referenced by OverlayPanel::DrawOverlays().

wxDC & BackedPanel::GetBackingDCForRepaint ( )
void BackedPanel::OnSize ( wxSizeEvent &  event)

References mResizeBacking.

Referenced by AdornedRulerPanel::OnSize().

void BackedPanel::RepairBitmap ( wxDC &  dc,
wxCoord  x,
wxCoord  y,
wxCoord  width,
wxCoord  height 
)

References mBackingDC.

Referenced by DisplayBitmap(), and TrackPanel::OnPaint().

void BackedPanel::ResizeBacking ( )

References mBacking, and mBackingDC.

Referenced by GetBackingDCForRepaint().

Member Data Documentation

std::unique_ptr<wxBitmap> BackedPanel::mBacking
private
wxMemoryDC BackedPanel::mBackingDC
private
bool BackedPanel::mResizeBacking {}
private

Referenced by GetBackingDCForRepaint(), and OnSize().


The documentation for this class was generated from the following files: