23 #if SDL_VIDEO_DRIVER_WINDOWS
42 if (resized_properly != 0)
50 HRGN mask_region = *((HRGN*)closure),temp_region =
NULL;
54 if(mask_region !=
NULL) {
55 CombineRgn(mask_region,mask_region,temp_region,RGN_OR);
56 DeleteObject(temp_region);
59 *((HRGN*)closure) = temp_region;
66 HRGN mask_region =
NULL;
68 if( (shaper ==
NULL) ||
void SDL_FreeShapeTree(SDL_ShapeTree **shape_tree)
SDL_ShapeTree * SDL_CalculateShapeTree(SDL_WindowShapeMode mode, SDL_Surface *shape)
int Win32_ResizeWindowShape(SDL_Window *window)
A collection of pixels used in software blitting.
SDL_WindowShaper * Win32_CreateShaper(SDL_Window *window)
#define SDL_INVALID_SHAPE_ARGUMENT
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
SDL_WindowShaper * shaper
SDL_ShapeTree * mask_tree
The default mode, a binarized alpha cutoff of 1.
DECLSPEC void *SDLCALL SDL_malloc(size_t size)
SDL_WindowShapeParams parameters
Window-shape parameters.
#define SDL_assert(condition)
DECLSPEC void SDLCALL SDL_SetWindowPosition(SDL_Window *window, int x, int y)
Set the position of a window.
int Win32_SetWindowShape(SDL_WindowShaper *shaper, SDL_Surface *shape, SDL_WindowShapeMode *shape_mode)
void SDL_TraverseShapeTree(SDL_ShapeTree *tree, SDL_TraversalFunction function, void *closure)
Uint8 binarizationCutoff
a cutoff alpha value for binarization of the window shape's alpha channel.
A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents...
WindowShapeMode mode
The mode of these window-shape parameters.