Files
MapLibreParticleLab/platform/macos/app/AppDelegate.h
Bart Louwers e4a4b9ec67 macOS Metal + AppKit app (#2205)
Co-authored-by: mwilsnd <mwilsnd@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-02 01:52:19 +02:00

27 lines
1.0 KiB
Objective-C

#import <Mapbox.h>
extern NSString * const MLNApiKeyDefaultsKey;
@interface AppDelegate : NSObject <NSApplicationDelegate>
@property (weak) IBOutlet NSWindow *preferencesWindow;
// Normally, an application should respect the “Close windows when quitting an
// application” setting in the General pane of System Preferences. But the map
// would only be restored to its last opened location if the user quits the
// application using Quit and Keep Windows. An application that displays only a
// map should restore the last viewed map, like Maps.app does. These properties
// temporarily hold state for the next map window to be opened.
@property (assign) double pendingZoomLevel;
@property (copy) MLNMapCamera *pendingCamera;
@property (assign) MLNCoordinateBounds pendingVisibleCoordinateBounds;
@property (assign) double pendingMinimumZoomLevel;
@property (assign) double pendingMaximumZoomLevel;
@property (copy) NSURL *pendingStyleURL;
@property (assign) MLNMapDebugMaskOptions pendingDebugMask;
- (void)watchOfflinePack:(MLNOfflinePack *)pack;
@end