summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLRasterStyleLayer.h
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-08-18 00:36:02 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-08-19 14:20:26 -0700
commit99fc6dfce810b5894b9039c5aabb4fbfd5af0751 (patch)
tree28f312b021590106e1678213ec0ab10bf06c462f /platform/darwin/src/MGLRasterStyleLayer.h
parenta4fcea412239f6936ab0dd0d21abda912e22bd47 (diff)
downloadqtlocation-mapboxgl-99fc6dfce810b5894b9039c5aabb4fbfd5af0751.tar.gz
[ios, macos] Audited generated source/layer headers
Properties representing optional attributes are qualified with null_resettable. The default value is documented.
Diffstat (limited to 'platform/darwin/src/MGLRasterStyleLayer.h')
-rw-r--r--platform/darwin/src/MGLRasterStyleLayer.h32
1 files changed, 25 insertions, 7 deletions
diff --git a/platform/darwin/src/MGLRasterStyleLayer.h b/platform/darwin/src/MGLRasterStyleLayer.h
index b9deed8ff4..7304130384 100644
--- a/platform/darwin/src/MGLRasterStyleLayer.h
+++ b/platform/darwin/src/MGLRasterStyleLayer.h
@@ -4,43 +4,61 @@
#import "MGLStyleAttributeValue.h"
#import "MGLBaseStyleLayer.h"
+NS_ASSUME_NONNULL_BEGIN
+
@interface MGLRasterStyleLayer : MGLBaseStyleLayer <MGLStyleLayer>
#pragma mark - Accessing the Paint Attributes
/**
The opacity at which the image will be drawn.
+
+ The default value of this property is `1`. Set this property to `nil` to reset it to the default.
*/
-@property (nonatomic) id <MGLStyleAttributeValue> rasterOpacity;
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> rasterOpacity;
/**
Rotates hues around the color wheel.
+
+ The default value of this property is `0`. Set this property to `nil` to reset it to the default.
*/
-@property (nonatomic) id <MGLStyleAttributeValue> rasterHueRotate;
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> rasterHueRotate;
/**
Increase or reduce the brightness of the image. The value is the minimum brightness.
+
+ The default value of this property is `0`. Set this property to `nil` to reset it to the default.
*/
-@property (nonatomic) id <MGLStyleAttributeValue> rasterBrightnessMin;
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> rasterBrightnessMin;
/**
Increase or reduce the brightness of the image. The value is the maximum brightness.
+
+ The default value of this property is `1`. Set this property to `nil` to reset it to the default.
*/
-@property (nonatomic) id <MGLStyleAttributeValue> rasterBrightnessMax;
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> rasterBrightnessMax;
/**
Increase or reduce the saturation of the image.
+
+ The default value of this property is `0`. Set this property to `nil` to reset it to the default.
*/
-@property (nonatomic) id <MGLStyleAttributeValue> rasterSaturation;
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> rasterSaturation;
/**
Increase or reduce the contrast of the image.
+
+ The default value of this property is `0`. Set this property to `nil` to reset it to the default.
*/
-@property (nonatomic) id <MGLStyleAttributeValue> rasterContrast;
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> rasterContrast;
/**
Fade duration when a new tile is added.
+
+ The default value of this property is `300`. Set this property to `nil` to reset it to the default.
*/
-@property (nonatomic) id <MGLStyleAttributeValue> rasterFadeDuration;
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> rasterFadeDuration;
@end
+
+NS_ASSUME_NONNULL_END