pub mod input;
use input::InputEvent;
#[derive(Debug, Clone)]
#[cfg_attr(feature = "bincode", derive(bincode::Encode, bincode::Decode))]
pub enum OverlayEvent {
Window {
id: u32,
event: WindowEvent,
},
}
#[derive(Debug, Clone)]
#[cfg_attr(feature = "bincode", derive(bincode::Encode, bincode::Decode))]
pub enum WindowEvent {
Added {
width: u32,
height: u32,
gpu_id: GpuLuid,
},
Resized {
width: u32,
height: u32,
},
Input(InputEvent),
InputBlockingEnded,
Destroyed,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "bincode", derive(bincode::Encode, bincode::Decode))]
pub struct GpuLuid {
pub low: u32,
pub high: i32,
}