fdc5d282fc
Replace the `xcb` and `xcb-util` crates with `x11rb`. We were using an old version of the `xcb` crate which had some soundness issue. `x11rb` doesn't have these issues and generally provides a safer and nicer to use API. It's possible to use `x11rb` without linking to xcb at all, using the `RustConnection` API, but unfortunately we have to use the `XCBConnection` API (which uses xcb under the hood) due to our use of the xlib GLX API for creating OpenGL contexts. In the future, it might be possible to avoid linking to xlib and xcb by replacing GLX with EGL. Getting the xlib-xcb integration to work also necessitated upgrading the version of the `x11` crate, since the version we were using was missing some necessary functionality that was previously being provided by the `xcb` crate. |
||
---|---|---|
.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 | ✔️ | ✔️ | ✔️ |
OpenGL context creation (behind the opengl feature) |
✔️ | ✔️ | ✔️ |
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.