sdlShowWindow function video

bool sdlShowWindow(
  1. Pointer<SdlWindow> window
)

Show a window.

\param window the window to show. \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.2.0.

\sa SDL_HideWindow \sa SDL_RaiseWindow

extern SDL_DECLSPEC bool SDLCALL SDL_ShowWindow(SDL_Window *window)

Implementation

bool sdlShowWindow(Pointer<SdlWindow> window) {
  final sdlShowWindowLookupFunction = _libSdl
      .lookupFunction<
        Uint8 Function(Pointer<SdlWindow> window),
        int Function(Pointer<SdlWindow> window)
      >('SDL_ShowWindow');
  return sdlShowWindowLookupFunction(window) == 1;
}