mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 22:54:36 +00:00
More fix to use vtable for component. All rust code compiles
This commit is contained in:
parent
686f4c9591
commit
4988fcb543
6 changed files with 80 additions and 39 deletions
|
@ -176,9 +176,8 @@ pub fn sixtyfps(stream: TokenStream) -> TokenStream {
|
|||
});
|
||||
|
||||
sixtyfps_runtime_run_component_with_gl_renderer(
|
||||
// FIMXE!!! this does not compile
|
||||
unsafe { VRefMut::from_inner(
|
||||
core::ptr::NonNull::new_unchecked(&*COMPONENT_VTABLE as *mut ComponentVTable),
|
||||
unsafe { VRefMut::from_raw(
|
||||
core::ptr::NonNull::from(&*COMPONENT_VTABLE),
|
||||
core::ptr::NonNull::from(self).cast()
|
||||
)}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue