Slint for vexide
This crate exists to allow for the use of Slint-based UIs in vexide. It
provides an implementation of the Slint Platform trait that uses the V5 brain
to render the UI.
Usage
To use this crate, add it to your Cargo.toml:
[]
= "0.1.0"
Then, you must call slint_vexide::initialize_slint_platform() before creating
and running your Slint widget. This will set up Slint for software-rendering
your UI on the brain's display.
Example
// Include the modules generated by Slint for your UI files.
// You will need to configure your `build.rs` to do this; see below.
include_modules!;
async
You'll need to compile your UI code separately from your main application code
using a custom build script. Add the slint-build crate to your Cargo.toml:
[]
= "1.10.0"
Then, create a build.rs file in your project root with the following content: