Files
MapLibreParticleLab/platform/darwin/src/MGLStyleAttributeValue_Private.h
2016-08-19 15:45:17 -07:00

25 lines
959 B
Objective-C

#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;
// Convert mbgl types to darwin types
- (id <MGLStyleAttributeValue>)mbgl_colorPropertyValueWith:(mbgl::style::PropertyValue<mbgl::Color>)color;
@end