summaryrefslogtreecommitdiffstats
path: root/native/src/window.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--native/src/window.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/native/src/window.rs b/native/src/window.rs
index a5cdc8ce..97a96e54 100644
--- a/native/src/window.rs
+++ b/native/src/window.rs
@@ -1,18 +1,11 @@
//! Build window-based GUI applications.
mod action;
-mod event;
-mod mode;
-mod redraw_request;
-mod user_attention;
pub use action::Action;
-pub use event::Event;
-pub use mode::Mode;
-pub use redraw_request::RedrawRequest;
-pub use user_attention::UserAttention;
+use crate::core::time::Instant;
+use crate::core::window::Event;
use crate::subscription::{self, Subscription};
-use crate::time::Instant;
/// Subscribes to the frames of the window of the running application.
///
@@ -24,7 +17,7 @@ use crate::time::Instant;
/// animations without missing any frames.
pub fn frames() -> Subscription<Instant> {
subscription::raw_events(|event, _status| match event {
- crate::Event::Window(Event::RedrawRequested(at)) => Some(at),
+ iced_core::Event::Window(Event::RedrawRequested(at)) => Some(at),
_ => None,
})
}