mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-29 03:02:06 +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>`. |
||
|---|---|---|
| .. | ||
| slint.h | ||
| slint_brush.h | ||
| slint_callbacks.h | ||
| slint_color.h | ||
| slint_config.h | ||
| slint_image.h | ||
| slint_interpreter.h | ||
| slint_pathdata.h | ||
| slint_point.h | ||
| slint_properties.h | ||
| slint_sharedvector.h | ||
| slint_size.h | ||
| slint_string.h | ||
| slint_testing.h | ||
| vtable.h | ||