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