Add a window to the top-level component

This means that we always have a window and for the C++
API we don't require this ComponentWindow use anymore.
This commit is contained in:
Simon Hausmann 2020-08-11 10:45:49 +02:00
parent 5b90f3edf5
commit f2eec61968
10 changed files with 48 additions and 15 deletions

View file

@ -15,6 +15,5 @@ int main()
component.set_counter(component.get_counter() - 1);
});
sixtyfps::ComponentWindow window;
window.run(&component);
component.run();
}