45465c5f46
This PR splits off the X11 event loop logic into a separate module. It also changes the X11 implementation of the `Window` type to take only a shared reference to the inner type (`&WindowInner` instead of `&mut WindowInner`), bringing it in line with the other backends. This does not change any of the logic however, it only separates some of the window state from the event loop state, to make sure they don't step on each other's toes in the future (particularly around the WindowHandler). This is part of the effort to split up #174 into smaller pieces. |
||
---|---|---|
.github/workflows | ||
examples | ||
src | ||
.gitignore | ||
.rustfmt.toml | ||
Cargo.toml | ||
clippy.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 | ✔️ | ✔️ | ✔️ |
OpenGL context creation (behind the opengl feature) |
✔️ | ✔️ | ✔️ |
Prerequisites
Linux
Install dependencies, e.g.:
sudo apt-get install libx11-dev libxcb1-dev libx11-xcb-dev libgl1-mesa-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.