Make WindowAdaptor::request_redraw public

This commit is contained in:
Olivier Goffart 2023-06-13 17:30:38 +02:00 committed by Olivier Goffart
parent ff6653c77e
commit 4dd10f4a78
7 changed files with 39 additions and 59 deletions

View file

@ -56,6 +56,10 @@ impl WindowAdapter for CppWindowAdapter {
fn internal(&self, _: i_slint_core::InternalToken) -> Option<&dyn WindowAdapterInternal> {
Some(self)
}
fn request_redraw(&self) {
unsafe { (self.request_redraw)(self.user_data) }
}
}
impl WindowAdapterInternal for CppWindowAdapter {
@ -67,10 +71,6 @@ impl WindowAdapterInternal for CppWindowAdapter {
unsafe { (self.hide)(self.user_data) }
Ok(())
}
fn request_redraw(&self) {
unsafe { (self.request_redraw)(self.user_data) }
}
}
#[no_mangle]