mod handler;
pub use handler::EventHandler;
#[derive(Debug, Clone)]
pub enum FloatingWindowEvent {
Show,
Hide,
Close,
Move { x: f64, y: f64 },
Resize { width: u32, height: u32 },
Click { x: f32, y: f32 },
DragStart { x: f32, y: f32 },
Drag { x: f32, y: f32 },
DragEnd { x: f32, y: f32 },
MouseEnter,
MouseLeave,
MouseMove { x: f32, y: f32 },
}
pub type EventCallback = Box<dyn Fn(&FloatingWindowEvent) + Send + Sync>;