Skip to content

SDL_FlashWindow? #1174

@ctrlcctrlv

Description

@ctrlcctrlv

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); 
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions