重构
This commit is contained in:
33
CustomKeyboard/View/KBKeyboardView/KBKeyboardRowBuilder.h
Normal file
33
CustomKeyboard/View/KBKeyboardView/KBKeyboardRowBuilder.h
Normal file
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// KBKeyboardRowBuilder.h
|
||||
// CustomKeyboard
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@class KBKeyboardLayoutConfig;
|
||||
@class KBKeyboardLayoutEngine;
|
||||
@class KBKeyboardKeyFactory;
|
||||
@class KBKeyboardRowConfig;
|
||||
@class KBBackspaceLongPressHandler;
|
||||
@class UIView;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface KBKeyboardRowBuilder : NSObject
|
||||
|
||||
- (instancetype)initWithLayoutConfig:(KBKeyboardLayoutConfig *)layoutConfig
|
||||
layoutEngine:(KBKeyboardLayoutEngine *)layoutEngine
|
||||
keyFactory:(KBKeyboardKeyFactory *)keyFactory;
|
||||
|
||||
- (void)buildRow:(UIView *)row
|
||||
withRowConfig:(KBKeyboardRowConfig *)rowConfig
|
||||
uniformCharWidth:(CGFloat)uniformCharWidth
|
||||
shiftOn:(BOOL)shiftOn
|
||||
backspaceHandler:(KBBackspaceLongPressHandler *)backspaceHandler
|
||||
target:(id)target
|
||||
action:(SEL)action;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user