diff options
author | planetmaker <planetmaker@openttd.org> | 2010-12-21 15:57:55 +0000 |
---|---|---|
committer | planetmaker <planetmaker@openttd.org> | 2010-12-21 15:57:55 +0000 |
commit | 26575ab8f880a39dc9c07203d4f8b31eb667fdac (patch) | |
tree | b856ca9c3891022933f1a291cbdaba461fcad11d /src/video/cocoa/cocoa_v.h | |
parent | 7ab04792c501fcc605eff92d79eab5a66707e28f (diff) | |
download | openttd-26575ab8f880a39dc9c07203d4f8b31eb667fdac.tar.xz |
(svn r21575) -Codechange: [OSX] Use the same class for the window delegate routines in windowed screen drivers
Diffstat (limited to 'src/video/cocoa/cocoa_v.h')
-rw-r--r-- | src/video/cocoa/cocoa_v.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/video/cocoa/cocoa_v.h b/src/video/cocoa/cocoa_v.h index 2d789d89e..e81125b5b 100644 --- a/src/video/cocoa/cocoa_v.h +++ b/src/video/cocoa/cocoa_v.h @@ -124,4 +124,15 @@ void QZ_HideMouse(); uint QZ_ListModes(OTTD_Point *modes, uint max_modes, CGDirectDisplayID display_id, int display_depth); +/** Delegate for our NSWindow to send ask for quit on close */ +@interface OTTD_CocoaWindowDelegate : NSObject { + CocoaSubdriver *driver; +} + +- (void)setDriver:(CocoaSubdriver*)drv; + +- (BOOL)windowShouldClose:(id)sender; +@end + + #endif /* VIDEO_COCOA_H */ |