13#import <Cocoa/Cocoa.h>
18enum RightMouseButtonEmulationState {
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;
bool _allow_hidpi_window
Storage for allow_hidpi setting. If true renders OTTD in native resolution.
bool CocoaSetupApplication()
Startup the application.
void CocoaExitApplication()
Deregister app delegate.
NSString * OTTDMainLaunchGameEngine
Name of notification observer used to restart the game loop if necessary.
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.