Skip to content

Commit f661f78

Browse files
committed
Add getter for window::Id
1 parent 9d56b48 commit f661f78

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/window/id.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ impl Id {
1414
pub fn unique() -> Id {
1515
Id(COUNT.fetch_add(1, atomic::Ordering::Relaxed))
1616
}
17+
18+
/// Read-only access to the raw integer id.
19+
pub fn get(&self) -> u64 {
20+
self.0
21+
}
1722
}
1823

1924
impl fmt::Display for Id {

0 commit comments

Comments
 (0)