annotate src/video/x11/SDL_x11shape.h @ 5148:2f44e6969a59

Split the rendering API out into a separate header file.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 01 Feb 2011 15:02:21 -0800
parents 329708ffe2a7
children
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
4809
329708ffe2a7 Rejiggering the way shaped windows are created as preparation for OS X implementation. Fixed overdrive bug in test program that appears to have been introduced by someone other than myself.
Eli Gottlieb <eligottlieb@gmail.com>
parents: 4783
diff changeset
36 extern SDL_Window* X11_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags);
4783
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
37 extern SDL_WindowShaper* X11_CreateShaper(SDL_Window* window);
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
38 extern int X11_ResizeWindowShape(SDL_Window* window);
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
39 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
40
43826836b995 Added SDL_x11shape.h.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
41 #endif /* _SDL_x11shape_h */