mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
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:
parent
507428b03e
commit
7d136b6568
14 changed files with 73 additions and 57 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ public:
|
|||
{
|
||||
slint_platform::update_timers_and_animations();
|
||||
|
||||
m_renderer->render(window());
|
||||
m_renderer->render();
|
||||
|
||||
if (has_active_animations()) {
|
||||
requestUpdate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue