Files
keyboard/keyBoard/Class/Vender/CRBoxInputView/CRBoxInputCellProperty.h

201 lines
4.3 KiB
C
Raw Normal View History

2025-12-02 18:29:04 +08:00
//
// CRBoxInputCellProperty.h
// CaiShenYe
//
// Created by Chobits on 2019/1/3.
// Copyright © 2019 Chobits. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "CRLineView.h"
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, CRBoxSecurityType) {
CRBoxSecuritySymbolType,
CRBoxSecurityCustomViewType,
};
typedef UIView *_Nonnull(^CustomSecurityViewBlock)(void);
typedef CRLineView *_Nonnull(^CustomLineViewBlock)(void);
typedef void(^ConfigCellShadowBlock)(CALayer *layer);
@interface CRBoxInputCellProperty : NSObject <NSCopying>
#pragma mark - UI
/**
cell边框宽度
0.5
*/
@property (assign, nonatomic) CGFloat borderWidth;
/**
cell边框颜色
[UIColor colorWithRed:228/255.0 green:228/255.0 blue:228/255.0 alpha:1]
*/
@property (copy, nonatomic) UIColor *cellBorderColorNormal;
/**
cell边框颜色
[UIColor colorWithRed:255/255.0 green:70/255.0 blue:62/255.0 alpha:1]
*/
@property (copy, nonatomic) UIColor *cellBorderColorSelected;
/**
cell边框颜色
nil
*/
@property (copy, nonatomic) UIColor *__nullable cellBorderColorFilled;
/**
cell背景颜色
[UIColor whiteColor]
*/
@property (copy, nonatomic) UIColor *cellBgColorNormal;
/**
cell背景颜色
[UIColor whiteColor]
*/
@property (copy, nonatomic) UIColor *cellBgColorSelected;
/**
cell背景颜色
cellBgColorFilled相同
*/
@property (copy, nonatomic) UIColor *__nullable cellBgColorFilled;
/**
[UIColor colorWithRed:255/255.0 green:70/255.0 blue:62/255.0 alpha:1]
*/
@property (copy, nonatomic) UIColor *cellCursorColor;
/**
2
*/
@property (assign, nonatomic) CGFloat cellCursorWidth;
/**
32
*/
@property (assign, nonatomic) CGFloat cellCursorHeight;
/**
4
*/
@property (assign, nonatomic) CGFloat cornerRadius;
#pragma mark - line
/**
线
NO
*/
@property (assign, nonatomic) BOOL showLine;
#pragma mark - label
/**
/
[UIFont systemFontOfSize:20];
*/
@property (copy, nonatomic) UIFont *cellFont;
/**
[UIColor blackColor];
*/
@property (copy, nonatomic) UIColor *cellTextColor;
#pragma mark - Security
/**
NO
*/
@property (assign, nonatomic) BOOL ifShowSecurity;
/**
ifShowSecurity=YES时
*/
@property (copy, nonatomic) NSString *securitySymbol;
/**
使 CRBoxInputView中的'reloadInputString'
使
*/
@property (copy, nonatomic, readonly) NSString *originValue;
- (void)setMyOriginValue:(NSString *)originValue;
/**
CRBoxSecuritySymbolType
CRBoxSecuritySymbolType securitySymboloriginValue的内容来显示
CRBoxSecurityCustomViewType View类型View
*/
@property (assign, nonatomic) CRBoxSecurityType securityType;
#pragma mark - Placeholder
/**
使
*/
@property (strong, nonatomic) NSString *__nullable cellPlaceholderText;
/**
[UIColor colorWithRed:114/255.0 green:126/255.0 blue:124/255.0 alpha:0.3];
*/
@property (copy, nonatomic) UIColor *cellPlaceholderTextColor;
/**
/
[UIFont systemFontOfSize:20];
*/
@property (copy, nonatomic) UIFont *cellPlaceholderFont;
#pragma mark - Block
/**
View回调
*/
@property (copy, nonatomic) CustomSecurityViewBlock customSecurityViewBlock;
/**
线
*/
@property (copy, nonatomic) CustomLineViewBlock customLineViewBlock;
/**
*/
@property (copy, nonatomic) ConfigCellShadowBlock __nullable configCellShadowBlock;
#pragma mark - Test
@property (assign, nonatomic) NSInteger index;
@end
NS_ASSUME_NONNULL_END