NSValue(DingiSymbolStyleLayerAdditions)
@interface NSValue (DingiSymbolStyleLayerAdditions)
Methods for wrapping an enumeration value for a style layer attribute in an
DingiSymbolStyleLayer
object and unwrapping its raw value.
-
Creates a new value object containing the given
DingiIconAnchor
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithDingiIconAnchor:(DingiIconAnchor)iconAnchor;
Swift
convenience init(dingiIconAnchor iconAnchor: DingiIconAnchor)
Parameters
iconAnchor
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
DingiIconAnchor
enumeration representation of the value.Declaration
Objective-C
@property (readonly, atomic) DingiIconAnchor DingiIconAnchorValue;
Swift
var dingiIconAnchorValue: DingiIconAnchor { get }
-
Creates a new value object containing the given
DingiIconPitchAlignment
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithDingiIconPitchAlignment: (DingiIconPitchAlignment)iconPitchAlignment;
Swift
convenience init(dingiIconPitchAlignment iconPitchAlignment: DingiIconPitchAlignment)
Parameters
iconPitchAlignment
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
DingiIconPitchAlignment
enumeration representation of the value.Declaration
Objective-C
@property (readonly, atomic) DingiIconPitchAlignment DingiIconPitchAlignmentValue;
Swift
var dingiIconPitchAlignmentValue: DingiIconPitchAlignment { get }
-
Creates a new value object containing the given
DingiIconRotationAlignment
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithDingiIconRotationAlignment: (DingiIconRotationAlignment)iconRotationAlignment;
Swift
convenience init(dingiIconRotationAlignment iconRotationAlignment: DingiIconRotationAlignment)
Parameters
iconRotationAlignment
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
DingiIconRotationAlignment
enumeration representation of the value.Declaration
Objective-C
@property (readonly, atomic) DingiIconRotationAlignment DingiIconRotationAlignmentValue;
Swift
var dingiIconRotationAlignmentValue: DingiIconRotationAlignment { get }
-
Creates a new value object containing the given
DingiIconTextFit
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithDingiIconTextFit:(DingiIconTextFit)iconTextFit;
Swift
convenience init(dingiIconTextFit iconTextFit: DingiIconTextFit)
Parameters
iconTextFit
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
DingiIconTextFit
enumeration representation of the value.Declaration
Objective-C
@property (readonly, atomic) DingiIconTextFit DingiIconTextFitValue;
Swift
var dingiIconTextFitValue: DingiIconTextFit { get }
-
Creates a new value object containing the given
DingiSymbolPlacement
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithDingiSymbolPlacement: (DingiSymbolPlacement)symbolPlacement;
Swift
convenience init(dingiSymbolPlacement symbolPlacement: DingiSymbolPlacement)
Parameters
symbolPlacement
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
DingiSymbolPlacement
enumeration representation of the value.Declaration
Objective-C
@property (readonly, atomic) DingiSymbolPlacement DingiSymbolPlacementValue;
Swift
var dingiSymbolPlacementValue: DingiSymbolPlacement { get }
-
Creates a new value object containing the given
DingiSymbolZOrder
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithDingiSymbolZOrder: (DingiSymbolZOrder)symbolZOrder;
Swift
convenience init(dingiSymbolZOrder symbolZOrder: DingiSymbolZOrder)
Parameters
symbolZOrder
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
DingiSymbolZOrder
enumeration representation of the value.Declaration
Objective-C
@property (readonly, atomic) DingiSymbolZOrder DingiSymbolZOrderValue;
Swift
var dingiSymbolZOrderValue: DingiSymbolZOrder { get }
-
Creates a new value object containing the given
DingiTextAnchor
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithDingiTextAnchor:(DingiTextAnchor)textAnchor;
Swift
convenience init(dingiTextAnchor textAnchor: DingiTextAnchor)
Parameters
textAnchor
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
DingiTextAnchor
enumeration representation of the value.Declaration
Objective-C
@property (readonly, atomic) DingiTextAnchor DingiTextAnchorValue;
Swift
var dingiTextAnchorValue: DingiTextAnchor { get }
-
Creates a new value object containing the given
DingiTextJustification
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithDingiTextJustification: (DingiTextJustification)textJustification;
Swift
convenience init(dingiTextJustification textJustification: DingiTextJustification)
Parameters
textJustification
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
DingiTextJustification
enumeration representation of the value.Declaration
Objective-C
@property (readonly, atomic) DingiTextJustification DingiTextJustificationValue;
Swift
var dingiTextJustificationValue: DingiTextJustification { get }
-
Creates a new value object containing the given
DingiTextPitchAlignment
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithDingiTextPitchAlignment: (DingiTextPitchAlignment)textPitchAlignment;
Swift
convenience init(dingiTextPitchAlignment textPitchAlignment: DingiTextPitchAlignment)
Parameters
textPitchAlignment
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
DingiTextPitchAlignment
enumeration representation of the value.Declaration
Objective-C
@property (readonly, atomic) DingiTextPitchAlignment DingiTextPitchAlignmentValue;
Swift
var dingiTextPitchAlignmentValue: DingiTextPitchAlignment { get }
-
Creates a new value object containing the given
DingiTextRotationAlignment
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithDingiTextRotationAlignment: (DingiTextRotationAlignment)textRotationAlignment;
Swift
convenience init(dingiTextRotationAlignment textRotationAlignment: DingiTextRotationAlignment)
Parameters
textRotationAlignment
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
DingiTextRotationAlignment
enumeration representation of the value.Declaration
Objective-C
@property (readonly, atomic) DingiTextRotationAlignment DingiTextRotationAlignmentValue;
Swift
var dingiTextRotationAlignmentValue: DingiTextRotationAlignment { get }
-
Creates a new value object containing the given
DingiTextTransform
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithDingiTextTransform: (DingiTextTransform)textTransform;
Swift
convenience init(dingiTextTransform textTransform: DingiTextTransform)
Parameters
textTransform
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
DingiTextTransform
enumeration representation of the value.Declaration
Objective-C
@property (readonly, atomic) DingiTextTransform DingiTextTransformValue;
Swift
var dingiTextTransformValue: DingiTextTransform { get }
-
Creates a new value object containing the given
DingiIconTranslationAnchor
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithDingiIconTranslationAnchor: (DingiIconTranslationAnchor)iconTranslationAnchor;
Swift
convenience init(dingiIconTranslationAnchor iconTranslationAnchor: DingiIconTranslationAnchor)
Parameters
iconTranslationAnchor
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
DingiIconTranslationAnchor
enumeration representation of the value.Declaration
Objective-C
@property (readonly, atomic) DingiIconTranslationAnchor DingiIconTranslationAnchorValue;
Swift
var dingiIconTranslationAnchorValue: DingiIconTranslationAnchor { get }
-
Creates a new value object containing the given
DingiTextTranslationAnchor
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithDingiTextTranslationAnchor: (DingiTextTranslationAnchor)textTranslationAnchor;
Swift
convenience init(dingiTextTranslationAnchor textTranslationAnchor: DingiTextTranslationAnchor)
Parameters
textTranslationAnchor
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
DingiTextTranslationAnchor
enumeration representation of the value.Declaration
Objective-C
@property (readonly, atomic) DingiTextTranslationAnchor DingiTextTranslationAnchorValue;
Swift
var dingiTextTranslationAnchorValue: DingiTextTranslationAnchor { get }