13 #import <Cocoa/Cocoa.h>
18 enum RightMouseButtonEmulationState {
24 extern NSString *OTTDMainLaunchGameEngine;
28 + (NSCursor *) clearCocoaCursor;
33 - (instancetype)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag driver:(
VideoDriver_Cocoa *)drv;
35 - (void)setFrame:(NSRect)frameRect display:(BOOL)flag;
40 - (NSRect)getRealRect:(NSRect)rect;
41 - (NSRect)getVirtualRect:(NSRect)rect;
42 - (CGFloat)getContentsScale;
43 - (NSPoint)mousePositionFromEvent:(NSEvent *)e;
50 - (BOOL)windowShouldClose:(
id)sender;
51 - (void)windowDidEnterFullScreen:(NSNotification *)aNotification;
52 - (void)windowDidChangeBackingProperties:(NSNotification *)notification;
53 - (NSApplicationPresentationOptions)window:(NSWindow *)window willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions;
57 extern bool _allow_hidpi_window;
59 bool CocoaSetupApplication();
60 void CocoaExitApplication();