Function sdl2_sys::SDL_SetWindowShape
source · pub unsafe extern "C" fn SDL_SetWindowShape(
window: *mut SDL_Window,
shape: *mut SDL_Surface,
shape_mode: *mut SDL_WindowShapeMode
) -> c_int
Expand description
\brief Set the shape and parameters of a shaped window.
\param window The shaped window whose parameters should be set. \param shape A surface encoding the desired shape for the window. \param shape_mode The parameters to set for the shaped window.
\return 0 on success, SDL_INVALID_SHAPE_ARGUMENT on an invalid shape argument, or SDL_NONSHAPEABLE_WINDOW if the SDL_Window given does not reference a valid shaped window.
\sa SDL_WindowShapeMode \sa SDL_GetShapedWindowMode.