summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--native/src/window.rs3
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,
}