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

Function GetFraction

src/widgets/NumericTextCtrl.cpp:1114–1126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1112}
1113
1114static void GetFraction( const FormatterContext& context, wxString &label, NumericConverterType type,
1115 const NumericFormatID &formatSymbol )
1116{
1117 auto result = NumericConverterRegistry::Find(context, type, formatSymbol);
1118
1119 if (result == nullptr)
1120 return;
1121
1122 auto& tr = result->fractionLabel;
1123
1124 if (!tr.empty())
1125 label = tr.Translation();
1126}
1127
1128// Gets the name of the specified object.
1129wxAccStatus NumericTextCtrlAx::GetName(int childId, wxString *name)

Callers 1

GetNameMethod · 0.85

Calls 3

FindFunction · 0.85
TranslationMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected