mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-30 23:27:22 +00:00
Un-seal the WindowAdapter trait
This commit is contained in:
parent
23b910725f
commit
0e31f097a4
16 changed files with 162 additions and 62 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue