NSValue(DingiLineStyleLayerAdditions)
@interface NSValue (DingiLineStyleLayerAdditions)
Methods for wrapping an enumeration value for a style layer attribute in an
DingiLineStyleLayer
object and unwrapping its raw value.
-
Creates a new value object containing the given
DingiLineCap
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithDingiLineCap:(DingiLineCap)lineCap;
Swift
convenience init(dingiLineCap lineCap: DingiLineCap)
Parameters
lineCap
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
DingiLineCap
enumeration representation of the value.Declaration
Objective-C
@property (readonly, atomic) DingiLineCap DingiLineCapValue;
Swift
var dingiLineCapValue: DingiLineCap { get }
-
Creates a new value object containing the given
DingiLineJoin
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithDingiLineJoin:(DingiLineJoin)lineJoin;
Swift
convenience init(dingiLineJoin lineJoin: DingiLineJoin)
Parameters
lineJoin
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
DingiLineJoin
enumeration representation of the value.Declaration
Objective-C
@property (readonly, atomic) DingiLineJoin DingiLineJoinValue;
Swift
var dingiLineJoinValue: DingiLineJoin { get }
-
Creates a new value object containing the given
DingiLineTranslationAnchor
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithDingiLineTranslationAnchor: (DingiLineTranslationAnchor)lineTranslationAnchor;
Swift
convenience init(dingiLineTranslationAnchor lineTranslationAnchor: DingiLineTranslationAnchor)
Parameters
lineTranslationAnchor
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
DingiLineTranslationAnchor
enumeration representation of the value.Declaration
Objective-C
@property (readonly, atomic) DingiLineTranslationAnchor DingiLineTranslationAnchorValue;
Swift
var dingiLineTranslationAnchorValue: DingiLineTranslationAnchor { get }