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

Public Member Functions

 DropHintLine (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
 
bool AcceptsFocus () const override
 

Private Member Functions

void OnPaint (wxPaintEvent &)
 

Detailed Description

Definition at line 85 of file RealtimeEffectPanel.cpp.

Constructor & Destructor Documentation

◆ DropHintLine()

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

Definition at line 88 of file RealtimeEffectPanel.cpp.

92 : wxWindow(parent, id, pos, size, wxNO_BORDER, wxEmptyString)
93 {
94 wxWindow::SetBackgroundStyle(wxBG_STYLE_PAINT);
95 Bind(wxEVT_PAINT, &DropHintLine::OnPaint, this);
96 }

Member Function Documentation

◆ AcceptsFocus()

bool anonymous_namespace{RealtimeEffectPanel.cpp}::DropHintLine::AcceptsFocus ( ) const
inlineoverride

Definition at line 98 of file RealtimeEffectPanel.cpp.

98{ return false; }

◆ OnPaint()

void anonymous_namespace{RealtimeEffectPanel.cpp}::DropHintLine::OnPaint ( wxPaintEvent &  )
inlineprivate

Definition at line 101 of file RealtimeEffectPanel.cpp.

102 {
103 wxBufferedPaintDC dc(this);
104 const auto rect = wxRect(GetSize());
105
106 dc.SetPen(*wxTRANSPARENT_PEN);
107 dc.SetBrush(GetBackgroundColour());
108 dc.DrawRectangle(rect);
109 }

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