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