MCPcopy Create free account
hub / github.com/DISTRHO/DPF / clap_gui_create

Function clap_gui_create

distrho/src/DistrhoPluginCLAP.cpp:2134–2146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2132}
2133
2134static bool CLAP_ABI clap_gui_create(const clap_plugin_t* const plugin, const char* const api, const bool is_floating)
2135{
2136 for (size_t i=0; i<ARRAY_SIZE(kSupportedAPIs); ++i)
2137 {
2138 if (std::strcmp(kSupportedAPIs[i], api) == 0)
2139 {
2140 PluginCLAP* const instance = static_cast<PluginCLAP*>(plugin->plugin_data);
2141 return instance->createUI(is_floating);
2142 }
2143 }
2144
2145 return false;
2146}
2147
2148static void CLAP_ABI clap_gui_destroy(const clap_plugin_t* const plugin)
2149{

Callers

nothing calls this directly

Calls 1

createUIMethod · 0.45

Tested by

no test coverage detected