12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- //
- // BezierPathTool.h
- // 圆角设置测试
- //
- // Created by Zuobian on 2019/12/4.
- // Copyright © 2019 admin. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface BezierPathTool : NSObject
- @property (nonatomic, assign) float radius;
- @property (nonatomic, assign) float radius_TopLeft;
- @property (nonatomic, assign) float radius_TopRight;
- @property (nonatomic, assign) float radius_BottomLeft;
- @property (nonatomic, assign) float radius_BottomRight;
- @property (nonatomic, assign) CGPoint hLeftUpPoint;
- @property (nonatomic, assign) CGPoint hRightUpPoint;
- @property (nonatomic, assign) CGPoint hLeftDownPoint;
- @property (nonatomic, assign) CGPoint vLeftUpPoint;
- @property (nonatomic, assign) CGPoint vRightDownPoint;
- @property (nonatomic, assign) CGPoint centerLeftUp;
- @property (nonatomic, assign) CGPoint centerRightUp;
- @property (nonatomic, assign) CGPoint centerLeftDown;
- @property (nonatomic, assign) CGPoint centerRightDown;
- @property (nonatomic, assign) CGSize rectSize;
- @property (nonatomic, strong) UIColor *fillColor;
- - (instancetype)initWithRadius:(float)radius rectSize:(CGSize)rectSize fillColor:(UIColor *)fillColor;
- - (instancetype)initWithRadius_TopLeft:(float)radius_TL
- radius_TopRight:(float)radius_TR
- radius_BottomLeft:(float)radius_BL
- radius_BottomRight:(float)radius_BR
- rectSize:(CGSize)rectSize
- fillColor:(UIColor *)fillColor;
- - (UIBezierPath *)configCornerBezierPath:(UIBezierPath *)bezierPath;
- - (void)configAllCornerPoint;
- - (void)configTopLeftPoint;
- - (void)configTopRightPoint;
- - (void)configBottomLeftPoint;
- - (void)configBottomRightPoint;
- @end
- NS_ASSUME_NONNULL_END
|