mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 12:54:45 +00:00
Continue adapting the window size
Implement the Rust and C++ part
This commit is contained in:
parent
ddc4fb6e1f
commit
1dec276002
5 changed files with 45 additions and 5 deletions
|
@ -26,6 +26,7 @@ using internal::ComponentVTable;
|
|||
using internal::ItemTreeNode;
|
||||
using ComponentRef = VRef<ComponentVTable>;
|
||||
using ItemVisitorRefMut = VRefMut<internal::ItemVisitorVTable>;
|
||||
using internal::WindowProperties;
|
||||
|
||||
struct ComponentWindow
|
||||
{
|
||||
|
@ -38,7 +39,7 @@ struct ComponentWindow
|
|||
template<typename Component>
|
||||
void run(Component *c)
|
||||
{
|
||||
internal::WindowProperties props { nullptr, nullptr };
|
||||
auto props = c->window_properties();
|
||||
sixtyfps_component_window_run(
|
||||
&inner, VRefMut<ComponentVTable> { &Component::component_type, c }, &props);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue