mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
ComponentInstance show/hide/run
This commit is contained in:
parent
9cc69d73a1
commit
63460c1a24
2 changed files with 24 additions and 3 deletions
|
@ -355,9 +355,17 @@ class ComponentInstance {
|
|||
ComponentInstance(ComponentInstance &) = delete;
|
||||
ComponentInstance &operator=(ComponentInstance &) = delete;
|
||||
public:
|
||||
void show() const;
|
||||
void hide() const;
|
||||
void run() const;
|
||||
void show() const {
|
||||
cbindgen_private::sixtyfps_interpreter_component_instance_show(&inner, true);
|
||||
}
|
||||
void hide() const {
|
||||
cbindgen_private::sixtyfps_interpreter_component_instance_show(&inner, false);
|
||||
}
|
||||
void run() const {
|
||||
show();
|
||||
cbindgen_private::sixtyfps_run_event_loop();
|
||||
hide();
|
||||
}
|
||||
|
||||
bool set_property(std::string_view name, const Value &value) const {
|
||||
cbindgen_private::Slice<uint8_t> name_view {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue