Remove the window parameter from the render() function of all the renderers

This makes for a slimmer API and instead we can create the renderer <-> window association
behind the scenes ourselves,
in set_component.
This commit is contained in:
Simon Hausmann 2023-07-25 15:46:13 +02:00 committed by Simon Hausmann
parent 507428b03e
commit 7d136b6568
14 changed files with 73 additions and 57 deletions

View file

@ -82,7 +82,7 @@ struct MyWindowAdapter : public slint_platform::WindowAdapter
void render()
{
m_renderer->render(window());
m_renderer->render();
if (has_active_animations())
request_redraw();
}

View file

@ -83,7 +83,7 @@ public:
{
slint_platform::update_timers_and_animations();
m_renderer->render(window());
m_renderer->render();
if (has_active_animations()) {
requestUpdate();