mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-27 12:29:41 +00:00
Move the window scale factor into GraphicsWindow
This commit is contained in:
parent
f2eec61968
commit
c1f91e38ca
10 changed files with 107 additions and 77 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue