LOTBezierPath.h
1.3 KB
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
//
// LOTBezierPath.h
// Lottie
//
// Created by brandon_withrow on 7/20/17.
// Copyright © 2017 Airbnb. All rights reserved.
//
#import "LOTPlatformCompat.h"
NS_ASSUME_NONNULL_BEGIN
@interface LOTBezierPath : NSObject
+ (instancetype)pathWithCGPath:(CGPathRef)path;
+ (instancetype)newPath;
- (void)LOT_moveToPoint:(CGPoint)point;
- (void)LOT_addLineToPoint:(CGPoint)point;
- (void)LOT_addCurveToPoint:(CGPoint)point
controlPoint1:(CGPoint)cp1
controlPoint2:(CGPoint)cp2;
- (void)LOT_closePath;
- (void)LOT_removeAllPoints;
- (void)LOT_appendPath:(LOTBezierPath *)bezierPath;
- (void)trimPathFromT:(CGFloat)fromT toT:(CGFloat)toT offset:(CGFloat)offset;
- (void)LOT_applyTransform:(CGAffineTransform)transform;
@property (nonatomic, assign) BOOL cacheLengths;
@property (nonatomic, readonly) CGFloat length;
@property (nonatomic, readonly) CGPathRef CGPath;
@property (nonatomic, readonly) CGPoint currentPoint;
@property (nonatomic) CGFloat lineWidth;
@property (nonatomic) CGLineCap lineCapStyle;
@property (nonatomic) CGLineJoin lineJoinStyle;
@property (nonatomic) CGFloat miterLimit;
@property (nonatomic) CGFloat flatness;
@property (nonatomic) BOOL usesEvenOddFillRule;
@property (readonly, getter=isEmpty) BOOL empty;
@property (nonatomic, readonly) CGRect bounds;
@end
NS_ASSUME_NONNULL_END