sdlGetShapedWindowMode function
Get the shape parameters of a shaped window.
\param window The shaped window whose parameters should be retrieved. \param shape_mode An empty shape-mode structure to fill, or NULL to check whether the window has a shape. \return 0 if the window has a shape and, provided shape_mode was not NULL, shape_mode has been filled with the mode data, SDL_NONSHAPEABLE_WINDOW if the SDL_Window given is not a shaped window, or SDL_WINDOW_LACKS_SHAPE if the SDL_Window given is a shapeable window currently lacking a shape.
\since This function is available since SDL 2.0.0.
\sa SDL_WindowShapeMode \sa SDL_SetWindowShape
extern DECLSPEC int SDLCALL SDL_GetShapedWindowMode(SDL_Window *window,SDL_WindowShapeMode *shape_mode)
Implementation
int sdlGetShapedWindowMode(
Pointer<SdlWindow> window, Pointer<SdlWindowShapeMode> shapeMode) {
final sdlGetShapedWindowModeLookupFunction = libSdl2.lookupFunction<
Int32 Function(
Pointer<SdlWindow> window, Pointer<SdlWindowShapeMode> shapeMode),
int Function(Pointer<SdlWindow> window,
Pointer<SdlWindowShapeMode> shapeMode)>('SDL_GetShapedWindowMode');
return sdlGetShapedWindowModeLookupFunction(window, shapeMode);
}