2017-08-01 14:44:03 -07:00

53 lines
1.3 KiB
Objective-C

//
// 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)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