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;
36 - (void)setFrame:(NSRect)frameRect display:(BOOL)flag;
41 - (NSRect)getRealRect:(NSRect)rect;
42 - (NSRect)getVirtualRect:(NSRect)rect;
43 - (CGFloat)getContentsScale;
44 - (NSPoint)mousePositionFromEvent:(NSEvent *)e;
51 - (BOOL)windowShouldClose:(
id)sender;
52 - (void)windowDidEnterFullScreen:(NSNotification *)aNotification;
53 - (void)windowDidChangeBackingProperties:(NSNotification *)notification;
54 - (NSApplicationPresentationOptions)window:(NSWindow *)window willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions;
58 extern bool _allow_hidpi_window;
60 bool CocoaSetupApplication();
61 void CocoaExitApplication();