TKShape Class Reference
Inherits from | NSObject |
Declared in | TKShape.h |
Properties
Instance Methods
drawInContext:withCenter:drawings:
Draws the shape in a context.
- (void)drawInContext:(CGContextRef __nonnull)context withCenter:(CGPoint)center drawings:(NSArray *__nonnull)drawings
Parameters
- context
The context to draw in.
- center
The center of the shape.
- drawings
The array of TKDrawing shape and fills.
Declared In
TKShape.h
drawInContext:withCenter:drawings:scale:
Draws the shape in a context.
- (void)drawInContext:(CGContextRef __nonnull)context withCenter:(CGPoint)center drawings:(NSArray *__nonnull)drawings scale:(CGFloat)scale
Parameters
- context
The context to draw in.
- center
The center of the shape.
- drawings
The array of TKDrawing shape and fills.
- scale
The shape scale (1.0f = draw with shape’s size).
Declared In
TKShape.h