1/// A handle to a created window. 2#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] 3pub struct WindowHandle(pub u64); 4 5impl WindowHandle { 6 pub fn new(id: u64) -> Self { 7 Self(id) 8 } 9 10 pub fn id(&self) -> u64 { 11 self.0 12 } 13}