重构
This commit is contained in:
28
CustomKeyboard/View/KBKeyboardView/KBKeyboardKeyFactory.h
Normal file
28
CustomKeyboard/View/KBKeyboardView/KBKeyboardKeyFactory.h
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// KBKeyboardKeyFactory.h
|
||||
// CustomKeyboard
|
||||
//
|
||||
// Key creation helper for keyboard layouts.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@class KBKeyboardLayoutConfig;
|
||||
@class KBKeyboardKeyDef;
|
||||
@class KBKey;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface KBKeyboardKeyFactory : NSObject
|
||||
|
||||
- (instancetype)initWithLayoutConfig:(KBKeyboardLayoutConfig *)layoutConfig;
|
||||
|
||||
- (nullable KBKey *)keyForItemId:(NSString *)itemId shiftOn:(BOOL)shiftOn;
|
||||
- (nullable KBKey *)keyFromDef:(KBKeyboardKeyDef *)def
|
||||
identifier:(NSString *)identifier
|
||||
shiftOn:(BOOL)shiftOn;
|
||||
- (nullable KBKey *)letterKeyWithChar:(NSString *)charString shiftOn:(BOOL)shiftOn;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user