comparison src/video/x11/SDL_x11shape.h @ 4862:7b1d35d98294

Merged Eli's Google Summer of Code work from SDL-gsoc2010-shaped_windows
author Sam Lantinga <slouken@libsdl.org>
date Sun, 22 Aug 2010 13:45:56 -0700
parents 329708ffe2a7
children
comparison
equal deleted inserted replaced
4764:102675835e08 4862:7b1d35d98294
1 /*
2 SDL - Simple DirectMedia Layer
3 Copyright (C) 2010 Eli Gottlieb
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19 Eli Gottlieb
20 eligottlieb@gmail.com
21 */
22 #include "SDL_config.h"
23
24 #ifndef _SDL_x11shape_h
25 #define _SDL_x11shape_h
26
27 #include "SDL_video.h"
28 #include "SDL_shape.h"
29 #include "../SDL_sysvideo.h"
30
31 typedef struct {
32 void* bitmap;
33 Uint32 bitmapsize;
34 } SDL_ShapeData;
35
36 extern SDL_Window* X11_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags);
37 extern SDL_WindowShaper* X11_CreateShaper(SDL_Window* window);
38 extern int X11_ResizeWindowShape(SDL_Window* window);
39 extern int X11_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode);
40
41 #endif /* _SDL_x11shape_h */