72302e9dd0
* macOS: fix property_no fn * Use CFRunLoopTimer instead if NSTimer This means the timer doesn't keep a reference to the view, which should make it easer to check retain_count in release. * macOS: take pointer instead of Arc in WindowState::setup_timer * Save retain count increase from build fn, use in release fn * macOS: in window setup, run build fn before doing parenting * macOS: clean up parenting * macOS: wrap WindowState in Box instead of Arc to improve clarity * macOS: use better names for ivar consts, move them to view.rs * Remove no longer used crate static_assertions * macOS: in view release fn, delete class when retain_count == 1 * macOS: set window state ivar to null after dropping * macOS: store retain count after build in WindowState * macOS: rename BASEVIEW_WINDOW_STATE_IVAR to BASEVIEW_STATE_IVAR |
||
---|---|---|
.github/workflows | ||
examples | ||
src | ||
.gitignore | ||
.rustfmt.toml | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
baseview
A low-level windowing system geared towards making audio plugin UIs.
baseview
abstracts the platform-specific windowing APIs (winapi, cocoa, xcb) into a platform-independent API, but otherwise gets out of your way so you can write plugin UIs.
Interested in learning more about the project? Join us on discord, channel #plugin-gui
.
Roadmap
Below is a proposed list of milestones (roughly in-order) and their status. Subject to change at any time.
Feature | Windows | Mac OS | Linux |
---|---|---|---|
Spawns a window, no parent | ✔️ | ✔️ | ✔️ |
Cross-platform API for window spawning | ✔️ | ✔️ | ✔️ |
Can find DPI scale factor | ✔️ | ✔️ | |
Basic event handling (mouse, keyboard) | ✔️ | ✔️ | ✔️ |
Parent window support | ✔️ | ✔️ | ✔️ |
Prerequisites
Linux
Install dependencies, e.g.,
sudo apt-get install libx11-dev libxcursor-dev libxcb-dri2-0-dev libxcb-icccm4-dev libx11-xcb-dev
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Baseview by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.