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

Public Member Functions

 HyperLinkCtrlWrapper (wxWindow *parent, wxWindowID id, const wxString &label, const wxString &url, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxHL_DEFAULT_STYLE, const wxString &name=wxHyperlinkCtrlNameStr)
 
void Create (wxWindow *parent, wxWindowID id, const wxString &label, const wxString &url, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxHL_DEFAULT_STYLE, const wxString &name=wxHyperlinkCtrlNameStr)
 
void OnPaint (wxPaintEvent &evt)
 
- Public Member Functions inherited from ListNavigationEnabled< wxHyperlinkCtrl >
 ListNavigationEnabled ()
 
void SetInTabOrder (bool inTabOrder)
 

Detailed Description

Definition at line 320 of file RealtimeEffectPanel.cpp.

Constructor & Destructor Documentation

◆ HyperLinkCtrlWrapper()

anonymous_namespace{RealtimeEffectPanel.cpp}::HyperLinkCtrlWrapper::HyperLinkCtrlWrapper ( wxWindow *  parent,
wxWindowID  id,
const wxString &  label,
const wxString &  url,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxHL_DEFAULT_STYLE,
const wxString &  name = wxHyperlinkCtrlNameStr 
)
inline

Definition at line 323 of file RealtimeEffectPanel.cpp.

331 {
332 Create(parent, id, label, url, pos, size, style, name);
333 }
wxString name
Definition: TagsEditor.cpp:166
TranslatableString label
Definition: TagsEditor.cpp:165

References label, name, size, and anonymous_namespace{AudacityDontAskAgainMessageDialog.cpp}::style.

Member Function Documentation

◆ Create()

void anonymous_namespace{RealtimeEffectPanel.cpp}::HyperLinkCtrlWrapper::Create ( wxWindow *  parent,
wxWindowID  id,
const wxString &  label,
const wxString &  url,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxHL_DEFAULT_STYLE,
const wxString &  name = wxHyperlinkCtrlNameStr 
)
inline

Definition at line 335 of file RealtimeEffectPanel.cpp.

343 {
345 Bind(wxEVT_PAINT, &HyperLinkCtrlWrapper::OnPaint, this);
346 }
Changes default arrow navigation to behave more list- or table-like. Instead of searching focusable i...

References label, name, size, and anonymous_namespace{AudacityDontAskAgainMessageDialog.cpp}::style.

◆ OnPaint()

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

Definition at line 348 of file RealtimeEffectPanel.cpp.

349 {
350 wxPaintDC dc(this);
351 dc.SetFont(GetFont());
352 dc.SetTextForeground(GetForegroundColour());
353 dc.SetTextBackground(GetBackgroundColour());
354
355 auto labelRect = GetLabelRect();
356
357 dc.DrawText(GetLabel(), labelRect.GetTopLeft());
358 if (HasFocus())
359 AColor::DrawFocus(dc, labelRect);
360 }
static void DrawFocus(wxDC &dc, wxRect &r)
Definition: AColor.cpp:247

References AColor::DrawFocus().

Here is the call graph for this function:

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