summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLStyleAttributeValue_Private.h
blob: 3051f663d730e37d72c0715e7970089914627b22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#import <Foundation/Foundation.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