42#define SDL_NONSHAPEABLE_WINDOW -1
43#define SDL_INVALID_SHAPE_ARGUMENT -2
44#define SDL_WINDOW_LACKS_SHAPE -3
96#define SDL_SHAPEMODEALPHA(mode) (mode == ShapeModeDefault || mode == ShapeModeBinarizeAlpha || mode == ShapeModeReverseBinarizeAlpha)
DECLSPEC SDL_bool SDLCALL SDL_IsShapedWindow(const SDL_Window *window)
DECLSPEC int SDLCALL SDL_GetShapedWindowMode(SDL_Window *window, SDL_WindowShapeMode *shape_mode)
DECLSPEC int SDLCALL SDL_SetWindowShape(SDL_Window *window, SDL_Surface *shape, SDL_WindowShapeMode *shape_mode)
WindowShapeMode
An enum denoting the specific type of contents present in an SDL_WindowShapeParams union.
Definition: SDL_shape.h:85
@ ShapeModeBinarizeAlpha
A binarized alpha cutoff with a given integer value.
Definition: SDL_shape.h:89
@ ShapeModeColorKey
A color key is applied.
Definition: SDL_shape.h:93
@ ShapeModeDefault
The default mode, a binarized alpha cutoff of 1.
Definition: SDL_shape.h:87
@ ShapeModeReverseBinarizeAlpha
A binarized alpha cutoff with a given integer value, but with the opposite comparison.
Definition: SDL_shape.h:91
DECLSPEC SDL_Window *SDLCALL SDL_CreateShapedWindow(const char *title, unsigned int x, unsigned int y, unsigned int w, unsigned int h, Uint32 flags)
struct SDL_Window SDL_Window
The type used to identify a window.
Definition: SDL_video.h:95
Definition: SDL_pixels.h:310
A collection of pixels used in software blitting.
Definition: SDL_surface.h:73
A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents.
Definition: SDL_shape.h:106
WindowShapeMode mode
The mode of these window-shape parameters.
Definition: SDL_shape.h:108
SDL_WindowShapeParams parameters
Window-shape parameters.
Definition: SDL_shape.h:110
A union containing parameters for shaped windows.
Definition: SDL_shape.h:99
Uint8 binarizationCutoff
A cutoff alpha value for binarization of the window shape's alpha channel.
Definition: SDL_shape.h:101