mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-23 08:42:20 +00:00
WIP: live-reload for C++
Missing feature: - conversion between Value and enums - conversion from value to Model - Compatibility with the testing framework (get the `VRc<ItemTreeTable>` from an instance)
This commit is contained in:
parent
73e970b8ca
commit
43b436a89f
12 changed files with 1070 additions and 40 deletions
|
@ -26,6 +26,10 @@ struct ErasedItemTreeBox : vtable::Dyn
|
|||
ErasedItemTreeBox(ErasedItemTreeBox &) = delete;
|
||||
};
|
||||
}
|
||||
namespace slint::private_api::live_reload {
|
||||
class LiveReloadingComponent;
|
||||
class LiveReloadModelWrapperBase;
|
||||
}
|
||||
|
||||
/// The types in this namespace allow you to load a .slint file at runtime and show its UI.
|
||||
///
|
||||
|
@ -396,6 +400,8 @@ private:
|
|||
slint::cbindgen_private::Value *inner;
|
||||
friend struct Struct;
|
||||
friend class ComponentInstance;
|
||||
friend class slint::private_api::live_reload::LiveReloadingComponent;
|
||||
friend class slint::private_api::live_reload::LiveReloadModelWrapperBase;
|
||||
// Internal constructor that takes ownership of the value
|
||||
explicit Value(slint::cbindgen_private::Value *&&inner) : inner(inner) { }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue