author | Ryan C. Gordon |
Sun, 18 Sep 2011 02:00:39 -0400 | |
branch | SDL-1.2 |
changeset 5952 | c838b121901e |
parent 4240 | cb44bf8f8a0f |
child 5955 | 0ade820b8f5f |
permissions | -rw-r--r-- |
slouken@761 | 1 |
/* |
slouken@761 | 2 |
SDL - Simple DirectMedia Layer |
slouken@4159 | 3 |
Copyright (C) 1997-2009 Sam Lantinga |
slouken@761 | 4 |
|
slouken@761 | 5 |
This library is free software; you can redistribute it and/or |
slouken@761 | 6 |
modify it under the terms of the GNU Library General Public |
slouken@761 | 7 |
License as published by the Free Software Foundation; either |
slouken@761 | 8 |
version 2 of the License, or (at your option) any later version. |
slouken@761 | 9 |
|
slouken@761 | 10 |
This library is distributed in the hope that it will be useful, |
slouken@761 | 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
slouken@761 | 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
slouken@761 | 13 |
Library General Public License for more details. |
slouken@761 | 14 |
|
slouken@761 | 15 |
You should have received a copy of the GNU Library General Public |
slouken@761 | 16 |
License along with this library; if not, write to the Free |
slouken@761 | 17 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
slouken@761 | 18 |
|
slouken@761 | 19 |
Sam Lantinga |
slouken@761 | 20 |
slouken@libsdl.org |
slouken@761 | 21 |
*/ |
slouken@1402 | 22 |
#include "SDL_config.h" |
slouken@761 | 23 |
|
icculus@5952 | 24 |
/* this is defined in the 10.5+ SDK headers |
icculus@5952 | 25 |
#ifndef MAC_OS_X_VERSION_10_5 |
icculus@4204 | 26 |
typedef unsigned int NSUInteger; |
icculus@4204 | 27 |
#endif |
icculus@4204 | 28 |
|
slouken@761 | 29 |
/* Subclass of NSWindow to fix genie effect and support resize events */ |
slouken@761 | 30 |
@interface SDL_QuartzWindow : NSWindow |
slouken@4240 | 31 |
{ |
slouken@4240 | 32 |
BOOL watchForMouseUp; |
slouken@4240 | 33 |
} |
slouken@4240 | 34 |
|
slouken@761 | 35 |
- (void)miniaturize:(id)sender; |
slouken@761 | 36 |
- (void)display; |
slouken@761 | 37 |
- (void)setFrame:(NSRect)frameRect display:(BOOL)flag; |
slouken@761 | 38 |
- (void)appDidHide:(NSNotification*)note; |
slouken@761 | 39 |
- (void)appWillUnhide:(NSNotification*)note; |
slouken@761 | 40 |
- (void)appDidUnhide:(NSNotification*)note; |
icculus@4204 | 41 |
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag; |
slouken@761 | 42 |
@end |
slouken@761 | 43 |
|
slouken@761 | 44 |
/* Delegate for our NSWindow to send SDLQuit() on close */ |
slouken@761 | 45 |
@interface SDL_QuartzWindowDelegate : NSObject |
slouken@761 | 46 |
- (BOOL)windowShouldClose:(id)sender; |
slouken@761 | 47 |
@end |
slouken@761 | 48 |
|
slouken@4070 | 49 |
/* Subclass of NSView to set cursor rectangle */ |
slouken@4070 | 50 |
@interface SDL_QuartzView : NSView |
slouken@4070 | 51 |
- (void)resetCursorRects; |
slouken@4070 | 52 |
@end |