Widget operations for multi-window.

This commit is contained in:
Bingus 2023-02-15 14:31:16 -08:00
parent 367fea5dc8
commit 64e0e817c2
No known key found for this signature in database
GPG key ID: 5F84D2AA40A9F170
4 changed files with 169 additions and 113 deletions

View file

@ -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,
}