MCPcopy Create free account
hub / github.com/audacity/audacity / MakeRulerPanel

Function MakeRulerPanel

src/effects/DynamicRangeProcessorEditor.cpp:59–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59auto MakeRulerPanel(
60 wxWindow* parent, wxOrientation orientation, float dbRange,
61 int id = wxID_ANY)
62{
63 // Overridden by `.MinSize()` calls
64 const wxSize minSize { -1, -1 };
65
66 return safenew RulerPanel(
67 parent, id, orientation, minSize,
68 orientation == wxVERTICAL ? RulerPanel::Range { 0.0, -dbRange } :
69 RulerPanel::Range { -dbRange, 0.0 },
70 LinearDBFormat::Instance(), XO(""),
71 RulerPanel::Options {}
72 .LabelEdges(false)
73 .TicksAtExtremes(true)
74 .Flip(orientation == wxVERTICAL)
75 .TickColour(theTheme.Colour(clrGraphLabels)));
76}
77
78constexpr auto C = 5.;
79

Callers 2

PopulateOrExchangeMethod · 0.85

Calls 2

RulerPanelClass · 0.70
InstanceClass · 0.50

Tested by

no test coverage detected