21 #include "../../SDL_internal.h" 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.
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
SDL_WindowShaper * Win32_CreateShaper(SDL_Window *window)
#define SDL_INVALID_SHAPE_ARGUMENT
SDL_WindowShaper * shaper
SDL_ShapeTree * mask_tree
The default mode, a binarized alpha cutoff of 1.
SDL_WindowShapeParams parameters
Window-shape parameters.
#define SDL_assert(condition)
EGLSurface EGLNativeWindowType * window
int Win32_SetWindowShape(SDL_WindowShaper *shaper, SDL_Surface *shape, SDL_WindowShapeMode *shape_mode)
The type used to identify a window.
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.
#define SDL_SetWindowPosition