blob: cdfdec47e2d2f0c6e2ce8d276aedc4b581206f88 [file] [log] [blame]
Jean-Baptiste Queru46e568c2009-10-27 09:08:42 -07001/*
2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997-2003 Sam Lantinga
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 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 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the Free
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19 Sam Lantinga
20 slouken@libsdl.org
21*/
22#include "SDL_config.h"
23
24/* Subclass of NSWindow to fix genie effect and support resize events */
25@interface SDL_QuartzWindow : NSWindow
26- (void)miniaturize:(id)sender;
27- (void)display;
28- (void)setFrame:(NSRect)frameRect display:(BOOL)flag;
29- (void)appDidHide:(NSNotification*)note;
30- (void)appWillUnhide:(NSNotification*)note;
31- (void)appDidUnhide:(NSNotification*)note;
32- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag;
33@end
34
35/* Delegate for our NSWindow to send SDLQuit() on close */
36@interface SDL_QuartzWindowDelegate : NSObject
37- (BOOL)windowShouldClose:(id)sender;
38@end
39
40/* Subclass of NSView to set cursor rectangle */
41@interface SDL_QuartzView : NSView
42- (void)resetCursorRects;
43@end