sdlGetWindowProgressValue function video
Get the value of the progress bar for the given windowâs taskbar icon.
\param window the window to get the current progress value from.
\returns the progress value in the range of 0.0f - 1.0f
, or -1.0f 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 float SDLCALL SDL_GetWindowProgressValue(SDL_Window *window)
Implementation
double sdlGetWindowProgressValue(Pointer<SdlWindow> window) {
final sdlGetWindowProgressValueLookupFunction = _libSdl
.lookupFunction<
Float Function(Pointer<SdlWindow> window),
double Function(Pointer<SdlWindow> window)
>('SDL_GetWindowProgressValue');
return sdlGetWindowProgressValueLookupFunction(window);
}