slint/examples/carousel
David Faure 29e289fbdf Move the workspace to rust edition 2024
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.
2025-12-09 12:11:04 +01:00
..
cpp Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
esp-idf Remove license header from .md/.mdx files 2025-12-04 21:58:09 +01:00
node Bump version number to 1.15.0 2025-10-24 14:28:17 +00:00
rust Move the workspace to rust edition 2024 2025-12-09 12:11:04 +01:00
ui Examples/Demos: fix warning about unused padding 2025-07-04 18:35:52 +02:00
README.md Remove license header from .md/.mdx files 2025-12-04 21:58:09 +01:00

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

Screenshot of the Carousel Demo

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