13#import <Cocoa/Cocoa.h>
18enum RightMouseButtonEmulationState {
24extern NSString *OTTDMainLaunchGameEngine;
27@interface NSCursor (OTTD_QuickdrawCursor)
28+ (NSCursor *) clearCocoaCursor;
35- (instancetype)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag driver:(
VideoDriver_Cocoa *)drv;
37- (void)setFrame:(NSRect)frameRect display:(BOOL)flag;
39- (void)refreshSystemSprites;
44- (NSRect)getRealRect:(NSRect)rect;
45- (NSRect)getVirtualRect:(NSRect)rect;
46- (CGFloat)getContentsScale;
47- (NSPoint)mousePositionFromEvent:(NSEvent *)e;
54- (BOOL)windowShouldClose:(
id)sender;
55- (void)windowDidEnterFullScreen:(NSNotification *)aNotification;
56- (void)windowDidChangeBackingProperties:(NSNotification *)notification;
57- (NSApplicationPresentationOptions)window:(NSWindow *)window willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions;
61extern bool _allow_hidpi_window;
63bool CocoaSetupApplication();
64void CocoaExitApplication();
Subclass of NSView to support mouse awareness and text input.
Delegate for our NSWindow to send ask for quit on close.
Subclass of NSWindow to cater our special needs.