diff options
author | 2023-02-15 14:31:16 -0800 | |
---|---|---|
committer | 2023-02-15 14:31:16 -0800 | |
commit | 64e0e817c27d720dc954ee94de58ded35b3f9f9a (patch) | |
tree | 185b771a7618c0b28df34ad5c394b94c9668df2e /native/src | |
parent | 367fea5dc8e94584334e880970126b40a046bfa6 (diff) | |
download | iced-64e0e817c27d720dc954ee94de58ded35b3f9f9a.tar.gz iced-64e0e817c27d720dc954ee94de58ded35b3f9f9a.tar.bz2 iced-64e0e817c27d720dc954ee94de58ded35b3f9f9a.zip |
Widget operations for multi-window.
Diffstat (limited to 'native/src')
-rw-r--r-- | native/src/window.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/native/src/window.rs b/native/src/window.rs index aa11756f..e768ed6d 100644 --- a/native/src/window.rs +++ b/native/src/window.rs @@ -21,6 +21,7 @@ pub use user_attention::UserAttention; use crate::subscription::{self, Subscription}; use crate::time::Instant; +use crate::window; /// Subscribes to the frames of the window of the running application. /// @@ -42,6 +43,8 @@ pub fn frames() -> Subscription<Frame> { /// The returned `Frame` for a framerate subscription. #[derive(Debug)] pub struct Frame { + /// The `window::Id` that the `Frame` was produced in. pub id: Id, + /// The `Instant` at which the frame was produced. pub at: Instant, } |