Audacity 3.2.0
|
#include <OverlayPanel.h>
Public Member Functions | |
OverlayPanel (wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, long style=wxTAB_TRAVERSAL|wxNO_BORDER) | |
void | AddOverlay (const std::weak_ptr< Overlay > &pOverlay) |
void | ClearOverlays () |
void | DrawOverlays (bool repaint_all, wxDC *pDC=nullptr) |
Public Member Functions inherited from BackedPanel | |
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 wxPanelWrapper | |
wxPanelWrapper () | |
wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) | |
bool | Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) |
void | SetLabel (const TranslatableString &label) |
void | SetName (const TranslatableString &name) |
void | SetToolTip (const TranslatableString &toolTip) |
void | SetName () |
Public Member Functions inherited from wxTabTraversalWrapper< wxPanel > | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Private Types | |
using | OverlayPtr = std::weak_ptr< Overlay > |
Private Member Functions | |
void | Compress () |
Private Attributes | |
std::vector< OverlayPtr > | mOverlays |
Friends | |
class | GetInfoCommand |
Definition at line 18 of file OverlayPanel.h.
|
private |
Definition at line 43 of file OverlayPanel.h.
OverlayPanel::OverlayPanel | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxPoint & | pos, | ||
const wxSize & | size, | ||
long | style = wxTAB_TRAVERSAL | wxNO_BORDER |
||
) |
Definition at line 17 of file OverlayPanel.cpp.
void OverlayPanel::AddOverlay | ( | const std::weak_ptr< Overlay > & | pOverlay | ) |
Definition at line 24 of file OverlayPanel.cpp.
References Compress(), and mOverlays.
Referenced by AdornedRulerPanel::CreateOverlays().
void OverlayPanel::ClearOverlays | ( | ) |
|
private |
Definition at line 126 of file OverlayPanel.cpp.
References details::begin(), details::end(), and mOverlays.
Referenced by AddOverlay(), and DrawOverlays().
void OverlayPanel::DrawOverlays | ( | bool | repaint_all, |
wxDC * | pDC = nullptr |
||
) |
Definition at line 43 of file OverlayPanel.cpp.
References Compress(), BackedPanel::GetBackingDC(), mOverlays, and size.
Referenced by AdornedRulerPanel::DrawBothOverlays(), TrackPanel::OnPaint(), AdornedRulerPanel::OnPaint(), TrackPanel::OnTimer(), and TrackPanel::ProcessUIHandleResult().
|
friend |
Definition at line 50 of file OverlayPanel.h.
|
private |
Definition at line 46 of file OverlayPanel.h.
Referenced by AddOverlay(), ClearOverlays(), Compress(), and DrawOverlays().