Introduce window::Id to timing::Stage in iced_sentinel
This commit is contained in:
parent
caecbf20ef
commit
8591e5a148
8 changed files with 97 additions and 62 deletions
|
|
@ -2,10 +2,11 @@ use std::hash::Hash;
|
|||
|
||||
use std::sync::atomic::{self, AtomicU64};
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
||||
/// The id of the window.
|
||||
///
|
||||
/// Internally Iced reserves `window::Id::MAIN` for the first window spawned.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||
pub struct Id(u64);
|
||||
|
||||
static COUNT: AtomicU64 = AtomicU64::new(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue