From f661f78fdaf65fc6af7a1f7d6ad34500b6bd7c62 Mon Sep 17 00:00:00 2001 From: Thetamesis Date: Sun, 3 Aug 2025 12:42:16 +0200 Subject: [PATCH] Add getter for window::Id --- core/src/window/id.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/window/id.rs b/core/src/window/id.rs index ee0a4c5958..fc3afa5bf6 100644 --- a/core/src/window/id.rs +++ b/core/src/window/id.rs @@ -14,6 +14,11 @@ impl Id { pub fn unique() -> Id { Id(COUNT.fetch_add(1, atomic::Ordering::Relaxed)) } + + /// Read-only access to the raw integer id. + pub fn get(&self) -> u64 { + self.0 + } } impl fmt::Display for Id {