annotate src/video/x11/SDL_x11shape.h @ 4793:cb31d2fdbe61

Add XShape test to configure scripts.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 13 Jul 2010 02:43:10 -0400
parents 43826836b995
children 329708ffe2a7
rev   line source
4783
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
1 /*
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
2 SDL - Simple DirectMedia Layer
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
3 Copyright (C) 2010 Eli Gottlieb
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
4
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
5 This library is free software; you can redistribute it and/or
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
6 modify it under the terms of the GNU Lesser General Public
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
7 License as published by the Free Software Foundation; either
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
8 version 2.1 of the License, or (at your option) any later version.
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
9
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
10 This library is distributed in the hope that it will be useful,
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
13 Lesser General Public License for more details.
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
14
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
15 You should have received a copy of the GNU Lesser General Public
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
16 License along with this library; if not, write to the Free Software
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
18
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
19 Eli Gottlieb
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
20 eligottlieb@gmail.com
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
21 */
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
22 #include "SDL_config.h"
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
23
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
24 #ifndef _SDL_x11shape_h
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
25 #define _SDL_x11shape_h
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
26
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
27 #include "SDL_video.h"
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
28 #include "SDL_shape.h"
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
29 #include "../SDL_sysvideo.h"
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
30
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
31 typedef struct {
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
32 void* bitmap;
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
33 Uint32 bitmapsize;
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
34 } SDL_ShapeData;
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
35
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
36 extern SDL_WindowShaper* X11_CreateShaper(SDL_Window* window);
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
37 extern int X11_ResizeWindowShape(SDL_Window* window);
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
38 extern int X11_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode);
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
39
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
40 #endif /* _SDL_x11shape_h */