Mercurial > sdl-ios-xcode
annotate src/video/cocoa/SDL_cocoashape.h @ 4872:231f8a1c5edd
Whoops, return "" even if the window is invalid.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 29 Aug 2010 16:28:04 -0700 |
parents | 91f4d4d5c395 |
children |
rev | line source |
---|---|
4825 | 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 | |
4827
5660aac926e9
Got basic, pre-actually-writing-anything Cocoa to build.
egottlieb
parents:
4825
diff
changeset
|
23 #include "SDL_config.h" |
5660aac926e9
Got basic, pre-actually-writing-anything Cocoa to build.
egottlieb
parents:
4825
diff
changeset
|
24 |
5660aac926e9
Got basic, pre-actually-writing-anything Cocoa to build.
egottlieb
parents:
4825
diff
changeset
|
25 #ifndef _SDL_cocoashape_h |
5660aac926e9
Got basic, pre-actually-writing-anything Cocoa to build.
egottlieb
parents:
4825
diff
changeset
|
26 #define _SDL_cocoashape_h |
5660aac926e9
Got basic, pre-actually-writing-anything Cocoa to build.
egottlieb
parents:
4825
diff
changeset
|
27 |
5660aac926e9
Got basic, pre-actually-writing-anything Cocoa to build.
egottlieb
parents:
4825
diff
changeset
|
28 #include "SDL_stdinc.h" |
5660aac926e9
Got basic, pre-actually-writing-anything Cocoa to build.
egottlieb
parents:
4825
diff
changeset
|
29 #include "SDL_video.h" |
5660aac926e9
Got basic, pre-actually-writing-anything Cocoa to build.
egottlieb
parents:
4825
diff
changeset
|
30 #include "SDL_shape.h" |
4831
8dabd625079f
Building under OS X with command-line tools now works.
egottlieb
parents:
4827
diff
changeset
|
31 #include "../SDL_shape_internals.h" |
4827
5660aac926e9
Got basic, pre-actually-writing-anything Cocoa to build.
egottlieb
parents:
4825
diff
changeset
|
32 |
4825 | 33 typedef struct { |
34 NSGraphicsContext* context; | |
4827
5660aac926e9
Got basic, pre-actually-writing-anything Cocoa to build.
egottlieb
parents:
4825
diff
changeset
|
35 SDL_bool saved; |
4825 | 36 |
4827
5660aac926e9
Got basic, pre-actually-writing-anything Cocoa to build.
egottlieb
parents:
4825
diff
changeset
|
37 SDL_ShapeTree* shape; |
4825 | 38 } SDL_ShapeData; |
39 | |
40 extern SDL_WindowShaper* Cocoa_CreateShaper(SDL_Window* window); | |
4859
91f4d4d5c395
Recoded Cocoa code that got erased by... failure to commit? Merge? Eh.
egottlieb
parents:
4831
diff
changeset
|
41 extern int Cocoa_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shape_mode); |
4825 | 42 extern int Cocoa_ResizeWindowShape(SDL_Window *window); |
4827
5660aac926e9
Got basic, pre-actually-writing-anything Cocoa to build.
egottlieb
parents:
4825
diff
changeset
|
43 |
5660aac926e9
Got basic, pre-actually-writing-anything Cocoa to build.
egottlieb
parents:
4825
diff
changeset
|
44 #endif |