minivmac4ios/Mini vMac/KBKeyboardView.h

31 lines
802 B
C
Raw Normal View History

2016-05-14 11:01:02 +00:00
//
// KBKeyboardView.h
// BasiliskII
//
// Created by Jesús A. Álvarez on 22/03/2014.
2018-04-28 10:12:43 +00:00
// Copyright (c) 2014-2018 namedfork. All rights reserved.
2016-05-14 11:01:02 +00:00
//
#import <UIKit/UIKit.h>
#import "KBKeyboardLayout.h"
@class KBKey;
@protocol KBKeyboardViewDelegate <NSObject>
- (void)keyDown:(int)scancode;
- (void)keyUp:(int)scancode;
@optional
- (void)hideKeyboard:(nullable id)sender;
@end
@interface KBKeyboardView : UIView
@property (weak, nonatomic, nullable) id<KBKeyboardViewDelegate> delegate;
@property (nonatomic, strong, nullable) KBKeyboardLayout *layout;
@property (nonatomic, readonly, nonnull) NSArray<KBKey*>* keys;
@property (nonatomic, readonly, nonnull) NSArray<KBKey*>* stickyKeys;
2020-09-30 20:49:59 +00:00
- (instancetype _Nonnull)initWithFrame:(CGRect)frame safeAreaInsets:(UIEdgeInsets)safeAreaInsets;
2016-05-14 11:01:02 +00:00
@end