summaryrefslogtreecommitdiff
path: root/platform/darwin/src/NSValue+MGLStyleEnumAttributeAdditions.h
blob: 8aa07b2a0c3eb2f4d1bcbe66de0b42b3e92dcf65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
// This file is generated.
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.

#import <Foundation/Foundation.h>

#import "MGLFillStyleLayer.h"
#import "MGLLineStyleLayer.h"
#import "MGLSymbolStyleLayer.h"
#import "MGLCircleStyleLayer.h"
#import "MGLRasterStyleLayer.h"
#import "MGLBackgroundStyleLayer.h"

NS_ASSUME_NONNULL_BEGIN

/**
 Methods for round-tripping values for Mapbox style layer enumeration values.
*/
@interface NSValue (MGLStyleEnumAttributeAdditions)

#pragma mark Working with Style Layer Enumeration Attribute Values

/**
 Creates a new value object containing the given `MGLLineCap` enumeration.

 @param type The value for the new object.
 @return A new value object that contains the style enumeration type.
*/
+ (instancetype)valueWithMGLLineCap:(MGLLineCap)lineCap;

/**
 The `MGLLineCap` enumeration representation of the value.
*/
@property (readonly) MGLLineCap MGLLineCapValue;

/**
 Creates a new value object containing the given `MGLLineJoin` enumeration.

 @param type The value for the new object.
 @return A new value object that contains the style enumeration type.
*/
+ (instancetype)valueWithMGLLineJoin:(MGLLineJoin)lineJoin;

/**
 The `MGLLineJoin` enumeration representation of the value.
*/
@property (readonly) MGLLineJoin MGLLineJoinValue;

/**
 Creates a new value object containing the given `MGLIconRotationAlignment` enumeration.

 @param type The value for the new object.
 @return A new value object that contains the style enumeration type.
*/
+ (instancetype)valueWithMGLIconRotationAlignment:(MGLIconRotationAlignment)iconRotationAlignment;

/**
 The `MGLIconRotationAlignment` enumeration representation of the value.
*/
@property (readonly) MGLIconRotationAlignment MGLIconRotationAlignmentValue;

/**
 Creates a new value object containing the given `MGLIconTextFit` enumeration.

 @param type The value for the new object.
 @return A new value object that contains the style enumeration type.
*/
+ (instancetype)valueWithMGLIconTextFit:(MGLIconTextFit)iconTextFit;

/**
 The `MGLIconTextFit` enumeration representation of the value.
*/
@property (readonly) MGLIconTextFit MGLIconTextFitValue;

/**
 Creates a new value object containing the given `MGLSymbolPlacement` enumeration.

 @param type The value for the new object.
 @return A new value object that contains the style enumeration type.
*/
+ (instancetype)valueWithMGLSymbolPlacement:(MGLSymbolPlacement)symbolPlacement;

/**
 The `MGLSymbolPlacement` enumeration representation of the value.
*/
@property (readonly) MGLSymbolPlacement MGLSymbolPlacementValue;

/**
 Creates a new value object containing the given `MGLTextAnchor` enumeration.

 @param type The value for the new object.
 @return A new value object that contains the style enumeration type.
*/
+ (instancetype)valueWithMGLTextAnchor:(MGLTextAnchor)textAnchor;

/**
 The `MGLTextAnchor` enumeration representation of the value.
*/
@property (readonly) MGLTextAnchor MGLTextAnchorValue;

/**
 Creates a new value object containing the given `MGLTextJustify` enumeration.

 @param type The value for the new object.
 @return A new value object that contains the style enumeration type.
*/
+ (instancetype)valueWithMGLTextJustify:(MGLTextJustify)textJustify;

/**
 The `MGLTextJustify` enumeration representation of the value.
*/
@property (readonly) MGLTextJustify MGLTextJustifyValue;

/**
 Creates a new value object containing the given `MGLTextPitchAlignment` enumeration.

 @param type The value for the new object.
 @return A new value object that contains the style enumeration type.
*/
+ (instancetype)valueWithMGLTextPitchAlignment:(MGLTextPitchAlignment)textPitchAlignment;

