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 185 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 188 of file RealtimeEffectPanel.cpp.

196 {
197 Create(parent, id, label, url, pos, size, style, name);
198 }
const TranslatableString name
Definition: Distortion.cpp:76
TranslatableString label
Definition: TagsEditor.cpp:164

References label, name, and size.

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

208 {
209 ListNavigationEnabled<wxHyperlinkCtrl>::Create(parent, id, label, url, pos, size, style, name);
210 Bind(wxEVT_PAINT, &HyperLinkCtrlWrapper::OnPaint, this);
211 }
Changes default arrow navigation to behave more list- or table-like. Instead of searching focusable i...

References label, name, and size.

◆ OnPaint()

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

Definition at line 213 of file RealtimeEffectPanel.cpp.

214 {
215 wxPaintDC dc(this);
216 dc.SetFont(GetFont());
217 dc.SetTextForeground(GetForegroundColour());
218 dc.SetTextBackground(GetBackgroundColour());
219
220 auto labelRect = GetLabelRect();
221
222 dc.DrawText(GetLabel(), labelRect.GetTopLeft());
223 if (HasFocus())
224 AColor::DrawFocus(dc, labelRect);
225 }
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: