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 142 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 145 of file RealtimeEffectPanel.cpp.

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

Member Function Documentation

◆ AcceptsFocus()

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

Definition at line 155 of file RealtimeEffectPanel.cpp.

155{ return false; }

◆ OnPaint()

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

Definition at line 158 of file RealtimeEffectPanel.cpp.

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

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