sdlFlashWindow function

bool 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 operation to perform. \returns true on success or false on failure; call SDL_GetError() for more information.

\threadsafety This function should only be called on the main thread.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC bool SDLCALL SDL_FlashWindow(SDL_Window *window, SDL_FlashOperation operation)

Implementation

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