summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLStyleAttributeValue_Private.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/darwin/src/MGLStyleAttributeValue_Private.h')
-rw-r--r--platform/darwin/src/MGLStyleAttributeValue_Private.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLStyleAttributeValue_Private.h b/platform/darwin/src/MGLStyleAttributeValue_Private.h
new file mode 100644
index 0000000000..5fd51d09cf
--- /dev/null
+++ b/platform/darwin/src/MGLStyleAttributeValue_Private.h
@@ -0,0 +1,26 @@
+#import <Foundation/Foundation.h>
+
+#import "MGLTypes.h"
+#import "MGLStyleAttributeFunction_Private.h"
+
+#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