summaryrefslogtreecommitdiff
path: root/platform/macos/src/MGLMapView_Private.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/macos/src/MGLMapView_Private.h')
-rw-r--r--platform/macos/src/MGLMapView_Private.h33
1 files changed, 28 insertions, 5 deletions
diff --git a/platform/macos/src/MGLMapView_Private.h b/platform/macos/src/MGLMapView_Private.h
index 986ae1143a..afd7cf2422 100644
--- a/platform/macos/src/MGLMapView_Private.h
+++ b/platform/macos/src/MGLMapView_Private.h
@@ -1,10 +1,14 @@
#import "MGLMapView.h"
+#include <mbgl/util/size.hpp>
+
namespace mbgl {
class Map;
class Renderer;
}
+@class MGLSource;
+
@interface MGLMapView (Private)
/// True if the view or application is in a state where it is not expected to be
@@ -22,17 +26,36 @@ namespace mbgl {
/// Center longitude set independently of the center latitude in an inspectable.
@property (nonatomic) CLLocationDegrees pendingLongitude;
-/// The map view’s OpenGL rendering context.
-- (CGLContextObj)context;
+/// The map view’s OpenGL rendering context, if it is backed by an OpenGL based view.
+@property (readonly, nonatomic, nullable) CGLContextObj context;
+
+- (mbgl::Size)framebufferSize;
+
+/// Map observers
+- (void)cameraWillChangeAnimated:(BOOL)animated;
+- (void)cameraIsChanging;
+- (void)cameraDidChangeAnimated:(BOOL)animated;
+- (void)mapViewWillStartLoadingMap;
+- (void)mapViewDidFinishLoadingMap;
+- (void)mapViewDidFailLoadingMapWithError:(nonnull NSError *)error;
+- (void)mapViewWillStartRenderingFrame;
+- (void)mapViewDidFinishRenderingFrameFullyRendered:(BOOL)fullyRendered;
+- (void)mapViewWillStartRenderingMap;
+- (void)mapViewDidFinishRenderingMapFullyRendered:(BOOL)fullyRendered;
+- (void)mapViewDidBecomeIdle;
+- (void)mapViewDidFinishLoadingStyle;
+- (void)sourceDidChange:(nonnull MGLSource *)source;
/// Asynchronously render a frame of the map.
-- (void)setNeedsGLDisplay;
+- (void)setNeedsRerender;
/// Synchronously render a frame of the map.
- (void)renderSync;
-- (mbgl::Map *)mbglMap;
+- (BOOL)isTargetingInterfaceBuilder;
+
+- (nonnull mbgl::Map *)mbglMap;
-- (mbgl::Renderer *)renderer;
+- (nonnull mbgl::Renderer *)renderer;
@end