29 lines
701 B
C
29 lines
701 B
C
|
|
//
|
||
|
|
// 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
|