arsa
2.7
|
#include "SDL_stdinc.h"
#include "SDL_pixels.h"
#include "SDL_rect.h"
#include "SDL_surface.h"
#include "SDL_video.h"
#include "begin_code.h"
#include "close_code.h"
Go to the source code of this file.
Classes | |
union | SDL_WindowShapeParams |
A union containing parameters for shaped windows. More... | |
struct | SDL_WindowShapeMode |
A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents. More... | |
Macros | |
#define | SDL_NONSHAPEABLE_WINDOW -1 |
#define | SDL_INVALID_SHAPE_ARGUMENT -2 |
#define | SDL_WINDOW_LACKS_SHAPE -3 |
#define | SDL_SHAPEMODEALPHA(mode) (mode == ShapeModeDefault || mode == ShapeModeBinarizeAlpha || mode == ShapeModeReverseBinarizeAlpha) |
Typedefs | |
typedef struct SDL_WindowShapeMode | SDL_WindowShapeMode |
A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents. More... | |
Enumerations | |
enum | WindowShapeMode { ShapeModeDefault, ShapeModeBinarizeAlpha, ShapeModeReverseBinarizeAlpha, ShapeModeColorKey } |
An enum denoting the specific type of contents present in an SDL_WindowShapeParams union. More... | |
Functions | |
DECLSPEC SDL_Window *SDLCALL | SDL_CreateShapedWindow (const char *title, unsigned int x, unsigned int y, unsigned int w, unsigned int h, Uint32 flags) |
Create a window that can be shaped with the specified position, dimensions, and flags. More... | |
DECLSPEC SDL_bool SDLCALL | SDL_IsShapedWindow (const SDL_Window *window) |
Return whether the given window is a shaped window. More... | |
DECLSPEC int SDLCALL | SDL_SetWindowShape (SDL_Window *window, SDL_Surface *shape, SDL_WindowShapeMode *shape_mode) |
Set the shape and parameters of a shaped window. More... | |
DECLSPEC int SDLCALL | SDL_GetShapedWindowMode (SDL_Window *window, SDL_WindowShapeMode *shape_mode) |
Get the shape parameters of a shaped window. More... | |
Header file for the shaped window API.
Definition in file SDL_shape.h.
#define SDL_INVALID_SHAPE_ARGUMENT -2 |
Definition at line 43 of file SDL_shape.h.
#define SDL_NONSHAPEABLE_WINDOW -1 |
Definition at line 42 of file SDL_shape.h.
#define SDL_SHAPEMODEALPHA | ( | mode | ) | (mode == ShapeModeDefault || mode == ShapeModeBinarizeAlpha || mode == ShapeModeReverseBinarizeAlpha) |
Definition at line 91 of file SDL_shape.h.
#define SDL_WINDOW_LACKS_SHAPE -3 |
Definition at line 44 of file SDL_shape.h.
typedef struct SDL_WindowShapeMode SDL_WindowShapeMode |
A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents.
enum WindowShapeMode |
An enum denoting the specific type of contents present in an SDL_WindowShapeParams union.
Definition at line 80 of file SDL_shape.h.
DECLSPEC SDL_Window* SDLCALL SDL_CreateShapedWindow | ( | const char * | title, |
unsigned int | x, | ||
unsigned int | y, | ||
unsigned int | w, | ||
unsigned int | h, | ||
Uint32 | flags | ||
) |
Create a window that can be shaped with the specified position, dimensions, and flags.
title | The title of the window, in UTF-8 encoding. |
x | The x position of the window, SDL_WINDOWPOS_CENTERED, or SDL_WINDOWPOS_UNDEFINED. |
y | The y position of the window, SDL_WINDOWPOS_CENTERED, or SDL_WINDOWPOS_UNDEFINED. |
w | The width of the window. |
h | The height of the window. |
flags | The flags for the window, a mask of SDL_WINDOW_BORDERLESS with any of the following: SDL_WINDOW_OPENGL, SDL_WINDOW_INPUT_GRABBED, SDL_WINDOW_HIDDEN, SDL_WINDOW_RESIZABLE, SDL_WINDOW_MAXIMIZED, SDL_WINDOW_MINIMIZED, SDL_WINDOW_BORDERLESS is always set, and SDL_WINDOW_FULLSCREEN is always unset. |
DECLSPEC int SDLCALL SDL_GetShapedWindowMode | ( | SDL_Window * | window, |
SDL_WindowShapeMode * | shape_mode | ||
) |
Get the shape parameters of a shaped window.
window | The shaped window whose parameters should be retrieved. |
shape_mode | An empty shape-mode structure to fill, or NULL to check whether the window has a shape. |
DECLSPEC SDL_bool SDLCALL SDL_IsShapedWindow | ( | const SDL_Window * | window | ) |
Return whether the given window is a shaped window.
window | The window to query for being shaped. |
DECLSPEC int SDLCALL SDL_SetWindowShape | ( | SDL_Window * | window, |
SDL_Surface * | shape, | ||
SDL_WindowShapeMode * | shape_mode | ||
) |
Set the shape and parameters of a shaped window.
window | The shaped window whose parameters should be set. |
shape | A surface encoding the desired shape for the window. |
shape_mode | The parameters to set for the shaped window. |