mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-02 04:48:27 +00:00
Make WindowAdaptor::request_redraw public
This commit is contained in:
parent
ff6653c77e
commit
4dd10f4a78
7 changed files with 39 additions and 59 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue