summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLCircle_Private.h
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2019-04-28 17:23:23 -0700
committerMinh Nguyễn <mxn@1ec5.org>2019-05-07 22:04:48 -0700
commit910639168aaad8f06749c5be184ae50dbe9d566b (patch)
tree9bd1642efe2c9ed65b51a8a317602975b7c5c73f /platform/darwin/src/MGLCircle_Private.h
parent84a11ba4e5a6c64edd63b81d606e2ae57862c798 (diff)
downloadqtlocation-mapboxgl-910639168aaad8f06749c5be184ae50dbe9d566b.tar.gz
[ios, macos] Added circle geometryupstream/1ec5-circle-2167
Added an MGLCircle class that generates a many-sided polygon under the hood.
Diffstat (limited to 'platform/darwin/src/MGLCircle_Private.h')
-rw-r--r--platform/darwin/src/MGLCircle_Private.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLCircle_Private.h b/platform/darwin/src/MGLCircle_Private.h
new file mode 100644
index 0000000000..ef8fb372bf
--- /dev/null
+++ b/platform/darwin/src/MGLCircle_Private.h
@@ -0,0 +1,26 @@
+#import "MGLCircle.h"
+
+#import <mbgl/annotation/annotation.hpp>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@protocol MGLMultiPointDelegate;
+
+@interface MGLCircle (Private)
+
+/**
+ The optimal number of vertices in the circle’s polygonal approximation.
+ */
+@property (nonatomic, readonly) NSUInteger numberOfVertices;
+
+/**
+ Returns a linear ring with the given number of vertices.
+ */
+- (mbgl::LinearRing<double>)linearRingWithNumberOfVertices:(NSUInteger)numberOfVertices;
+
+/** Constructs a circle annotation object, asking the delegate for style values. */
+- (mbgl::Annotation)annotationObjectWithDelegate:(id <MGLMultiPointDelegate>)delegate;
+
+@end
+
+NS_ASSUME_NONNULL_END