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 141 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 144 of file RealtimeEffectPanel.cpp.

148 : wxWindow(parent, id, pos, size, wxNO_BORDER, wxEmptyString)
149 {
150 wxWindow::SetBackgroundStyle(wxBG_STYLE_PAINT);
151 Bind(wxEVT_PAINT, &DropHintLine::OnPaint, this);
152 }

Member Function Documentation

◆ AcceptsFocus()

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

Definition at line 154 of file RealtimeEffectPanel.cpp.

154{ return false; }

◆ OnPaint()

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

Definition at line 157 of file RealtimeEffectPanel.cpp.

158 {
159 wxBufferedPaintDC dc(this);
160 const auto rect = wxRect(GetSize());
161
162 dc.SetPen(*wxTRANSPARENT_PEN);
163 dc.SetBrush(GetBackgroundColour());
164 dc.DrawRectangle(rect);
165 }

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