slint/api/sixtyfps-rs
Simon Hausmann 7ca66d62b9 Fix crash in TextInput when deleting a left-directed selection
When selecting to the left, the anchor remains to the right of the cursor.
When deleting such a selection, we fetch the cursor and anchor using a helper
method, which ensures that the anchor is to the left of the cursor.
Finally when setting the cursor then to the anchor, we need to also
set the anchor, since both were swapped.

This also add an automated test for this scenario.
2020-09-23 17:33:09 +02:00
..
sixtyfps-build Support for named type as property 2020-09-17 13:14:01 +02:00
sixtyfps-rs-macro Parse two ways bindings 2020-09-23 14:06:08 +02:00
build.rs Update license header to mention that commertial option are available 2020-08-26 13:23:42 +02:00
Cargo.toml Use a Model trait in the rust backend 2020-09-14 14:02:34 +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
lib.rs Fix crash in TextInput when deleting a left-directed selection 2020-09-23 17:33:09 +02:00
README.md Simplify markdown links to C++/Rust docs 2020-09-03 17:35:07 +02:00
repeater.rs Move the RepeaterInner in a Rc and use that for the ModelPeer 2020-09-21 15:23:24 +02:00
sixtyfps-docs-integration.html Include the example preview also in the C++ documentation 2020-09-04 11:44:08 +02:00

SixtyFPS-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

You can quickly try out the examples by cloning this repo and running the following command:

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