slint/api/sixtyfps-rs
2020-10-20 18:18:24 +02:00
..
sixtyfps-build Some changes in the rust documentation and its README 2020-10-20 18:02:28 +02:00
sixtyfps-macros Some changes in the rust documentation and its README 2020-10-20 18:02:28 +02:00
build.rs Update license header to mention that commertial option are available 2020-08-26 13:23:42 +02:00
Cargo.toml Rename sixtyfps-rs-macro to sixtyfps-macros 2020-10-13 11:10:26 +02:00
compile_fail_tests.rs Update license header to mention that commertial option are available 2020-08-26 13:23:42 +02:00
docs Remove trailing slash from docs symlink 2020-09-07 11:22:55 +02:00
docs.rs Add missing license tag 2020-10-20 18:18:24 +02:00
lib.rs Some changes in the rust documentation and its README 2020-10-20 18:02:28 +02:00
README.md Small typo fix 2020-10-20 18:11:01 +02:00
sixtyfps-docs-integration.html Some changes in the rust documentation and its README 2020-10-20 18:02:28 +02:00

SixtyFPS-rs

Crates.io Docs.rs

A Rust UI toolkit

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

The complete Rust documentation can be viewed online at https://www.sixtyfps.io/docs/rust/sixtyfps/.

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]
sixtyfps = "0.0.1"

And in your main.rs:

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

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

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