mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
Motivation: the git pre-commit hook is confused by the mix of 2021 and
2024 in the same workspace...
The only problem this raises is the std::env::set_var("LANGUAGE", lang) in
demos/printerdemo/rust/lib.rs, pre-existing but now explicitly marked as unsafe
because it actually is. Added a TODO there.
|
||
|---|---|---|
| .. | ||
| cpp | ||
| esp-idf | ||
| node | ||
| rust | ||
| ui | ||
| README.md | ||
carousel
A custom carousel widget that can be controlled by touch, mouse and keyboard
The example can be run on desktop, wasm and mcu platforms
.slint Design |
Rust Source | C++ Source | Node Source | Online wasm Preview | Open in SlintPad |
|---|---|---|---|---|---|
ui.slint |
main.rs |
main.cpp |
main.js |
Online simulation | Preview in Online Code Editor |
See the MCU backend Readme to see how to run the example on a smaller device like the Raspberry Pi Pico.
The example can run with the mcu simulator with the following command
cargo run -p carousel --no-default-features --features=simulator --release
