DrawingStyle
The class of DrawingStyle
. It stores the detailed styles of the drawing item.
- Objective-C
- Swift
@interface DrawingStyle : NSObject
class DrawingStyle : NSObject
Method | Description |
---|---|
initWithId |
The constructor of the initWithId . |
id |
The id of the DrawingStyle . |
strokeColor |
The stroke color of the DrawingStyle . |
fillColor |
The fill color of the DrawingStyle . |
textColor |
The text color of the DrawingStyle . |
strokeWidth |
The stroke width of the DrawingStyle . |
font |
The font settings of the DrawingStyle . |
initWithId
The constructor of the DrawingStyle
.
- Objective-C
- Swift
- (instancetype)initWithId:(NSInteger)id strokeColor:(UIColor*)strokeColor strokeWidth:(CGFloat)strokeWidth fillColor:(UIColor*)fillColor textColor:(UIColor*)textColor font:(UIFont*) font;
init(id styleId: Int, stroke strokeColor: UIColor, strokeWidth: CGFloat, fill fillColor: UIColor, textColor: UIColor, font: UIFont)
Remarks
Please use DrawingStyleManager.createDrawingStyle
to create the drawing style.
id
The id of the DrawingStyle
.
- Objective-C
- Swift
@property (assign, nonatomic, readonly) NSInteger id;
var styleId: Int { get }
strokeColor
The stroke color of the DrawingStyle
.
- Objective-C
- Swift
@property (assign, nonatomic) UIColor strokeColor;
var strokeColor: UIColor { get set }
fillColor
The fill color of the DrawingStyle
.
- Objective-C
- Swift
@property (assign, nonatomic) UIColor fillColor;
var fillColor: UIColor { get set }
textColor
The text color of the DrawingStyle
.
- Objective-C
- Swift
@property (assign, nonatomic) UIColor textColor;
var textColor: UIColor { get set }
strokeWidth
The stroke width of the DrawingStyle
.
- Objective-C
- Swift
@property (assign, nonatomic) CGFloat strokeWidth;
var strokeWidth: CGFloat { get set }
font
The font settings of the DrawingStyle
.
- Objective-C
- Swift
@property (nonatomic, copy) UIFont *font;
var font: UIFont { get set }