summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLStyleAttribute.h
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-08-15 15:29:42 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-08-16 16:46:04 -0700
commit5539a90c48dd5e7bb10d571a09ebd2df52cb44b8 (patch)
tree1a28e47449366824548b0476253d81e0f50ea926 /platform/darwin/src/MGLStyleAttribute.h
parent56e39b5ecbbe1781ad476a03e6d18c532713a471 (diff)
downloadqtlocation-mapboxgl-5539a90c48dd5e7bb10d571a09ebd2df52cb44b8.tar.gz
[ios, macos] Renamed Objective-C++ headers to .h
Also removed a redundant reference to MGLStyle_Private.h in ios.xcodeproj. Fixes #5952.
Diffstat (limited to 'platform/darwin/src/MGLStyleAttribute.h')
-rw-r--r--platform/darwin/src/MGLStyleAttribute.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLStyleAttribute.h b/platform/darwin/src/MGLStyleAttribute.h
new file mode 100644
index 0000000000..4f2424201e
--- /dev/null
+++ b/platform/darwin/src/MGLStyleAttribute.h
@@ -0,0 +1,25 @@
+#import <Foundation/Foundation.h>
+
+#import "MGLStyleAttributeValue.h"
+#import "MGLStyleLayer_Private.h"
+#import "MGLStyleAttributeValue_Private.h"
+
+@interface MGLStyleAttribute : NSObject <MGLStyleAttributeValue>
+
++ (id <MGLStyleAttributeValue>)mbgl_colorPropertyValueWith:(mbgl::style::PropertyValue<mbgl::Color>)property;
+
++ (id <MGLStyleAttributeValue>)mbgl_numberPropertyValueWith:(mbgl::style::PropertyValue<float>)property;
+
++ (id <MGLStyleAttributeValue>)mbgl_boolPropertyValueWith:(mbgl::style::PropertyValue<bool>)property;
+
++ (id <MGLStyleAttributeValue>)mbgl_stringPropertyValueWith:(mbgl::style::PropertyValue<std::string>)property;
+
++ (id <MGLStyleAttributeValue>)mbgl_offsetPropertyValueWith:(mbgl::style::PropertyValue<std::array<float, 2>>)property;
+
++ (id <MGLStyleAttributeValue>)mbgl_paddingPropertyValueWith:(mbgl::style::PropertyValue<std::array<float, 4>>)property;
+
++ (id <MGLStyleAttributeValue>)mbgl_stringArrayPropertyValueWith:(mbgl::style::PropertyValue<std::vector<std::string>>)property;
+
++ (id <MGLStyleAttributeValue>)mbgl_numberArrayPropertyValueWith:(mbgl::style::PropertyValue<std::vector<float>>)property;
+
+@end