annotate src/video/cocoa/SDL_cocoashape.h @ 4825:760ab1b145b8

Added SDL_cocoashape.h
author Eli Gottlieb <eligottlieb@gmail.com>
date Mon, 02 Aug 2010 23:33:04 -0400
parents
children 5660aac926e9
rev   line source
4825
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
1 /*
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
2 SDL - Simple DirectMedia Layer
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
3 Copyright (C) 2010 Eli Gottlieb
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
4
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
5 This library is free software; you can redistribute it and/or
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
6 modify it under the terms of the GNU Lesser General Public
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
7 License as published by the Free Software Foundation; either
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
8 version 2.1 of the License, or (at your option) any later version.
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
9
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
10 This library is distributed in the hope that it will be useful,
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
13 Lesser General Public License for more details.
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
14
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
15 You should have received a copy of the GNU Lesser General Public
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
16 License along with this library; if not, write to the Free Software
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
18
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
19 Eli Gottlieb
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
20 eligottlieb@gmail.com
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
21 */
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
22
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
23 typedef struct {
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
24 NSGraphicsContext* context;
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
25 SDL_Bool saved;
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
26
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
27 NSRect* rects;
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
28 Uint32 count;
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
29 } SDL_ShapeData;
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
30
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
31 extern SDL_WindowShaper* Cocoa_CreateShaper(SDL_Window* window);
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
32 extern int Cocoa_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode);
760ab1b145b8 Added SDL_cocoashape.h
Eli Gottlieb <eligottlieb@gmail.com>
parents:
diff changeset
33 extern int Cocoa_ResizeWindowShape(SDL_Window *window);