diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-09-25 12:37:45 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-10-17 11:47:22 -0700 |
commit | 9652028915af6602626939e0b0075333c34bfbfe (patch) | |
tree | 0b299507c1339dcb1f947a496dcd375095f9bc4b /platform/darwin/src/MGLStyleValue.h | |
parent | 0c8a3feffa94a9594bcaa77fdc18d11a3c482ff5 (diff) | |
download | qtlocation-mapboxgl-9652028915af6602626939e0b0075333c34bfbfe.tar.gz |
[ios, macos] Expand changes to entire API
Diffstat (limited to 'platform/darwin/src/MGLStyleValue.h')
-rw-r--r-- | platform/darwin/src/MGLStyleValue.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLStyleValue.h b/platform/darwin/src/MGLStyleValue.h new file mode 100644 index 0000000000..1f19a5e028 --- /dev/null +++ b/platform/darwin/src/MGLStyleValue.h @@ -0,0 +1,32 @@ +#import <Foundation/Foundation.h> +#import <CoreGraphics/CoreGraphics.h> + +@interface MGLStyleValue<T> : NSObject + ++ (instancetype)valueWithRawValue:(T)rawValue; ++ (instancetype)valueWithBase:(CGFloat)base stops:(NSDictionary<NSNumber *, MGLStyleValue<T> *> *)stops; ++ (instancetype)valueWithStops:(NSDictionary<NSNumber *, MGLStyleValue<T> *> *)stops; + +@end + +@interface MGLStyleConstantValue<T> : MGLStyleValue + ++ (instancetype)valueWithRawValue:(T)rawValue; + +- (instancetype)initWithRawValue:(T)rawValue; + +@property (nonatomic) T rawValue; + +@end + +@interface MGLStyleFunction<T> : MGLStyleValue + ++ (instancetype)functionWithBase:(CGFloat)base stops:(NSDictionary<NSNumber *, MGLStyleValue<T> *> *)stops; ++ (instancetype)functionWithStops:(NSDictionary<NSNumber *, MGLStyleValue<T> *> *)stops; + +- (instancetype)initWithBase:(CGFloat)base stops:(NSDictionary<NSNumber *, MGLStyleValue<T> *> *)stops; + +@property (nonatomic) CGFloat base; +@property (nonatomic, copy) NSDictionary<NSNumber *, MGLStyleValue<T> *> *stops; + +@end |