comparison src/video/cocoa/SDL_cocoashape.h @ 4839:05d172e92b52

Merging branches. Will begin correcting mistakes introduced by merging.
author Eli Gottlieb <eligottlieb@gmail.com>
date Mon, 09 Aug 2010 15:41:33 -0400
parents 8dabd625079f
children 91f4d4d5c395
comparison
equal deleted inserted replaced
4838:1f9915666afd 4839:05d172e92b52
18 18
19 Eli Gottlieb 19 Eli Gottlieb
20 eligottlieb@gmail.com 20 eligottlieb@gmail.com
21 */ 21 */
22 22
23 #include "SDL_config.h"
24
25 #ifndef _SDL_cocoashape_h
26 #define _SDL_cocoashape_h
27
28 #include "SDL_stdinc.h"
29 #include "SDL_video.h"
30 #include "SDL_shape.h"
31 #include "../SDL_shape_internals.h"
32
23 typedef struct { 33 typedef struct {
24 NSGraphicsContext* context; 34 NSGraphicsContext* context;
25 SDL_Bool saved; 35 SDL_bool saved;
26 36
27 NSRect* rects; 37 SDL_ShapeTree* shape;
28 Uint32 count;
29 } SDL_ShapeData; 38 } SDL_ShapeData;
30 39
31 extern SDL_WindowShaper* Cocoa_CreateShaper(SDL_Window* window); 40 extern SDL_WindowShaper* Cocoa_CreateShaper(SDL_Window* window);
32 extern int Cocoa_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode); 41 extern int Cocoa_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode);
33 extern int Cocoa_ResizeWindowShape(SDL_Window *window); 42 extern int Cocoa_ResizeWindowShape(SDL_Window *window);
43
44 #endif