sdlFlashWindow function

int sdlFlashWindow(
  1. Pointer<SdlWindow> window,
  2. int operation
)

Request a window to demand attention from the user.

\param window the window to be flashed \param operation the flash operation \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.16.

extern DECLSPEC int SDLCALL SDL_FlashWindow(SDL_Window * window, SDL_FlashOperation operation)

Implementation

int sdlFlashWindow(Pointer<SdlWindow> window, int operation) {
  final sdlFlashWindowLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Pointer<SdlWindow> window, Int32 operation),
      int Function(
          Pointer<SdlWindow> window, int operation)>('SDL_FlashWindow');
  return sdlFlashWindowLookupFunction(window, operation);
}