pub unsafe fn window_get_event_code(window: *mut Object) -> Result<u32>
This function is unsafe because it may dereference raw pointers.