Audacity 3.2.0
Public Member Functions | List of all members
anonymous_namespace{RealtimeEffectPanel.cpp}::ListNavigationPanel Class Reference
Inheritance diagram for anonymous_namespace{RealtimeEffectPanel.cpp}::ListNavigationPanel:
[legend]
Collaboration diagram for anonymous_namespace{RealtimeEffectPanel.cpp}::ListNavigationPanel:
[legend]

Public Member Functions

 ListNavigationPanel ()=default
 
 ListNavigationPanel (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, const wxString &name=wxPanelNameStr)
 
void Create (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, const wxString &name=wxPanelNameStr)
 
void OnChangeFocus (wxFocusEvent &evt)
 
void OnPaint (wxPaintEvent &evt)
 
- Public Member Functions inherited from anonymous_namespace{RealtimeEffectPanel.cpp}::ListNavigationEnabled< wxWindow >
 ListNavigationEnabled ()
 

Detailed Description

Definition at line 243 of file RealtimeEffectPanel.cpp.

Constructor & Destructor Documentation

◆ ListNavigationPanel() [1/2]

anonymous_namespace{RealtimeEffectPanel.cpp}::ListNavigationPanel::ListNavigationPanel ( )
default

◆ ListNavigationPanel() [2/2]

anonymous_namespace{RealtimeEffectPanel.cpp}::ListNavigationPanel::ListNavigationPanel ( wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
const wxString &  name = wxPanelNameStr 
)
inline

Definition at line 248 of file RealtimeEffectPanel.cpp.

253 {
254 Create(parent, id, pos, size, name);
255 }
const TranslatableString name
Definition: Distortion.cpp:75
void Create(wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, const wxString &name=wxPanelNameStr)

References name, and size.

Member Function Documentation

◆ Create()

void anonymous_namespace{RealtimeEffectPanel.cpp}::ListNavigationPanel::Create ( wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
const wxString &  name = wxPanelNameStr 
)
inline

Definition at line 257 of file RealtimeEffectPanel.cpp.

262 {
263 SetBackgroundStyle(wxBG_STYLE_PAINT);
264 ListNavigationEnabled<wxWindow>::Create(parent, id, pos, size, wxNO_BORDER | wxWANTS_CHARS, name);
265 Bind(wxEVT_PAINT, &ListNavigationPanel::OnPaint, this);
266 Bind(wxEVT_SET_FOCUS, &ListNavigationPanel::OnChangeFocus, this);
267 Bind(wxEVT_KILL_FOCUS, &ListNavigationPanel::OnChangeFocus, this);
268 }

References name, and size.

◆ OnChangeFocus()

void anonymous_namespace{RealtimeEffectPanel.cpp}::ListNavigationPanel::OnChangeFocus ( wxFocusEvent &  evt)
inline

Definition at line 270 of file RealtimeEffectPanel.cpp.

271 {
272 Refresh(false);
273 }

◆ OnPaint()

void anonymous_namespace{RealtimeEffectPanel.cpp}::ListNavigationPanel::OnPaint ( wxPaintEvent &  evt)
inline

Definition at line 275 of file RealtimeEffectPanel.cpp.

276 {
277 wxBufferedPaintDC dc(this);
278
279 dc.SetPen(*wxTRANSPARENT_PEN);
280 dc.SetBrush(GetBackgroundColour());
281 dc.Clear();
282
283 if(HasFocus())
284 AColor::DrawFocus(dc, GetClientRect().Deflate(3, 3));
285 }
static void DrawFocus(wxDC &dc, wxRect &r)
Definition: AColor.cpp:235

References AColor::DrawFocus().

Here is the call graph for this function:

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