Move the window scale factor into GraphicsWindow

This commit is contained in:
Simon Hausmann 2020-08-11 13:27:25 +02:00
parent f2eec61968
commit c1f91e38ca
10 changed files with 107 additions and 77 deletions

View file

@ -54,6 +54,12 @@ struct ComponentWindow
&inner, VRefMut<ComponentVTable> { &Component::component_type, c }, &props);
}
float scale_factor() const { return sixtyfps_component_window_get_scale_factor(&inner); }
void set_scale_factor(float value)
{
sixtyfps_component_window_set_scale_factor(&inner, value);
}
private:
internal::ComponentWindowOpaque inner;
};