summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLStyleAttributeValue_Private.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/darwin/src/MGLStyleAttributeValue_Private.hpp')
-rw-r--r--platform/darwin/src/MGLStyleAttributeValue_Private.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLStyleAttributeValue_Private.hpp b/platform/darwin/src/MGLStyleAttributeValue_Private.hpp
new file mode 100644
index 0000000000..a3c8a1a149
--- /dev/null
+++ b/platform/darwin/src/MGLStyleAttributeValue_Private.hpp
@@ -0,0 +1,25 @@
+#import <Foundation/Foundation.h>
+
+#import "MGLTypes.h"
+#import "MGLStyleAttributeFunction_Private.hpp"
+#include <array>
+
+@protocol MGLStyleAttributeValue_Private <NSObject>
+- (BOOL)isFunction;
+@optional
+
+// Convert darwin types to mbgl types
+- (mbgl::style::PropertyValue<mbgl::Color>)mbgl_colorPropertyValue;
+- (mbgl::style::PropertyValue<float>)mbgl_floatPropertyValue;
+- (mbgl::style::PropertyValue<bool>)mbgl_boolPropertyValue;
+- (mbgl::style::PropertyValue<std::string>)mbgl_stringPropertyValue;
+- (mbgl::style::PropertyValue<std::array<float, 2>>)mbgl_offsetPropertyValue;
+- (mbgl::style::PropertyValue<std::array<float, 4>>)mbgl_paddingPropertyValue;
+- (mbgl::style::PropertyValue<std::vector<std::string> >)mbgl_stringArrayPropertyValue;
+- (mbgl::style::PropertyValue<std::vector<float> >)mbgl_numberArrayPropertyValue;
+- (mbgl::style::PropertyValue<uint8_t>)mbgl_enumPropertyValue;
+
+// Convert mbgl types to darwin types
+- (id <MGLStyleAttributeValue>)mbgl_colorPropertyValueWith:(mbgl::style::PropertyValue<mbgl::Color>)color;
+
+@end