Continue adapting the window size

Implement the Rust and C++ part
This commit is contained in:
Olivier Goffart 2020-07-15 17:51:30 +02:00
parent ddc4fb6e1f
commit 1dec276002
5 changed files with 45 additions and 5 deletions

View file

@ -26,6 +26,7 @@ using internal::ComponentVTable;
using internal::ItemTreeNode;
using ComponentRef = VRef<ComponentVTable>;
using ItemVisitorRefMut = VRefMut<internal::ItemVisitorVTable>;
using internal::WindowProperties;
struct ComponentWindow
{
@ -38,7 +39,7 @@ struct ComponentWindow
template<typename Component>
void run(Component *c)
{
internal::WindowProperties props { nullptr, nullptr };
auto props = c->window_properties();
sixtyfps_component_window_run(
&inner, VRefMut<ComponentVTable> { &Component::component_type, c }, &props);
}