1
2
3
4
5
6
7
8
9
10
11
use windows::Win32::Foundation::HWND;

use crate::events::Event;

/// Re-exported [`windows::Win32::Foundation::HWND`].
pub type WindowHandle = HWND;

/// Signature of the Event Hook callback function.
pub trait EventHandler: Fn(Event, WindowHandle, i32, i32, u32, u32) + Sync + Send {}

impl<T> EventHandler for T where T: Fn(Event, WindowHandle, i32, i32, u32, u32) + Sync + Send {}