diff options
Diffstat (limited to 'src/video/cocoa/cocoa_v.h')
-rw-r--r-- | src/video/cocoa/cocoa_v.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/video/cocoa/cocoa_v.h b/src/video/cocoa/cocoa_v.h index 97fc23f26..e570c6a86 100644 --- a/src/video/cocoa/cocoa_v.h +++ b/src/video/cocoa/cocoa_v.h @@ -99,6 +99,9 @@ public: virtual bool MouseIsInsideView(NSPoint *pt) = 0; virtual bool IsActive() = 0; + + virtual void SetPortAlphaOpaque() { return; }; + virtual bool WindowResized() { return false; }; }; extern CocoaSubdriver *_cocoa_subdriver; @@ -124,6 +127,22 @@ void QZ_HideMouse(); uint QZ_ListModes(OTTD_Point *modes, uint max_modes, CGDirectDisplayID display_id, int display_depth); +/* Subclass of NSWindow to cater our special needs */ +@interface OTTD_CocoaWindow : NSWindow { + CocoaSubdriver *driver; +} + +- (void)setDriver:(CocoaSubdriver*)drv; + +- (void)miniaturize:(id)sender; +- (void)display; +- (void)setFrame:(NSRect)frameRect display:(BOOL)flag; +- (void)appDidHide:(NSNotification*)note; +- (void)appWillUnhide:(NSNotification*)note; +- (void)appDidUnhide:(NSNotification*)note; +- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag; +@end + /* Subclass of NSView to fix Quartz rendering */ @interface OTTD_CocoaView : NSView { CocoaSubdriver *driver; |