slint/api/rs/slint
Florian Blasius f2aab576f4
Add StandardTableView widget (#2032)
* Text only StandardTableView with column and rows
* Text editing of cells
* Sort by column ascending and descending
* Variants of the TableView for native, fluent and material
2023-01-12 19:41:12 +01:00
..
LICENSES Fix LICENSES symlinks 2022-02-09 17:05:47 +01:00
tests Do not panic if the document contains a global but no normal component 2022-12-19 11:54:15 -08:00
Cargo.toml Bump version number to 0.3.4 2022-12-16 09:36:15 +00:00
compile_fail_tests.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
docs Move api/sixtyfps-rs to api/rs/slint (no crate rename!) 2022-02-02 13:26:34 +01:00
docs.rs Remove the Rust and C++ migration guides from the documentation 2022-09-09 16:53:49 +02:00
lib.rs Add StandardTableView widget (#2032) 2023-01-12 19:41:12 +01:00
mcu.md Update versions in docs 2022-12-16 09:31:11 +01:00
private_unstable_api.rs Add support for dispatching key events through the public platform API 2022-11-15 10:34:17 +01:00
README.md Update versions in docs 2022-12-16 09:31:11 +01:00

Slint

Crates.io Docs.rs

A Rust UI toolkit

Slint is a UI toolkit that supports different programming languages. Slint is the Rust API to interact with a Slint UI design from Rust.

The complete Rust documentation can be viewed online at https://slint-ui.com/docs/rust/slint/.

Getting Started

The crate documentation shows how to use this crate.

Hello World

The most basic "Hello world" application can be achieved with a few lines of code:

In your Cargo.toml add:

[dependencies]
slint = "0.3.3"

And in your main.rs:

slint::slint!{
    HelloWorld := Window {
        Text {
            text: "hello world";
            color: green;
        }
    }
}
fn main() {
    HelloWorld::new().run();
}

The slint crate documentation contains more advanced examples and alternative ways to use this crate.

To quickly get started, you can use the Template Repository with the code of a minimal application using Slint that can be used as a starting point to your program.

cargo install cargo-generate
cargo generate --git https://github.com/slint-ui/slint-rust-template

More examples

You can quickly try out the examples by cloning this repo and running them with cargo run

# Runs the "printerdemo" example
cargo run --release --bin printerdemo

Minimum Supported Rust Version

This crate's minimum supported rustc version is 1.64.