diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-08-25 21:59:55 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-08-26 15:40:10 -0700 |
commit | 9d368ea98d096c1eed2c1eb7edc4a37ff31b03b7 (patch) | |
tree | 602b5aaf36a8d3db50e14b58e668f53ffe8d99a0 /platform/darwin/src/MGLRasterStyleLayer.h | |
parent | 8dff7ab2f0fe1f2d1412e79c99285f1a389e6541 (diff) | |
download | qtlocation-mapboxgl-9d368ea98d096c1eed2c1eb7edc4a37ff31b03b7.tar.gz |
[ios, macos] Mark MGLStyleLayer properties null_resettable
If the property is unset, return the default value.
Fixes #6126.
Diffstat (limited to 'platform/darwin/src/MGLRasterStyleLayer.h')
-rw-r--r-- | platform/darwin/src/MGLRasterStyleLayer.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/platform/darwin/src/MGLRasterStyleLayer.h b/platform/darwin/src/MGLRasterStyleLayer.h index 9284221cec..5c0fd91307 100644 --- a/platform/darwin/src/MGLRasterStyleLayer.h +++ b/platform/darwin/src/MGLRasterStyleLayer.h @@ -13,55 +13,55 @@ NS_ASSUME_NONNULL_BEGIN /** The opacity at which the image will be drawn. - If this property is set to `nil`, the layer uses an implicit default value of `1`. + The default value of this property is `1`. Set this property to `nil` to reset it to the default value. */ -@property (nonatomic, nullable) id <MGLStyleAttributeValue> rasterOpacity; +@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> rasterOpacity; /** Rotates hues around the color wheel. This property is measured in degrees. - If this property is set to `nil`, the layer uses an implicit default value of `0`. + The default value of this property is `0`. Set this property to `nil` to reset it to the default value. */ -@property (nonatomic, nullable) id <MGLStyleAttributeValue> rasterHueRotate; +@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> rasterHueRotate; /** Increase or reduce the brightness of the image. The value is the minimum brightness. - If this property is set to `nil`, the layer uses an implicit default value of `0`. + The default value of this property is `0`. Set this property to `nil` to reset it to the default value. */ -@property (nonatomic, nullable) id <MGLStyleAttributeValue> rasterBrightnessMin; +@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> rasterBrightnessMin; /** Increase or reduce the brightness of the image. The value is the maximum brightness. - If this property is set to `nil`, the layer uses an implicit default value of `1`. + The default value of this property is `1`. Set this property to `nil` to reset it to the default value. */ -@property (nonatomic, nullable) id <MGLStyleAttributeValue> rasterBrightnessMax; +@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> rasterBrightnessMax; /** Increase or reduce the saturation of the image. - If this property is set to `nil`, the layer uses an implicit default value of `0`. + The default value of this property is `0`. Set this property to `nil` to reset it to the default value. */ -@property (nonatomic, nullable) id <MGLStyleAttributeValue> rasterSaturation; +@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> rasterSaturation; /** Increase or reduce the contrast of the image. - If this property is set to `nil`, the layer uses an implicit default value of `0`. + The default value of this property is `0`. Set this property to `nil` to reset it to the default value. */ -@property (nonatomic, nullable) id <MGLStyleAttributeValue> rasterContrast; +@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> rasterContrast; /** Fade duration when a new tile is added. This property is measured in milliseconds. - If this property is set to `nil`, the layer uses an implicit default value of `300`. + The default value of this property is `300`. Set this property to `nil` to reset it to the default value. */ -@property (nonatomic, nullable) id <MGLStyleAttributeValue> rasterFadeDuration; +@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> rasterFadeDuration; @end |