Remove some deprecated stuff

CC #2024
This commit is contained in:
Olivier Goffart 2023-01-26 10:14:05 +01:00 committed by Olivier Goffart
parent 473103dc95
commit a3ec320bfb
8 changed files with 4 additions and 72 deletions

View file

@ -254,14 +254,6 @@ pub use i_slint_core::sharedvector::SharedVector;
pub use i_slint_core::timers::{Timer, TimerMode};
pub use i_slint_core::{format, string::SharedString};
#[deprecated(note = "Use platform::PointerEventButton instead")]
/// Deprecated type alias for [`slint::platform::PointerEventButton`](`crate::platform::PointerEventButton`).
pub type PointerEventButton = crate::platform::PointerEventButton;
#[deprecated(note = "Use platform::WindowEvent instead")]
/// Deprecated type alias for [`slint::platform::WindowEvent`](`crate::platform::WindowEvent`).
pub type WindowEvent = crate::platform::WindowEvent;
pub mod private_unstable_api;
/// Enters the main event loop. This is necessary in order to receive

View file

@ -197,7 +197,7 @@ rendering and possibly putting the device into a low-power sleep state. Below is
```rust,no_run
use slint::platform::{software_renderer::MinimalSoftwareWindow};
let window = MinimalSoftwareWindow::<0>::new();
# fn check_for_touch_event() -> Option<slint::WindowEvent> { todo!() }
# fn check_for_touch_event() -> Option<slint::platform::WindowEvent> { todo!() }
# mod hal { pub fn wfi() {} }
//...
loop {
@ -206,7 +206,7 @@ loop {
// Check the touch screen or input device using your driver.
if let Some(event) = check_for_touch_event(/*...*/) {
// convert the event from the driver into a `slint::WindowEvent`
// convert the event from the driver into a `slint::platform::WindowEvent`
// and pass it to the window.
window.dispatch_event(event);
}