mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Api cleanup: Rename some remaining platform abstractions to platform
This commit is contained in:
parent
107e3ed2e2
commit
10c3c9d16d
10 changed files with 19 additions and 19 deletions
|
@ -22,13 +22,13 @@ pub unsafe extern "C" fn slint_windowrc_init(out: *mut WindowAdapterRcOpaque) {
|
|||
core::mem::size_of::<Rc<dyn WindowAdapter>>(),
|
||||
core::mem::size_of::<WindowAdapterRcOpaque>()
|
||||
);
|
||||
let win = i_slint_backend_selector::with_platform_abstraction(|b| b.create_window_adapter());
|
||||
let win = i_slint_backend_selector::with_platform(|b| b.create_window_adapter());
|
||||
core::ptr::write(out as *mut Rc<dyn WindowAdapter>, win);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn slint_run_event_loop() {
|
||||
i_slint_backend_selector::with_platform_abstraction(|b| {
|
||||
i_slint_backend_selector::with_platform(|b| {
|
||||
b.run_event_loop(i_slint_core::platform::EventLoopQuitBehavior::QuitOnLastWindowClosed)
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue