//
|
// HDLGestureLockView.h
|
// HDL_Widget_iOS
|
//
|
// Created by HDL on 2019/10/30.
|
// Copyright © 2019 JLChen. All rights reserved.
|
//
|
|
#import <UIKit/UIKit.h>
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
@class HDLGestureLockView;
|
|
@protocol SSGestureLockViewDelegate <NSObject>
|
@optional
|
|
- (void)didSelectedGestureLockView:(NSString *)selectNumStr selectCount:(int)selectCount;
|
|
@end
|
|
|
@interface HDLGestureLockView : UIView
|
///垂直间隔
|
@property (nonatomic, assign) CGFloat verticalSpace;
|
///水平间隔
|
@property (nonatomic, assign) CGFloat horizontalSpace;
|
///画线的宽度
|
@property (nonatomic, assign) CGFloat lineWidth;
|
///画线的颜色
|
@property (nonatomic, strong) UIColor *selectedLineColor;
|
///错误是画线的颜色
|
@property (nonatomic, strong) UIColor *errorLineColor;
|
@property (nonatomic, strong) UIColor *normalColor;
|
///reset 延迟时间
|
@property (nonatomic, assign) int resetDelayMillis;
|
|
|
@property (nonatomic, weak) id<SSGestureLockViewDelegate>delegate;
|
|
@property (nonatomic, assign) BOOL showErrorStatus;///展示错误地状态
|
/**
|
重置布局
|
|
@param mCGRect 布局
|
|
*/
|
-(void)initWithFrameLockView:(CGRect) mCGRect;
|
|
@end
|
NS_ASSUME_NONNULL_END
|