Un-seal the WindowAdapter trait

This commit is contained in:
Olivier Goffart 2023-06-13 16:13:33 +02:00 committed by Olivier Goffart
parent 23b910725f
commit 0e31f097a4
16 changed files with 162 additions and 62 deletions

View file

@ -52,6 +52,10 @@ impl WindowAdapter for CppWindowAdapter {
fn renderer(&self) -> &dyn Renderer {
unsafe { core::mem::transmute((self.get_renderer_ref)(self.user_data)) }
}
fn internal(&self, _: i_slint_core::InternalToken) -> Option<&dyn WindowAdapterInternal> {
Some(self)
}
}
impl WindowAdapterInternal for CppWindowAdapter {