-
Notifications
You must be signed in to change notification settings - Fork 476
Closed
Labels
Description
Seems no API yet for SDL_FlashWindow
. Until then I am abusing FFI:
impl Interface {
pub fn flash_window(&mut self) {
use std::ffi::c_void;
extern "C" {
fn SDL_FlashWindow(w: *mut c_void, o: isize);
}
unsafe {
// 2 == SDL_FLASH_UNTIL_FOCUSED
SDL_FlashWindow(self.sdl_window.raw() as *mut c_void, 2);
}
}
}