slint/api/sixtyfps-rs
Simon Hausmann 3146fb7764 internal cleanup: Remove the sixtyfps::testing::HasWindow trait
and replace it with the internal, re-exported WindowHandleAccess
one.

Strictly speaking, this is a breaking change. In practice the
returned type of this trait was in `sixtyfps::re_exports`, so any
public use is questionable :)
2021-07-21 20:33:02 +02:00
..
sixtyfps-build Re-add new constructor functions for ComponentCompiler and CompilerConfiguration 2021-07-12 13:26:17 +02:00
sixtyfps-macros Janitor: Replace Option::map returning () with if let 2021-07-09 17:00:46 +02:00
build.rs Update license date 2021-07-02 15:55:54 +02:00
Cargo.toml Cleanup: Move docs/html to docs/resources 2021-07-08 07:01:51 +02:00
compile_fail_tests.rs Update license date 2021-07-02 15:55:54 +02:00
docs Remove trailing slash from docs symlink 2020-09-07 11:22:55 +02:00
docs.rs Update license date 2021-07-02 15:55:54 +02:00
lib.rs internal cleanup: Remove the sixtyfps::testing::HasWindow trait 2021-07-21 20:33:02 +02:00
README.md Update some more version number 2021-06-30 17:21:38 +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://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.1.0"

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