| 73 | } |
| 74 | |
| 75 | void PluginEditor::resized() { |
| 76 | main_panel_.setBounds(getLocalBounds()); |
| 77 | if (!base_.getWindowSizeFix()) { |
| 78 | last_ui_width_ = std::clamp(getWidth(), |
| 79 | static_cast<int>(zlstate::PWindowW::kMinV), |
| 80 | static_cast<int>(zlstate::PWindowW::kMaxV)); |
| 81 | last_ui_height_ = std::clamp(getHeight(), |
| 82 | static_cast<int>(zlstate::PWindowH::kMinV), |
| 83 | static_cast<int>(zlstate::PWindowH::kMaxV)); |
| 84 | triggerAsyncUpdate(); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | void PluginEditor::visibilityChanged() { |
| 89 | updateIsShowing(); |
no test coverage detected