/**
 The `MGLTextPitchAlignment` enumeration representation of the value.
*/
@property (readonly) MGLTextPitchAlignment MGLTextPitchAlignmentValue;

/**
 Creates a new value object containing the given `MGLTextRotationAlignment` enumeration.

 @param type The value for the new object.
 @return A new value object that contains the style enumeration type.
*/
+ (instancetype)valueWithMGLTextRotationAlignment:(MGLTextRotationAlignment)textRotationAlignment;

/**
 The `MGLTextRotationAlignment` enumeration representation of the value.
*/
@property (readonly) MGLTextRotationAlignment MGLTextRotationAlignmentValue;

/**
 Creates a new value object containing the given `MGLTextTransform` enumeration.

 @param type The value for the new object.
 @return A new value object that contains the style enumeration type.
*/
+ (instancetype)valueWithMGLTextTransform:(MGLTextTransform)textTransform;

/**
 The `MGLTextTransform` enumeration representation of the value.
*/
@property (readonly) MGLTextTransform MGLTextTransformValue;

/**
 Creates a new value object containing the given `MGLFillTranslateAnchor` structure.

 @param type The value for the new object.
 @return A new value object that contains the style enumeration type.
*/
+ (instancetype)valueWithMGLFillTranslateAnchor:(MGLFillTranslateAnchor)fillTranslateAnchor;

/**
 The `MGLFillTranslateAnchor` enumeration representation of the value.
*/
@property (readonly) MGLFillTranslateAnchor MGLFillTranslateAnchorValue;

/**
 Creates a new value object containing the given `MGLLineTranslateAnchor` structure.

 @param type The value for the new object.
 @return A new value object that contains the style enumeration type.
*/
+ (instancetype)valueWithMGLLineTranslateAnchor:(MGLLineTranslateAnchor)lineTranslateAnchor;

/**
 The `MGLLineTranslateAnchor` enumeration representation of the value.
*/
@property (readonly) MGLLineTranslateAnchor MGLLineTranslateAnchorValue;

/**
 Creates a new value object containing the given `MGLIconTranslateAnchor` structure.

 @param type The value for the new object.
 @return A new value object that contains the style enumeration type.
*/
+ (instancetype)valueWithMGLIconTranslateAnchor:(MGLIconTranslateAnchor)iconTranslateAnchor;

/**
 The `MGLIconTranslateAnchor` enumeration representation of the value.
*/
@property (readonly) MGLIconTranslateAnchor MGLIconTranslateAnchorValue;

/**
 Creates a new value object containing the given `MGLTextTranslateAnchor` structure.

 @param type The value for the new object.
 @return A new value object that contains the style enumeration type.
*/
+ (instancetype)valueWithMGLTextTranslateAnchor:(MGLTextTranslateAnchor)textTranslateAnchor;

/**
 The `MGLTextTranslateAnchor` enumeration representation of the value.
*/
@property (readonly) MGLTextTranslateAnchor MGLTextTranslateAnchorValue;

/**
 Creates a new value object containing the given `MGLCirclePitchScale` structure.

 @param type The value for the new object.
 @return A new value object that contains the style enumeration type.
*/
+ (instancetype)valueWithMGLCirclePitchScale:(MGLCirclePitchScale)circlePitchScale;

/**
 The `MGLCirclePitchScale` enumeration representation of the value.
*/
@property (readonly) MGLCirclePitchScale MGLCirclePitchScaleValue;

/**
 Creates a new value object containing the given `MGLCircleTranslateAnchor` structure.

 @param type The value for the new object.
 @return A new value object that contains the style enumeration type.
*/
+ (instancetype)valueWithMGLCircleTranslateAnchor:(MGLCircleTranslateAnchor)circleTranslateAnchor;

/**
 The `MGLCircleTranslateAnchor` enumeration representation of the value.
*/
@property (readonly) MGLCircleTranslateAnchor MGLCircleTranslateAnchorValue;

@end

NS_ASSUME_NONNULL_END