diff options
author | 2023-03-04 05:37:11 +0100 | |
---|---|---|
committer | 2023-03-04 05:37:11 +0100 | |
commit | 3a0d34c0240f4421737a6a08761f99d6f8140d02 (patch) | |
tree | c9a4a6b8e9c1db1b8fcd05bc98e3f131d5ef4bd5 /native/src/window.rs | |
parent | c54409d1711e1f615c7ea4b02c082954e340632a (diff) | |
download | iced-3a0d34c0240f4421737a6a08761f99d6f8140d02.tar.gz iced-3a0d34c0240f4421737a6a08761f99d6f8140d02.tar.bz2 iced-3a0d34c0240f4421737a6a08761f99d6f8140d02.zip |
Create `iced_widget` subcrate and re-organize the whole codebase
Diffstat (limited to 'native/src/window.rs')
-rw-r--r-- | native/src/window.rs | 13 |
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, }) } |