sdlGetWindowProgressState function video
Get the state of the progress bar for the given windowâs taskbar icon.
\param window the window to get the current progress state from.
\returns the progress state, or SDL_PROGRESS_STATE_INVALID 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.4.0.
extern SDL_DECLSPEC SDL_ProgressState SDLCALL SDL_GetWindowProgressState(SDL_Window *window)
Implementation
int sdlGetWindowProgressState(Pointer<SdlWindow> window) {
final sdlGetWindowProgressStateLookupFunction = _libSdl
.lookupFunction<
Int32 Function(Pointer<SdlWindow> window),
int Function(Pointer<SdlWindow> window)
>('SDL_GetWindowProgressState');
return sdlGetWindowProgressStateLookupFunction(window);
}