sdlIsShapedWindow function

bool sdlIsShapedWindow(
  1. Pointer<SdlWindow> window
)

Return whether the given window is a shaped window.

\param window The window to query for being shaped. \return SDL_TRUE if the window is a window that can be shaped, SDL_FALSE if the window is unshaped or NULL.

\since This function is available since SDL 2.0.0.

\sa SDL_CreateShapedWindow

extern DECLSPEC SDL_bool SDLCALL SDL_IsShapedWindow(const SDL_Window *window)

Implementation

bool sdlIsShapedWindow(Pointer<SdlWindow> window) {
  final sdlIsShapedWindowLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Pointer<SdlWindow> window),
      int Function(Pointer<SdlWindow> window)>('SDL_IsShapedWindow');
  return sdlIsShapedWindowLookupFunction(window) == 1;
}