Signed-off-by: falkTX <falktx@falktx.com>pull/314/head
| @@ -90,7 +90,11 @@ UI::~UI() | |||||
| bool UI::isResizable() const noexcept | bool UI::isResizable() const noexcept | ||||
| { | { | ||||
| #if DISTRHO_UI_USER_RESIZABLE | #if DISTRHO_UI_USER_RESIZABLE | ||||
| # if DISTRHO_PLUGIN_HAS_EXTERNAL_UI | |||||
| return true; | |||||
| # else | |||||
| return uiData->window->isResizable(); | return uiData->window->isResizable(); | ||||
| # endif | |||||
| #else | #else | ||||
| return false; | return false; | ||||
| #endif | #endif | ||||
| @@ -172,7 +176,7 @@ uintptr_t UI::getNextWindowId() noexcept | |||||
| return g_nextWindowId; | return g_nextWindowId; | ||||
| } | } | ||||
| # endif | # endif | ||||
| #endif | |||||
| #endif // DISTRHO_PLUGIN_HAS_EXTERNAL_UI | |||||
| /* ------------------------------------------------------------------------------------------------------------ | /* ------------------------------------------------------------------------------------------------------------ | ||||
| * DSP/Plugin Callbacks (optional) */ | * DSP/Plugin Callbacks (optional) */ | ||||
| @@ -142,6 +142,7 @@ public: | |||||
| void close() { ui->close(); } | void close() { ui->close(); } | ||||
| void focus() { ui->focus(); } | void focus() { ui->focus(); } | ||||
| void show() { ui->show(); } | void show() { ui->show(); } | ||||
| bool isResizable() const noexcept { return ui->isResizable(); } | |||||
| bool isVisible() const noexcept { return ui->isVisible(); } | bool isVisible() const noexcept { return ui->isVisible(); } | ||||
| void setTitle(const char* const title) { ui->setTitle(title); } | void setTitle(const char* const title) { ui->setTitle(title); } | ||||
| void setVisible(const bool visible) { ui->setVisible(visible); } | void setVisible(const bool visible) { ui->setVisible(visible); } | ||||
| @@ -27,6 +27,7 @@ | |||||
| #define DISTRHO_PLUGIN_IS_RT_SAFE 1 | #define DISTRHO_PLUGIN_IS_RT_SAFE 1 | ||||
| #define DISTRHO_PLUGIN_NUM_INPUTS 2 | #define DISTRHO_PLUGIN_NUM_INPUTS 2 | ||||
| #define DISTRHO_PLUGIN_NUM_OUTPUTS 2 | #define DISTRHO_PLUGIN_NUM_OUTPUTS 2 | ||||
| #define DISTRHO_UI_USER_RESIZABLE 1 | |||||
| enum Parameters { | enum Parameters { | ||||
| kParameterLevel = 0, | kParameterLevel = 0, | ||||