RustAudio / baseview

low-level window system interface for audio plugin UIs
Apache License 2.0
267 stars 57 forks source link

Change `Window` from a borrowed handle to a weakly owned handle #174

Open prokopyl opened 6 months ago

prokopyl commented 6 months ago

This PR implements the idea discussed with @glowcoil on Discord a few days ago, which is to make the Window handle 'static and clone-able, so that it can be easily stored in the WindowHandler.

Note this PR is based on #172 for now, which is why the new example shows up in the diff. This can be changed depending on #172's merge status. This has been properly rebased now.

This makes the following breaking API changes, for all platforms and backends:

As of now, this PR is still a WIP:

As of now, this PR will not build on macOS or Windows until I've completed the work mentioned above.

prokopyl commented 6 months ago

Win32 backend update done, tested and functional! :slightly_smiling_face: