mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-27 12:29:41 +00:00
Add support for the initial_focus synthetic property
Setting it will translate to a set_focus_item call in the constructor. This implements parts of #55
This commit is contained in:
parent
2050f08f1e
commit
9ad8968529
22 changed files with 542 additions and 36 deletions
|
@ -95,6 +95,11 @@ struct ComponentWindow
|
|||
&inner, VRef<ComponentVTable> { &Component::component_type, c });
|
||||
}
|
||||
|
||||
void set_focus_item(Pin<VRef<ComponentVTable>> c, Pin<VRef<ItemVTable>> item)
|
||||
{
|
||||
cbindgen_private::sixtyfps_component_window_set_focus_item(&inner, c, item);
|
||||
}
|
||||
|
||||
private:
|
||||
cbindgen_private::ComponentWindowOpaque inner;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue