While trying to implement the new host->plugin resizing in nice-plug-egui, I noticed that the API/logic for host resizing could be improved.
- Added
min_logical_size and max_logical_size to ResizeHint.
- Renamed
Editor::set_size to Editor::set_physical_size. Knowing the exact physical size of the window is important for some GUI libraries.
- Added
Editor::adjust_physical_size which by default uses ResizeHint::adjust_physical_size. Users can override this if they want custom behavior, like snapping to preset scaling increments.
- Implemented logic in the CLAP backend's
ext_gui_adjust_size function and the VST3 backend's checkSizeConstraint function.
However, it's not actually working correctly, so I need to do some more debugging.
While trying to implement the new host->plugin resizing in `nice-plug-egui`, I noticed that the API/logic for host resizing could be improved.
* Added `min_logical_size` and `max_logical_size` to `ResizeHint`.
* Renamed `Editor::set_size` to `Editor::set_physical_size`. Knowing the exact physical size of the window is important for some GUI libraries.
* Added `Editor::adjust_physical_size` which by default uses `ResizeHint::adjust_physical_size`. Users can override this if they want custom behavior, like snapping to preset scaling increments.
* Implemented logic in the CLAP backend's `ext_gui_adjust_size` function and the VST3 backend's `checkSizeConstraint` function.
However, it's not actually working correctly, so I need to do some more debugging.