diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-08-15 15:29:42 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-08-16 16:46:04 -0700 |
commit | 5539a90c48dd5e7bb10d571a09ebd2df52cb44b8 (patch) | |
tree | 1a28e47449366824548b0476253d81e0f50ea926 /platform/macos/src/NSColor+MGLAdditions.h | |
parent | 56e39b5ecbbe1781ad476a03e6d18c532713a471 (diff) | |
download | qtlocation-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/macos/src/NSColor+MGLAdditions.h')
-rw-r--r-- | platform/macos/src/NSColor+MGLAdditions.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/platform/macos/src/NSColor+MGLAdditions.h b/platform/macos/src/NSColor+MGLAdditions.h new file mode 100644 index 0000000000..2ba38f7d90 --- /dev/null +++ b/platform/macos/src/NSColor+MGLAdditions.h @@ -0,0 +1,20 @@ +#import <Cocoa/Cocoa.h> + +#include <mbgl/util/color.hpp> +#include <mbgl/style/property_value.hpp> + +@interface NSColor (MGLAdditions) + +/** + Converts the color into an mbgl::Color in calibrated RGB space. + */ +- (mbgl::Color)mbgl_color; + +/** + Instantiates `NSColor` from an `mbgl::Color` + */ ++ (NSColor *)mbgl_colorWithColor:(mbgl::Color)color; + +- (mbgl::style::PropertyValue<mbgl::Color>)mbgl_colorPropertyValue; + +@end |