summaryrefslogtreecommitdiff
path: root/platform/macos/src/NSColor+MGLAdditions.hpp
blob: 2ba38f7d905d9f9f96733b05fa67e00607c4407e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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