mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
![]() One key difference to the Rust way is what `slint::Window` means. In Rust that holds the `WindowInner` and `slint::Window` is only exposed as `&slint::Window`. This is possible because the component owns the `Rc<dyn PlatformWindow>`, which has a function to return the `&slint::Window`. In C++ `slint::Window` is also exposed as `slint::Window&` in the `window()` getter, but there's no way to get a reference to a C++ wrapper for the Rust `&slint::Window` that the `PlatformWindow` trait returns. Therefore in C++ `slint::Window` wraps `Rc<dyn PlatformWindow>`. |
||
---|---|---|
.. | ||
generator | ||
LICENSES | ||
llr | ||
parser | ||
parser-test-macro | ||
passes | ||
tests | ||
widgets | ||
build.rs | ||
builtin_macros.rs | ||
builtins.slint | ||
Cargo.toml | ||
diagnostics.rs | ||
embedded_resources.rs | ||
expression_tree.rs | ||
fileaccess.rs | ||
generator.rs | ||
langtype.rs | ||
layout.rs | ||
lexer.rs | ||
lib.rs | ||
literals.rs | ||
llr.rs | ||
load_builtins.rs | ||
lookup.rs | ||
namedreference.rs | ||
object_tree.rs | ||
parser.rs | ||
passes.rs | ||
README.md | ||
typeloader.rs | ||
typeregister.rs |
The Slint Compiler Library
NOTE: This library is an internal crate of the Slint project.
This crate should not be used directly by applications using Slint.
You should use the slint
crate instead.
WARNING: This crate does not follow the semver convention for versioning and can
only be used with version = "=x.y.z"
in Cargo.toml.