mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-27 20:42:25 +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>`. |
||
---|---|---|
.. | ||
datastructures.cpp | ||
eventloop.cpp | ||
interpreter.cpp | ||
properties.cpp | ||
test.slint |