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 ()
 

Detailed Description

Definition at line 168 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 171 of file RealtimeEffectPanel.cpp.

179 {
180 Create(parent, id, label, url, pos, size, style, name);
181 }
const TranslatableString name
Definition: Distortion.cpp:76
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 183 of file RealtimeEffectPanel.cpp.

191 {
193 Bind(wxEVT_PAINT, &HyperLinkCtrlWrapper::OnPaint, this);
194 }
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 196 of file RealtimeEffectPanel.cpp.

197 {
198 wxPaintDC dc(this);
199 dc.SetFont(GetFont());
200 dc.SetTextForeground(GetForegroundColour());
201 dc.SetTextBackground(GetBackgroundColour());
202
203 auto labelRect = GetLabelRect();
204
205 dc.DrawText(GetLabel(), labelRect.GetTopLeft());
206 if (HasFocus())
207 AColor::DrawFocus(dc, labelRect);
208 }
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: