mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Domain: slint-ui.com -> slint.dev
This commit is contained in:
parent
24c822dd60
commit
11dea135f7
1248 changed files with 1542 additions and 1542 deletions
|
@ -1,10 +1,10 @@
|
|||
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
||||
# Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
|
||||
|
||||
[package]
|
||||
name = "slint-build"
|
||||
version = "1.1.0"
|
||||
authors = ["Slint Developers <info@slint-ui.com>"]
|
||||
authors = ["Slint Developers <info@slint.dev>"]
|
||||
edition = "2021"
|
||||
license = "GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial"
|
||||
description = "Helper for Slint build script"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
||||
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
|
||||
|
||||
/*!
|
||||
|
@ -41,7 +41,7 @@ fn main() {
|
|||
}
|
||||
```
|
||||
*/
|
||||
#![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
|
||||
#![doc(html_logo_url = "https://slint.dev/logo/slint-logo-square-light.svg")]
|
||||
#![warn(missing_docs)]
|
||||
|
||||
#[cfg(not(feature = "default"))]
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
||||
# Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
|
||||
|
||||
[package]
|
||||
name = "slint-macros"
|
||||
version = "1.1.0"
|
||||
authors = ["Slint Developers <info@slint-ui.com>"]
|
||||
authors = ["Slint Developers <info@slint.dev>"]
|
||||
edition = "2021"
|
||||
license = "GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial"
|
||||
description = "Macro helper for slint crate"
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
||||
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
|
||||
|
||||
// cSpell:ignore punct
|
||||
|
||||
#![doc = include_str!("README.md")]
|
||||
#![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
|
||||
#![doc(html_logo_url = "https://slint.dev/logo/slint-logo-square-light.svg")]
|
||||
|
||||
extern crate proc_macro;
|
||||
use std::path::Path;
|
||||
|
@ -303,7 +303,7 @@ fn extract_include_paths(
|
|||
/// you can use place Slint code and the named exported components will be available for instantiation.
|
||||
///
|
||||
/// For the documentation about the syntax of the language, see
|
||||
#[doc = concat!("[The Slint Language Documentation](https://slint-ui.com/releases/", env!("CARGO_PKG_VERSION"), "/docs/slint)")]
|
||||
#[doc = concat!("[The Slint Language Documentation](https://slint.dev/releases/", env!("CARGO_PKG_VERSION"), "/docs/slint)")]
|
||||
///
|
||||
/// When `import`ing `.slint` files or loading images with `@image-url`, the specified paths are relative to the
|
||||
/// the directory that contains Cargo.toml.
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
||||
# Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
|
||||
|
||||
[package]
|
||||
name = "slint"
|
||||
version = "1.1.0"
|
||||
authors = ["Slint Developers <info@slint-ui.com>"]
|
||||
authors = ["Slint Developers <info@slint.dev>"]
|
||||
edition = "2021"
|
||||
license = "GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial"
|
||||
description = "GUI toolkit to efficiently develop fluid graphical user interfaces for embedded devices and desktop applications"
|
||||
|
@ -32,7 +32,7 @@ default = [
|
|||
## This feature is required to keep the compatibility with Slint 1.0
|
||||
## Newer patch version may put current functionality behind a new feature
|
||||
## that would be enabled by default only if this feature was added.
|
||||
## [More info in this blog post](https://slint-ui.com/blog/rust-adding-default-cargo-feature.html)
|
||||
## [More info in this blog post](https://slint.dev/blog/rust-adding-default-cargo-feature.html)
|
||||
"compat-1-0" = []
|
||||
|
||||
## Enable use of the Rust standard library.
|
||||
|
|
|
@ -12,7 +12,7 @@ The complete Rust documentation for Slint can be viewed online at https://slint.
|
|||
|
||||
## Getting Started
|
||||
|
||||
The [crate documentation](https://slint-ui.com/docs/rust/slint/) shows how to use this crate.
|
||||
The [crate documentation](https://slint.dev/docs/rust/slint/) shows how to use this crate.
|
||||
|
||||
### Hello World
|
||||
|
||||
|
@ -41,7 +41,7 @@ fn main() {
|
|||
}
|
||||
```
|
||||
|
||||
The [`slint` crate documentation](https://slint-ui.com/docs/rust/slint/)
|
||||
The [`slint` crate documentation](https://slint.dev/docs/rust/slint/)
|
||||
contains more advanced examples and alternative ways to use this crate.
|
||||
|
||||
To quickly get started, you can use the [Template Repository](https://github.com/slint-ui/slint-rust-template) with
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
||||
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
||||
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
|
||||
|
||||
#![cfg(doc)]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
||||
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
|
||||
|
||||
// cSpell: ignore buildrs
|
||||
|
@ -9,13 +9,13 @@
|
|||
This crate is the main entry point for embedding user interfaces designed with
|
||||
[Slint](https://slint.rs/) in Rust programs.
|
||||
*/
|
||||
#, "/docs/tutorial/rust)")]
|
||||
#, "/docs/tutorial/rust)")]
|
||||
/*! If you are already familiar with Slint, the following topics provide related information.
|
||||
|
||||
## Related topics
|
||||
|
||||
*/
|
||||
#, "/docs/slint)")]
|
||||
#, "/docs/slint)")]
|
||||
/*! * [Slint on Microcontrollers](docs::mcu)
|
||||
* [Debugging Techniques](docs::debugging_techniques)
|
||||
|
||||
|
@ -27,7 +27,7 @@ of including them in Rust:
|
|||
- The `.slint` code is [inline in a macro](#the-slint-code-in-a-macro).
|
||||
- The `.slint` code in [external files compiled with `build.rs`](#the-slint-code-in-external-files-is-compiled-with-buildrs)
|
||||
*/
|
||||
#, "/docs/rust/slint_interpreter/).")]
|
||||
#, "/docs/rust/slint_interpreter/).")]
|
||||
/*!
|
||||
|
||||
With the first two methods, the markup code is translated to Rust code and each component is turned into a Rust
|
||||
|
@ -57,7 +57,7 @@ fn main() {
|
|||
### The .slint code in external files is compiled with `build.rs`
|
||||
|
||||
When your design becomes bigger in terms of markup code, you may want move it to a dedicated*/
|
||||
#, "/docs/slint/src/reference/modules.html).")]
|
||||
#, "/docs/slint/src/reference/modules.html).")]
|
||||
/*!Use a [build script](https://doc.rust-lang.org/cargo/reference/build-scripts.html) to compile
|
||||
your main `.slint` file:
|
||||
|
||||
|
@ -232,7 +232,7 @@ struct MyStruct {
|
|||
## Exported Global singletons
|
||||
|
||||
*/
|
||||
#, "/docs/slint/src/reference/globals.html) from the main file,")]
|
||||
#, "/docs/slint/src/reference/globals.html) from the main file,")]
|
||||
/*! it is also generated with the exported name. Like the main component, the generated struct have
|
||||
inherent method to access the properties and callback:
|
||||
|
||||
|
@ -252,7 +252,7 @@ See the [documentation of the `Global` trait](Global) for an example.
|
|||
#![cfg_attr(feature = "document-features", doc = document_features::document_features!())]
|
||||
#![warn(missing_docs)]
|
||||
#![deny(unsafe_code)]
|
||||
#![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
|
||||
#![doc(html_logo_url = "https://slint.dev/logo/slint-logo-square-light.svg")]
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
extern crate alloc;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Slint on Microcontrollers
|
||||
|
||||

|
||||

|
||||
|
||||
The following sections explain how to use Slint to develop a UI on a Microcontroller (MCU) in a bare metal environment.
|
||||
|
||||
|
@ -36,7 +36,7 @@ you need to disable the default features.
|
|||
|
||||
In the snippet above, three features are selected:
|
||||
|
||||
* `compat-1-0`: We select this feature when disabling the default features. For a detailed explanation see our blog post ["Adding default cargo features without breaking Semantic Versioning"](https://slint-ui.com/blog/rust-adding-default-cargo-feature.html).
|
||||
* `compat-1-0`: We select this feature when disabling the default features. For a detailed explanation see our blog post ["Adding default cargo features without breaking Semantic Versioning"](https://slint.dev/blog/rust-adding-default-cargo-feature.html).
|
||||
* `unsafe-single-threaded`: Slint internally uses Rust's [`thread_local!`](https://doc.rust-lang.org/std/macro.thread_local.html) macro to store global data.
|
||||
This macro is only available in the Rust Standard Library (std), but not in bare metal environments. As a fallback, the `unsafe-single-threaded`
|
||||
feature changes Slint to use unsafe static for storage. This way, you guarantee to use Slint API only from a single thread, and not from interrupt handlers.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
||||
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
|
||||
|
||||
//! Module containing the private api that is used by the generated code.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
||||
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
|
||||
|
||||
use slint::platform::software_renderer::{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
||||
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
|
||||
|
||||
use ::slint::slint;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
||||
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
|
||||
|
||||
mod fake_backend {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue