summaryrefslogtreecommitdiffstats
path: root/native/src/window/id.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/window/id.rs')
-rw-r--r--native/src/window/id.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/native/src/window/id.rs b/native/src/window/id.rs
index 059cf4e7..5060e162 100644
--- a/native/src/window/id.rs
+++ b/native/src/window/id.rs
@@ -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();