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:
Simon Hausmann 2020-09-25 15:15:17 +02:00
parent 2050f08f1e
commit 9ad8968529
22 changed files with 542 additions and 36 deletions

View file

@ -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;
};