slint/api/sixtyfps-cpp/include
Simon Hausmann 753ec83a05 Fix crash with VRc::borrow() on wasm32
When converting a Weak<VT, T> into Weak<VT, Dyn>, we were ignoring that
while T inside VRcInner may be at a certain offset to satisfy alignment,
the empty Dyn field may not and thus be at a different offset.

On wasm32 for example the compiler generated component struct has a
16-byte alignment, while the Dyn has none. So converting the Weak<VT,
Dyn> to a VRc<VT, Dyn> and then calling borrow() would use the wrong
instance pointer.

To fix this, this patch introduces an extra offset field that's
preserved during the casting and that's used for borrow() as well as
drop().
2020-11-12 11:04:56 +01:00
..
sixtyfps.h Initialize the component in the Window at component creation time 2020-11-11 19:03:04 +01:00
sixtyfps_color.h Change C++ API to use the ComponentHandle 2020-11-10 19:28:34 +01:00
sixtyfps_pathdata.h Also do the comperty comparison in C++ 2020-10-31 14:36:38 +01:00
sixtyfps_properties.h Change C++ API to use the ComponentHandle 2020-11-10 19:28:34 +01:00
sixtyfps_resource.h Also do the comperty comparison in C++ 2020-10-31 14:36:38 +01:00
sixtyfps_sharedarray.h Also do the comperty comparison in C++ 2020-10-31 14:36:38 +01:00
sixtyfps_signals.h Change C++ API to use the ComponentHandle 2020-11-10 19:28:34 +01:00
sixtyfps_string.h Fix string comparison in C++ 2020-11-03 19:42:01 +01:00
sixtyfps_testing.h Remove the component parameter from GenericWindow::process_key_input 2020-11-11 19:16:26 +01:00
vtable.h Fix crash with VRc::borrow() on wasm32 2020-11-12 11:04:56 +01:00