Rust: Don't get the default font size through the root component

Planning for multi-component support
This commit is contained in:
Olivier Goffart 2024-06-13 09:39:17 +02:00
parent a00e3361ac
commit 4cc6337c42
5 changed files with 19 additions and 13 deletions

View file

@ -221,6 +221,11 @@ public:
cbindgen_private::slint_register_bitmap_font(&inner, &font);
}
inline float default_font_size() const
{
return cbindgen_private::slint_windowrc_default_font_size(&inner);
}
/// \private
const cbindgen_private::WindowAdapterRcOpaque &handle() const { return inner; }