add window::Id to Event and Action
This commit is contained in:
parent
974cc6b6f5
commit
0ad53a3d5c
11 changed files with 99 additions and 78 deletions
|
|
@ -6,6 +6,9 @@ use std::hash::{Hash, Hasher};
|
|||
pub struct Id(u64);
|
||||
|
||||
impl Id {
|
||||
/// TODO(derezzedex): maybe change `u64` to an enum `Type::{Single, Multi(u64)}`
|
||||
pub const MAIN: Self = Id(0);
|
||||
|
||||
/// TODO(derezzedex)
|
||||
pub fn new(id: impl Hash) -> Id {
|
||||
let mut hasher = DefaultHasher::new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue