MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / GetModuleCategory

Method GetModuleCategory

Source/ModuleFactory.cpp:702–713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700}
701
702ModuleCategory ModuleFactory::GetModuleCategory(std::string typeName)
703{
704 if (mFactoryMap.find(typeName) != mFactoryMap.end())
705 return mFactoryMap[typeName].mCategory;
706 if (juce::String(typeName).endsWith(kPluginSuffix))
707 return kModuleCategory_Synth;
708 if (juce::String(typeName).endsWith(kMidiControllerSuffix))
709 return kModuleCategory_Instrument;
710 if (juce::String(typeName).endsWith(kEffectChainSuffix))
711 return kModuleCategory_Audio;
712 return kModuleCategory_Other;
713}
714
715ModuleCategory ModuleFactory::GetModuleCategory(Spawnable spawnable)
716{

Callers 12

DrawToFramebufferMethod · 0.45
SetModuleGridLightsMethod · 0.45
DrawRoutingDisplayMethod · 0.45
DrawControlsMethod · 0.45
DrawModuleOnMinimapMethod · 0.45
DrawModuleMethod · 0.45
ButtonClickedMethod · 0.45
GoMethod · 0.45
RenderMethod · 0.45
GetColorsMethod · 0.45

Calls 1

StringClass · 0.85

Tested by

no test coverage detected